Need help on global variables / parameters

Hi friends,
Please let me know if there a way to see the list of global variables and parameters in a form.
Thanks
Joe.

I presume you mean at runtime, since at design time parameters are in the Navigator, and globals can only be created at runtime. But unfortunately at runtime there is no way to get a list of them, like you can with blocks and items. (There's no easy way to get other objects either, like LOVs, canvasses, etc., though most of them can be derived from properties of items). But let's say you thought you knew the name of a parameter or global and wanted to confirm it really exists. With parameters there is no solution; you can't use find_item(). With globals a common technique is the following:
t_name := 'global.var';
default_value('SoMe ImPoSsBlE VaLuE', t_name);
if name_in(t_name) = 'SoMe ImPoSsBlE VaLuE' then
-- the global did not exist!
erase(t_name);
else
-- the global did exist!
null;
end if;
And of course remember that globals are not owned by a form; they are visible to all forms that are running.

Similar Messages

  • Need help in modifying mapping parameters of out the box mapping

    Hi There,
    I am a new bee to dac.
    Need help in modifying mapping parameters of out the box mapping, which is invoked by DAC task.
    We got a requirement to edit mapping parameter. When I go and see parameter under mappings tab in a mapping, I could not see any values in it.
    But when I set any value, and validate it. It is successful.
    Is it right way to do it?
    What my concern is, When I initially go and see parameter values under maapings tab in a mapping, they are blank.
    Where is it storing these values?
    Thanks,
    Rag

    If you modify mapping then u have to create new task in dac and dac itself craete parameter file at run time. if you want to add more parameters then do it in dac system parameters tab.
    Thanks
    Jay.

  • Need features of global variables but want to avoid re-writing to memory

    I am making a program with a number of simultaneous loops that will be sharing several variables. Most of the variables are of size 1 or small arrays, so I am not too concerned about the constant re-writings involved. However, I have one rather large data buffer (3D array containing 200Kb+ of data). The buffer will be of a set size. In the various loops, the buffer will be accessed for updates (generally with Replace Array subset), and read from to get average values and such. I'm using semaphores so that none of the loops interact negatively and lose data. In other programs I'd set this up with a shift register in the loop, but since the data is being used in separate simultaneous loops, it's no
    t really possible to wire it up that way. I need some sort of memory-space that can be accessed from the various loops.
    I guess in sorts, I need to be able to have global variable 'pointers', but of course I was told a couple of years ago at a LabView seminar that pointers was a bad word.

    tbob wrote:
    > As long as Labview is running, the LV2 style global will automatically
    > retain its last value. Of course the very first time it is run, the
    > value is undefined, so you should write to it before attempting any
    > read.
    I have one correction to make. The value of an unitialized shift
    register on first load is not undefined but rather contains the
    datatype's default default value. This would be False for booleans, 0
    for numerics and empty arrays or strings.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Need help with a variable

    I ahve a report that I want to show Free to Sell stock - stock that is in the warehouse that hasn't been allocated.
    I have created a variable called Freestock which basically uses a Physical Stock quantity minus the allocated stock quantity. 
    It is currently just adding all the figures together, instead of splitting it by item, so this is wrong
    Here's the formula I'm using ;
    =Sum(<Warehouse Physical Quantity>-<Outstanding Allocated Quantity>)
    Any help would be greatly appreciated in getting this sorted
    Thanks in advance

    George,
    I am sure the formula is correct.
    It is currently just adding all the figures together, instead of splitting it by item,
    You need to pull this variable with the item object. it will automatically break the number by the Item.
    Hope this helps.
    Kashif

  • Need help with accesing variable with xpath.

    Hi All,
    I need help with xpath in "Switch" BPEL construct. Switch is used to compare value assigned to output vairable and follow one path for "Deny" and another for "Approve". The following is data type for output variable.
    <element name="processResponse">
         <complexType>
              <sequence>
                   <element name="result" type="string"/>
              <sequence>
         <complexType>
    </element>
    The following expressions in Switch statement throw lava.lang.Exception. It error is xpath internal error".
    x20:compare('Deny',$outputvariable.payload/client:result)
    x20:compare('Deny',bpws:getVariableData('outputvariable','payload','/client:processResponse/client:result')
    It works with x20:compare('Deny','Deny'). So I assumed it must be accessing the variable.
    Any help greatly appreciated.
    Thanks,
    Satish

    Cany you try the following
    x20:compare('Deny',string($outputvariable.payload/client:result))
    x20:compare('Deny',string(bpws:getVariableData('outputvariable','payload','/client:processResponse/client:result'))
    Regards
    Albin I
    http://www.albinsblog.com/

  • Newbie needs help with passing variables or creating flash object based on parameters

    Hello Community,
    I'm an amateur developer of Ms Access databases. In one of my applications I want to visualize the options available when reaching a certain score.
    What I'd like to get from this trial period, is a flash animation of a dartboard. Depending on an array of variables that provides the fill color (or reference thereof) the layers of the flash object will be dynamicly created, altered, or switched. The dartboard itself remains "static". I'm hoping to use 9 colors.
    I can manipulate the array any way needed. I can provide XML coding to pass the array variables. I'm just too new and untrained to incorporate this in a Edge animation or Dreamweaver.
    There is no need for interaction, once the object is created (ie no user feedback).
    Can someone point me in the right direction?
    thanks in advance,
    Jay from Stockholm

    Hi,
    I see you're using System.Data.OracleClient (which has been deprecated by MS) rather than Oracle.DataAccess.Client, but this works for me with Oracle's ODP, maybe it will help.
    Cheers,
    Greg
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class dataadapterfill
        public static void Main()
            using(OracleConnection con = new OracleConnection("user id=scott;password=tiger;data source=orcl"))
                con.Open();
                using(OracleCommand cmd = new OracleCommand("select ename from emp where ename = :1", con))
                    cmd.Parameters.Add(new OracleParameter("myename", OracleDbType.Varchar2, 50)).Value = "KING";
                    OracleDataAdapter da = new OracleDataAdapter(cmd);
                    DataSet ds = new DataSet();
                    da.Fill(ds);
                    foreach (DataRow row in ds.Tables[0].Rows)
                        Console.WriteLine("ename: {0}", row["ename"]);
    }

  • Need help with getting variable from static

    Hello,
    What I am building is an application that prompts for username/password before it shows the main screen. Once they have successfully logged in, I need to assign the username that they used, in order to use it for a button event if the make any updates.
    Here is the code that I have tried to use.
    public String username;
    ///This set's the public variable username
    public void setUserName(String UserName){
    username = UserName;
    /////////////////Here is where they login, and assign the name to setUsername
    public static void main(String args[]) throws SQLException {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    JFrame frame = new JFrame();
    JTextField userName = new JTextField();
    JTextField passWord = new JTextField();
    Object[] options = {"OK","CANCEL"};
    Object[] msg = {"UserName:", userName, "Password:", passWord};
    final JOptionPane op = new JOptionPane(msg, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION){};
    JDialog dialog = op.createDialog(frame, "Please Login");
    dialog.show();
    int result = JOptionPane.OK_OPTION;
    try {
    result = ((Integer)op.getValue()).intValue();
    }catch(Exception uninitializedValue){}
    if(result == JOptionPane.OK_OPTION) {
    String userID = userName.getText();
    String passID = passWord.getText();
    Main myMain = new Main();
    myMain.setUserName(userID);
    if(!userID.equals("") && !passID.equals("")) {
    new Main().setVisible(true);
    }else {
    // user cancelled
    ////here is the button event that also will need the username
    private void selButtonActionPerformed(java.awt.event.ActionEvent evt) {
    Connection conn = null;
    Statement stmt3 = null;
    Statement stmt4 = null;
    ResultSet rset3 = null;
    ResultSet rset4 = null;
    String usernum = null;
    String xemu = null;
    String loc = null;
    String ustat = null;
    String manager = null;
    String dept = null;
    String Add = "Add";
    String Update = "Update";
    String groupID = "9999";
    Vector columnNames = new Vector();
    Vector data = new Vector();
    String Manager_info[] = {"managerindex", "managers", "managername"};
    String Account_info[] = {"acctypeindex", "acctype", "acctypedesc"};
    String Group_info[] = {"groupnum", "groups", "groupcode"};
    String System_info[] = {"systemindex", "systems", "systemname"};
    String Dept_info[] = {"departindex", "departments", "departname"};
    String Xemu_info[] = {"xemuindex", "xemulator", "xemudesc"};
    String Location_info[] = {"locindex", "location", "locdesc"};
    String Ustatus_info[] = {"ustatusindex", "userstatus", "ustatusdesc"};
    Date myDate = new Date();
    SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy");
    String today = formatter.format(myDate);
    System.out.println(username);
    I am trying to set the public username variable to what the person enters, however since I am creating a seperate instance of it, I don't believe it will work. Any help would be very much appreciated.
    Thanks.
    Josh

    I am developing in Netbeans. If I try to remove the static keyword from main(), netbeans canno't find a main to run. I have created the User class.
    Here is the main again to show what I have done.
    public static void main(String args[]) throws SQLException {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    User user = new User();
    JFrame frame = new JFrame();
    JTextField userName = new JTextField();
    JTextField passWord = new JTextField();
    Object[] options = {"OK","CANCEL"};
    Object[] msg = {"UserName:", userName, "Password:", passWord};
    final JOptionPane op = new JOptionPane(msg, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION){};
    JDialog dialog = op.createDialog(frame, "Please Login");
    dialog.show();
    int result = JOptionPane.OK_OPTION;
    try {
    result = ((Integer)op.getValue()).intValue();
    }catch(Exception uninitializedValue){}
    if(result == JOptionPane.OK_OPTION) {
    String userID = userName.getText();
    String passID = passWord.getText();
    user.setName(userID);
    user.setPassword(passID);
    if(!userID.equals("") && !passID.equals("")) {
    //Auth.setUserName(userID);
    //Auth.setPassword(passID);
    new Main().setVisible(true);
    }else {
    // user cancelled
    This set's the variables
    Here is the beginning of the evt that I am using to try and get the data.
    private void selButtonActionPerformed(java.awt.event.ActionEvent evt) {                                         
    Connection conn = null;
    Statement stmt3 = null;
    Statement stmt4 = null;
    ResultSet rset3 = null;
    ResultSet rset4 = null;
    String usernum = null;
    String xemu = null;
    String loc = null;
    String ustat = null;
    String manager = null;
    String dept = null;
    String Add = "Add";
    String Update = "Update";
    String groupID = "9999";
    Vector columnNames = new Vector();
    Vector data = new Vector();
    User user = new User();
    String User = user.getName();
    System.out.println(User);
    String Manager_info[] = {"managerindex", "managers", "managername"};
    String Account_info[] = {"acctypeindex", "acctype", "acctypedesc"};
    String Group_info[] = {"groupnum", "groups", "groupcode"};
    String System_info[] = {"systemindex", "systems", "systemname"};
    String Dept_info[] = {"departindex", "departments", "departname"};
    String Xemu_info[] = {"xemuindex", "xemulator", "xemudesc"};
    String Location_info[] = {"locindex", "location", "locdesc"};
    String Ustatus_info[] = {"ustatusindex", "userstatus", "ustatusdesc"};
    Date myDate = new Date();
    SimpleDateFormat formatter = new SimpleDateFormat("dd-MMM-yy");
    String today = formatter.format(myDate);
    String [] str = {
    "EmpID", "Account", "System", "Type", "Status", "UserID", "Group"
    This gives me a null on the println, how can I get the data that was entered in main()?
    Thanks,
    Josh

  • Need help in Bind variable in AF Query LOV

    Hi,
    i have one problem with bind variable, if i use bind variable in the LOV VO Query then my result is not coming, if there is not bind variable it's working fine and if i use the bind variable in the LOV search option then it's working fine but if i hide the bind variable and set the value in AM prepareSesstion method the LOV is not returning any value. I try to return the values also all values are also coming but those values are not setting to AF Query Attribute.
    Query is:
    select substr(d.description,0,40) description
    from cm_system_users a,
    cm_user_responsibilities b,
    cm_responsibility_processes c,
    cm_processes d
    where a.nt_login =:B_NT_LOGIN
    and a.user_id = b.user_id
    and trunc(sysdate) between b.eff_date and nvl(b.exp_date,sysdate + 1)
    and b.RESPONSIBILITY_ID = c.RESPONSIBILITY_ID
    and c.process_type = d.process_type
    and d.enabled_flag = 'Y' order by d.arguments_flag
    AM Method:
    CmProcessViewImpl vo = getCmProcessView();
    String nt_login = getUserPrincipalName();
    vo.setNamedWhereClauseParam("B_NT_LOGIN", nt_login.toUpperCase());
    vo.executeQuery();
    Can any one help me in this. it's urgent for me.

    This is a little underdescribed. IIUC, the view object in question is being used as a target for a view accessor, correct? (Otherwise you'll have to be more explicit about what you mean by "Query LOV".
    If I'm right, there are two possibilities:
    1) You are using a VO instance in a shared application module instance. If so, make sure your code is in the prepareSession() for that application module class if it's session dependent (as it seems to be below), you need to make sure the application module instance is shared at session scope.
    2) You've based the view accessor directly on the VO definition. This basically creates an anonymous VO instance; I don't think there's any way to use prepareSession() to set a bind variable on such an instance (which won't be created until the accessor is first used). You might be able to get by with putting similar code into the view object class' create() method, but I haven't tested this.
    If your code is in your primary application module class (as opposed to the class for a shared AM instance), the problem here is that getCmProcessView() returns the VO instance from that application module instance's design-time data model, which is never used by view accessors.
    By the way, why do you need to do this in prepareSession() instead of at the view accessor level? I believe you can get the logged in user name (for the view accessor) in with the groovy expression
    viewObject.DBTransaction.session.userPrincipalName
    or possibly just
    DBTransaction.session.userPrincipalName
    (despite this involving DBTransaction, it returns the web app user name, not the DB username).
    That's a 100% declarative solution, if you don't count the Groovy expression as non-declarative.
    If you're afraid of a user executing the LOV (somehow) before the bind variable value gets set, just ensure that the bind variable is marked "required".

  • Need help for report Variable to restrict the key figure value...

    Hai gurus,
    Now i have data in the cube as follows...
    Reuisition     HR INTW date     LM INTW DATE     TEL INTW DATE     HR Count     LM Count     TEL Count
    a1              01.01.2010     02.01.2010             01.04.2010                 1                1                 1
    a2              02.02.2010     03.02.2010             02.02.2010                 1                1               1
    a3              03.03.2010     04.03.2010             03.03.2010                 1                1               1
    when i execute the report it shd ask the prompts with Date interval as in the below...
    HR INTW date
    LM INTW DATE
    TEL INTW DATE
    if i dont give any interval in the variable prompt it should display all the recors as follows
    Reuisition     HR Count     LM Count     TEL Count
    a1               1                  1               1
    a2               1                  1                     1
    a3               1                   1             1
    If i give LM INTW DATE interval as    01.01.2010 to 31.02.2010
    then it should display all the other counts as in the output_1 , but for LM count for a3 it should show 0.
    Reuisition     HR Count     LM Count     TEL Count
    a1               1                  1               1
    a2               1                  1                     1
    a3               1                 0                  1
    that means wherever i restrict the data depending on the variable that only that interval key figure value shd be in the report..
    for this scenario, which variable i need to use... and how i need to restict the KFig value in the report...
    Right now i am getting like this but it is restricting the records,,, where it should not restrict the records...in the report..
    Please guide me for the same...
    If any concerns about the scenario please let me know...
    Regards,
    VJ

    hi chowdary ,
    could you tell me the var. creation in detail and  with which reference object i need to create ...
    whether i need to take LM_DATE / 0DATE while creating variable...
    and i kept this variables it in filter section, based on the LM_DATE Object.
    i have tried both.. y'day when i take 0DATE it giving me some results...
    But at the same time it is restricting the records..
    i think it could be a problem with var.. properties?
    need more inputs pls.
    Regards,
    VJ

  • Need help for proper blending parameters

    Hi,
    I am trying to make a very simple movement with 2 servos:
    go down 4 meters,
    go right 20 cm,
    go up 4 meters,
    go right 20 cm,
    etc..
    However, during those 4 meters up down moves, the speed should be constant.
    I wasnt happy wth the blend movements so I decided to replace the go right move with a circular arc of 10 cm radius.
    It looked great on the graph with simulated axis until I plotted their speed on a chart: white is Y axis and green is X axis
    I thought that the circular arc would be a great way to connect the up and down straight-line moves by automatically regulating the X & Y speeds. So in order to keep a constant speed during the transitions, I chose those parameters:
    blend mode: at deceleration
    smooth: 0
    acceleration/deceleration/acc & decc jerk: 0
    however, as you can see on the charts, there are a few glitchs during the transitions. I played all day with all those params but without success.
    I dont know if this will affect the servo motors or if it not even necessary to deal with this problem but to be on the safe sde, I would like to know how can I go from one movement to the other without those glitches.
    Thank you for your help

    Hi Kira,
    Thank you for your input. I am already using NI Softmotion and according to NI support, there is a bug with arc move bending. I couldnt find any info on it so they gave me a CAR link but I cant access it, so I dont know how old is this bug nor if it can be fixed it anytime soon:
    http://notesarchive.ni.com/Archives/cararc01.nsf/weballinfo/8625749f006ebc58862571b900585133
    We are designing a painting prototype using a spray gun on a linear system using 3 n 1/2 axis (X, Y, Z, and a pneumatic for switching between horizontal/vertical painting). Here are some screenshots of the spray gun XY trajectories:
    According to the spray gun paint spread, the trajectory changes. For example, here the spreads are 15 and 20 cm so the spray gun must go up/down 11 or 8 times and left/right 27 or 20 times accordingly.
    I already looked into the contouring method but it looked like a lot more work for proper speed control and as I said, speed is one of the most important parameter in our system.
    Thank you very much for your help Kira, I will look into the contouring method more in detail and will most likely have to restart my prog from scratch

  • Need help in text variable !!

    experts !
    i have asked question earlier about the problem, i was trying all the possible combinations and i just got another way,
    Can i use Offset settings for Text variable ?
    my requirement is , i have ofiscper, and there is a text variable created on that too. but if my fiscper is 0012010 then my text variable shows april 2010. but i need "may 2010" instate.
    so, if my fiscper is 0012010 , then my text variable should show one month prior or after  .
    So, i found in text variable..ther is sometjng like "offset". i was wondering can i use that to get that result ?
    i tried, but didnt work...
    please help

    Hi Honar,
    The offset for text Variable is just to get a substring of the result of the text variable and not like the offset that we use in the Restriction of the Keyfigures.
    Hence this will not work.
    Regards.
    Shafi.

  • Need help with global temporary table

    Can anyone please help, the following line of code :
    CREATE GLOBAL TEMPORARY TABLE tbl_bulknodes_temp ( obt_uuid VARCHAR2 ) ON COMMIT DELETE ROWS
    Yeilds the following error both in PL/SQL and running it in SQL PLUS
    Error starting at line 1 in command:
    CREATE GLOBAL TEMPORARY TABLE tbl_bulknodes_temp ( obt_uuid VARCHAR2 ) ON COMMIT DELETE ROWS
    Error report:
    SQL Error: ORA-00906: missing left parenthesis

    Hi,
    You have to put length to varchar2 column...
    SQL> CREATE GLOBAL TEMPORARY TABLE tbl_bulknodes_temp ( obt_uuid VARCHAR2(30) ) ON COMMIT DELETE ROWS;
    Table created
    SQL> CREATE GLOBAL TEMPORARY TABLE tbl_bulknodes_temp2 ( obt_uuid VARCHAR2 ) ON COMMIT DELETE ROWS;
    CREATE GLOBAL TEMPORARY TABLE tbl_bulknodes_temp2 ( obt_uuid VARCHAR2 ) ON COMMIT DELETE ROWS
    ORA-00906: missing left parenthesis
    SQL> Regards,

  • Need help with maintaining variable choices in new session

    I have a flash app. set up with several variables. Is there a
    simple action script that will allow the user to maintain their
    choices after closing the .swf and re-launching it?
    Thanks in advance for your help.

    how are you checking if those components have been checked or
    ticked. actually, i probably don't want to know that.
    you really should be using a listener to detect when your
    components have changed and then you can use the changed method to
    set your variables and update your sharedobject.

  • I am desperate (I need help with Arrays of parameters)

    Anyone please available to help

    I have tried it but it is still displaying.
    Here is the actual parameters sent from my form (copied from the location bar)
    organise_info.jsp?skills_sets44=skills_ptp&description44=+&description45=+&skills_sets46=skills_ptp&description46=+&description47=+&description48=+&description49=+&description50=+&description51=+&description52=+&description53=+&description54=+&description55=+&description56=+&description43=+&fname=Jonathan--24&lname=Wheelwright
    the description-nos is the one that I am having problems with because it is from a text input field.

  • [Oracle 8i] Need help with bind variable in add_months function

    I'm trying to put a variable within my add_months function:
    AND     t1.edatetime >= add_months(sysdate,:v1)
    AND     t1.edatetime <= add_months(sysdate,:v2)I have tried defining the variable both as 'integer' type and 'numeric' type, but in both cases, my query returns no results. If I hard code the values, it works just fine.
    Any suggestions?

    Hi,
    Sorry, I can't reproduce the problem.
    What do you mean by "I have tried defining the variable both as 'integer' type and 'numeric' type"?
    Like Max said, you should post a complete script that gets the incorrect results.
    Include your CREATE TABLE and INSERT statements, or use tables that are commonly available.
    For example:
    VARIABLE      v1     NUMBER
    VARIABLE      v2     NUMBER
    EXEC  :v1 := -28 * 12;
    EXEC  :v2 := -27 * 12;
    PROMPT       ===== Checking values of bind variables  =====
    SELECT       :v1
    ,       :v2
    FROM       dual;
    PROMPT       =====  Main query (expecting 1 row of output) =====
    SELECT       ename
    ,       hiredate
    FROM       scott.emp
    WHERE       hiredate     >= ADD_MONTHS (SYSDATE, :v1)
    AND       hiredate     <= ADD_MONTHS (SYSDATE, :v2)
    ;Output:
    PL/SQL procedure successfully completed.
    PL/SQL procedure successfully completed.
    ===== Checking values of bind variables  =====
           :V1        :V2
          -336       -324
    =====  Main query (expecting 1 row of output) =====
    ENAME      HIREDATE
    MILLER     23-Jan-1982

Maybe you are looking for

  • Elements 2.0 Memory Error

    OK...I know this is an old version but it generally has every feature I need for my home video conversions. I recently started getting an Add Media Error "There is not enough memory to add requested media." I'm just trying to add about 20 pictures to

  • Best practice regarding automatic IU documents

    Hi Team, In case of automatic postings at IU elimination how to configure document type in order to allow different subassignments like segments. This sub assignments field in case of automatic posting documents allowing at header level and at the ti

  • Function module for BOM Update all line items at a time

    Hi, Please enlightenn us, which FM is do the update for BOM item datas. ( current FM is updated line item one item then come out and log in again updating another line item , thus cause more error are facing.) we want a FM to update one time all the

  • Picking up the printer settings for Double or single sided?

    Hi All, Do anyone have a solution for picking up the printer settings for the PO SAPscript so that if the printer can do double sided it should print double sided but if it can only do single sided, it should print single sided? Thanks & Regards, Sud

  • Where is the Search Function in the Forums?

    Where has the search function gone from the forums? I have been using it frequently lately because I am setting up a Powerbook 1.5 g4 with FCP 5.1.4 and it is the best way to find answers for "legacy systems" such as mine.