Can find variable
Hi, I'm having a problem of using a variable I declared in another class
How can I call this variable in my main method??
THX
CODE:
public class ppage{
static General general;
public static void main (String args[])
general = new General();
System.out.printl(general.ppage_dir);--> he doesn't know this parameter
public class General extends Object
static String ppage_dir;
static String log_dir;
public void readConfigFile()
try
File inputFile = new File("/Java/log/config.sys");
BufferedReader input = new BufferedReader(new FileReader(inputFile));
String temp;
temp=input.readLine();
while (temp!=null)
if (temp.indexOf("PPAGE_DIR=")!=-1)
ppage_dir=temp.substring(10);
else if
log_dir=temp.substring(8);
temp=input.readLine();
input.close();
catch (IOException exp)
System.out.println("Fatal error, can't read from file - "+exp.getMessage());
}
Create a method that will return the value of ppage_dir.
public static String getPageDir()
return ppage_dir;
// Insert the above code into the General class
Just to let you know, your program is probably not working because you didn't declare a value for ppage_dir. Either that or you meant to run readConfigFile() before you retrieved the value of ppage_dir.
A simple way to do this would be to use a Properties file and retrieve the values directly. This way, you avoid the need to worry about "indexOf("PPAGE_DIR=")"
Similar Messages
-
Tables where I can find information about IP variables, Infoprovider aggreg
Hello All,
Tables where I can find information about IP variables, Infoprovider aggregation level and filter.
The tables where we have info about tthe user exit variables. Similar to that of UPC* tables in BPS.
Thanks a lot,
Karthik KrishnaRSRPARAMETRIZA for Bex Analyzer 7.0
RSRVARIANTDIR for Bex Analyzer 3.x
RSRVARIANTDIR Directory of Variants for Queries and Selection Objects
RSRVARIANT Variant Values BEX
We can access to value of one variant with name of query COMPUID (from RSRT --> Technical Informatione -->Data from Query Definition --> Techn. Definition Name) or with the name of Variant from RSRVARIANTDIR (the same for the technican nema of query COMPUID)
Edited by: Pierfrancesco Marvulli on Aug 31, 2011 3:23 PM -
IPad 4.3.2 - ReferenceError: Can't find variable: NETPAD
I believe it started after i updated to the latest version of iOS, when the little flower icon appeared at the unlock screen.
When clicking the icon, the screen goes black and I get ReferenceError: Can't find variable: NETPAD. By clicking ok it goes back to the locked screen.
Am I the only one?Thanks Dah•veed. Highly appreciated!
Funny enough the error message came up before the icon showed, so I took a snap shot of it and this was showing up when I clicked the icon. Had no idea, and think the error message actually refers to an error from an app I downloaded some time ago.
Anyway thanks again for clarifying :-) -
How to find variables in an fla file?
Hello all,
I purchased a flash web template that is very complex, and
have been learning flash more earnestly from it. I only know how to
find actionscripts by clicking on frames in symbols with an "a" One
such frame makes refences to _root.READ = 1 (another 2, 3, etc).
Unfortunately I cannot find what "READ" is. Can someone help me
with how is "best" to find variable declarations in a complex fla
file with no familiarity with its creation?
The specific coade I am looking at references a pop-up
window:
on (release) {
_root.popup_pressed = 1;
_root.scrHEIGHT = 555;
_root.scroller.scroller.gotoAndStop(2);
_root.TM_title = "Advertising and Marketing";
_root.READ = 1;
_root.scroller.gotoAndPlay("s1");
All the best!
MichaelThank you. I am also not savvy with flash (yet), and after I
posted this I noticed an unexpanded list in the action pane which
shows variables (left bottom corner). This alone was a big help. I
also discovered the "Movie Explorer" and typing "READ" into that
only gives me "Scene1" (the top level clip).
I wanted to ask a follow-up question to your posting. I
thought that only frames marked with "a" had actionscript code in
them, but from your reply it seems that variables can be declared
in ANY frame? So, to find the variable "READ" I need to click on
each frame to find it?
Best regards,
Michael -
Where I can find examples with OLAP DML to update the cube cells?
Hi,
Where I can find examples with OLAP DML to update/calculate the cube measure/cells?
I would like to insert data into the cube by OLAP DML.
Regards,
TomBNot sure about examples but this is how you should proceed
1. Limit all your dimension to the leaf level values.
lmt financialperiod to '200901'
lmt geography to 'XYZ'
lmt product to 'LAPTOP'
2. Limit your measure variable to one measure(this is applicable if you have more than one stored measure in the cube).
for 10g
lmt <cube name>prtmeasdim to '<MEASURE NAME>'
for 11g
lmt <cube name>measuredim to '<MEASURE NAME>'
3. Write into the variable.
for 10g
<cube name>prttopvar = 100 -- this variable is created for a compressed & partitioned cube. for uncompressed cube the variable name is <cube name>_stored.
Thanks
Brijesh -
In howmany ways we can find the User-exits
In howmany ways we can find the User-exits?
Hi,
Copy this code,execute and run this program.Now mention your tcode and it will give you the list of user-exits present in a Tcode.
*& Report zuserexit
*& This program helps find Exits for any given transaction
*& This code is originally adopted from http://www.sap-img.com
report zuserexit no standard page heading.
*TABLES
tables :
tstc,
tadir,
modsapt,
modact,
trdir,
tfdir,
enlfdir,
tstct.
*INTERNAL TABLES AND STRUCTURES
Internal table to hold Repository Objects
data : jtab like tadir occurs 0 with header line.
*Global variables
data : field1(30).
data : v_devclass like tadir-devclass.
*SELECTION-SCREEN
parameters : p_tcode like tstc-tcode obligatory.
*START-OF-SELECTION
START-OF-SELECTION.
SELECT construct to get data for a given tcode
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
SELECT construct to get program names
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
Moving the dev. class to v_devclass if program is of type 1
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
If Program type = Function Group
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
SELECT construct to get Attributes for Function Modules
select single * from enlfdir where funcname = tfdir-funcname.
SELECT construct to get FM names
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
Moving the dev. class to v_devclass if program is of type F
move : tadir-devclass to v_devclass.
endif.
endif.
SELECT construct to get SAP enhancements for the dev. class
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
SELECT construct to get t code texts
select single * from tstct
where sprsl eq sy-langu
and tcode eq p_tcode.
REPORT OUTPUT
format color col_positive intensified off.
Displaying t-code name & text
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
List headings
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
SELECT construct to get SAP Enhancements - Short Texts
loop at jtab.
select single * from modsapt where sprsl = sy-langu
and name = jtab-obj_name.
format color col_normal intensified off.
Exit names & texts
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
No of Exits
write:/ 'No of Exits:' ,
sy-tfill.
else.
format color col_negative intensified on.
If no exits found
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
If tcode doesn't exist
write:/(95) 'Transaction Code Does Not Exist'.
endif.
Call txn SMOD with selected Exit
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
Reward if helpful.
Regards,
Harini.S -
HELP! Where I can find the InDesign Object Model, Methods, and Properties?
I've done a little VB scripting with InDesign, using some of the examples I've found here and there. But I can't for the life of me find a full listing of the Object Model, nor a listing of methods and properties. I'm limited in what I can do by stumbling upon objects here and there in others' scripts. Surely this must be documented somewhere.
One thing that's particularly confusing to me (partly because I'm not well-versed in JS), is I'll see something the following
app.selection[0].fit(FitOptions.frameToContent)
where "FitOptions.frameToContent" seems to reference a constant, presumably in a structure. How do I determine the actual constant value, or supply an object reference (as I'm scripting from a stand-alone VB app) such that it can "find" that constant?I don't know how VB5 works, but when you add reference to InDesign and declare variable, for example:
Dim myInDi as InDesign.Application
then when you write somewhere "myInDi." - VB6 IDE give you context list with all methods and properties of InDesign application
here is link to AS/JS/VB CS2 reference and AS CS3 reference
http://www.indesignscriptingreference.com/
here is link to CS2 ScriptingGuide - 20MB ;)
http://www.adobe.com/products/indesign/pdfs/InDesign_Scripting_Reference.pdf
I remember that was page with InDesign Scripting PDFs on adobe site - but now all links are broken ... somebody in Adobe - web admin - should check what is going on ...
Photoshop and Illustrator pages works fine:
http://www.adobe.com/devnet/photoshop/scripting/
http://www.adobe.com/devnet/illustrator/scripting/
somebody forgot to add links to scripting section in InDesign page:
http://www.adobe.com/devnet/indesign/
robin
www.adobescripts.com -
APD issue 'Cannot find Variable'
Hello experts,
When i am trying to execute APD following error msg recieved.
Cannot find variable 4T23JCVG9Z4JPGIFX0WFR1GK9 for ZLASTDATE characteristic in selection 0001
Message no. RSAN_WB010
Diagnosis
Technical key for message: CX_RSAN_MDL_DST_FILTER=>FILTER_VAR_RANGE_ERROR
Procedure
If you require further assistance, look for a SAP Note containing the key words CX_RSAN_MDL_DST_FILTER=>FILTER_VAR_RANGE_ERROR or RSAN_WB010.
has anyone had this issue.Please share your experience.
Regards
Kranthi.CThanks Vishal for your prompt response. We running APD from an Infoprovider(Infoobject as Dattarget) called 0BPARTNER. And 'ZLASTDATE'(Refference of ODATE) is attribute of '0BPARTNER'. We stores the values in CRM.
We also have an alternative in BI system for this to fetch the data from Query and stores it in CRM. But problem is in Prod server we have over 1.5 million records of data and the values of these records may be changed on a daily basis. If 1.5 million records can uploaded at the first place later we dont expect many records on a daily basis(hardly 5k).So i executed first time APD using this Query it ends up with error as cannot a upload the load at one stretch after many hours.I have also tried split the records like 20k in Query but still taking 5 to 6 hrs time.APD process can be done only after business hours so if i follow this procedure it will take many days for me to upload and may be CRM dont have uptodate data.
Hope you understood wat the problem is .Please let us know if anything you aware which can resolve the issue.
Regards
Kranthi -
Script CCX 8.5 find variable in file
Hi
I’m looking for sample script, where I can find string from variable in file which is stored CCX 8.5 [en_EN]. Script is for authenticate users via entered 3 digits and this digits will be compared with “UserID.txt”.
ID users are stored in file “UserID.txt” and each UserID can be separate comma “,” (123,324,001,098,312) or each UserID is in new line
123
324
001
098
312
Below sample scenario
1) Users enter 3 digits (Get Digit String) to UserID (String) exaple 123
2) Script compare entered digits (123) with contents of file “UserID.txt”.
3) If entered digits (123) will find in “UserID.txt” then TRUE else FALSE.
Thanks!Hi,
use the haystack.contains(needle) method. Like this:
G. -
Recently, FF has started opening my last tabs when I start a fresh session. I have already checked to make sure that none of the applicable settings are enabled, such as under Options->General: When FF starts "SHOW MY HOMEPAGE" is selected. But for some reason, it opens my last session. The only way I've been able to get it to stop doing this is by having it delete my browsing history after I close the session. I don't want this since I often use my history to re-find information I need for class research. I have made certain that all my settings are the same from before FF started doing this. It only started doing this after the computer was turned off for a long weekend.
I've already searched through the Mozilla help pages and all I can find is how to restore the previous session or similar. I don't want to restore my previous session, I want it to stop restoring my previous session without having to delete my browsing history each time.Using the instructions here:
http://kb.mozillazine.org/Session_Restore#Disabling_crash_recovery
I was able to turn off that feature entirely without having to create a new profile. -
Did they take out the free section, you know where they might offer a free episode/song/video/etc in one spot (or at least did they for Canada)? I can find the english song of the week (I used to enjoy browsing both the english and french), but that is it...
Nevermind. For some reason it loaded wrong/poorly/? It was back after I closed itunes down and re-opened it.
Thanks though -
In which Data Dictionary View I can find ...
Hello,
I will do a Overview over all of our Full Backups.
I am searching in the Data Dictionary Views but I colud not found the right information.
I could find a nice overview over the last redo log archive etc but no overview over the full backups?!
In which view I can find these informtaion?
Thanks in advance!Check Summary of RMAN Recovery Catalog Views for the data dictionary views for RMAN.
-
How can find my serial number. is not in any cd or box
I received a Redemption Code to find out my serial number of Adobe Acrobat Pro 11.0 and always I have an error.
I going to be crazy. I tried so many times. I spend money to buy this software not to be crazy. PLEASE HELP ME
John ChillemiHave you tried entering your redemption code at http://www.adobe.com/go/getserial? You can find more details at Serial number retrieval process FAQ | Point-of-sale activation products - http://helpx.adobe.com/x-productkb/policy-pricing/serial-number-retrieval-process-faq.html.
If you have already been to this URL and our continuing to experience difficulties then I would recommend you contact our support team. You can reach chat support at http://adobe.ly/yxj0t6. -
When I download a new app from App Store and press open when it's complete, it won't do anything, and when I look on my home screens it's nowhere to be found but if I go to settings and look under icloud and usage, I can find them but out from it says no data. I have tried deleting them and reinstalling but that's no working either... Please help me.. Thank you very much:)
Try resetting the phone. Push both the home and lock button at the same time until it goes off. Keep them pushed until the Apple logo come up...
Also, try deleting the app and downloading it again. -
When I go to plug in my iPhone 5 to my PC it will charge my phone but it doesn't show up that it's connected to my computer or in iTunes. I have tried just about everything that I can find in the support discussions but nothing has worked. Any other suggestions?
If you have carefully follow ALL of the steps in that article, you are using a USB port directly on your computer and not a USB hub (don't use a front port on a tower or desktop either, as they are an internal hub) and you installed iTunes correctly using an Administrator ID and you have tried disabling your antivirus and firewall then there is no hope of it ever working. Look at the tip again, and go through it carefully, not skipping any steps.
Note, BTW, that an iPhone will not show up on a computer, only in iTunes. If there are photos in the Camera Roll then it will appear in Windows as a digital camera only.
Maybe you are looking for
-
Drawing with double buffering to a JFrame
I want to create a simple JFrame and draw stuff to it via Graphic object using double buffering. If I create a loop and draw constantly using JFrame.getGraphic().xxx, am i doing double buffering. ( 'cause i read somewhere that swing components automa
-
World tv pro HD is not working what do i do
World tv pro HD is not working what do i do
-
License Key When Using Executable Windows Installer
Post Author: Robert Flaherty CA Forum: Deployment When using the executable Windows Installer for installing the Crystal 2008 runtime files on client PC, do you need to enter your license key? If you leave the field blank, what happens?
-
hi all, i have some confusion if someone have good suggetions for me. i make an connection pool class, and in that package and subpackages i have different class files which do interact with DB thus in whole class files i want to use that same connec
-
How to transfer the Inventory to the Asset
dear experts, Scenario: Organization is purchased one Asset. It is posted in inventory. Later on it finds that is required to post in asset. Now it required to transfer that inventory(ASSET) to Asset? What is the movement type? How to solve this pr