Can i use a variable instead of a fixed TextField?

Hello
I have to set the readOnly property to some set of fileds DYNAMICALLY (i mean, until run time, i dont know Which fields are readOnly and which are not? based on TYPE (Manager, Officer, Clerk....) of user...i hv to set it .
So, i want to replace the TextField1 dynamically with all the fileds in the below syntax. So, can i put some variable in the position of TextField1? if so, How can i do that?
xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField1").access = "readOnly";
xfa.resolveNode("VISITOR.Page3.SubFrom1.MyVariableComesHere").access = "readOnly";
In ABAP, it looks lik below,
LOOP AT it_readOnly_fields_itab INTO wa_readOnly_fields_itab.
  xfa.resolveNode("VISITOR.Page3.SubFrom1.wa_readOnly_fields_itab-FieldID").access = "readOnly";
ENDLOOP.
Pls. let me know the EQUILANT code (of above ABAP 3 lines code) in Java Script
How can i put the variable in the red position?
THank you

Sorry, am not looking that!!
Say, i have 5 fields, then, i want to make them readOnly, then i hv to write as below,
xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField1").access = "readOnly";
xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField2").access = "readOnly";
xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField3").access = "readOnly";
xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField4").access = "readOnly";
xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField5").access = "readOnly";
Actually, my requirement is differnent (I know at run time only...that Wht wht fields i hv to set readOnly and wht wht fields should okay for input enable), for that reason i want to use a VARIABLE in the 'position' of TextField1, TextField2.....like bleow
var myVariable
myVariable = TextField1
LOOPing the ARRAY
xfa.resolveNode("VISITOR.Page3.SubFrom1.myVariable").access = "readOnly";
PLs. let me know Can i sue a variable like that? if so, what is the correct syntax (pls.  suggest me a SYNTAX error free code, bcz am very very beginner to this)
THank you

Similar Messages

  • Can we use Substitution variables in MAXL?

    Hi,
    Can we use substitution variables in MAXL script?
    I have to run this MAXL command for clearing a slice of ASO cube on V11.1.1.3.
    alter database Apname.DBname clear data in region 'CrossJoin({[2009]},{[Dec]})';
    I am planning to use Current_year & Current_month variables instead of hardcoding 2009 & Dec as I have to use this everymonth to clear the current months data.
    If it is allowed, what is the syntax?
    Is there any alternative apart from substitution variables?
    Appreciate your thoughts.
    Thanks,
    -Ethan.

    You would just use ampersand and the variable name instead of the hard coding e.g. &yearVar &periodVar.
    Not tried it on aso clears but in theory it should work as ...'CrossJoin({&yearVar},{&periodVar})';
    just change yearVar and periodVar for your substitution variable names.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How can i pass a variable instead of a table name in the Select statement.

    Dear all
    how can i pass a variable instead of a table name in a select statement ?
    Example :-
    Begin
    P_get_procedure_tname (aap_name,otable_name);--It will take an application name and will return a table name
    Select col1 into ocol1
    from  ---- here i want to pass the variable OTABLE_NAME
    End;How can i pass this ?

    Hi,
    You can use dynamic sql.
    EXECUTE IMMEDIATE 'SELECT COL1 INTO ' || OCOL1 || ' FROM " || OTABLE_NAME;
    {code}
    cheers
    VT                                                                                                                                                                                                                                                                                                   

  • How can i use substitution variable

    Hai All
    This is my sql statement
    SELECT (TO_DATE(TO_CHAR(Intime,'DD-MON-YYYY')||' '||
    TO_CHAR(0815,'0000'),'DD-MON-YYYY HH24:MI')-intime) * 24*60
    from dail_att where to_char(intime,'hh24mi') between 0700 and 0815 ;
    Here my table name called Dailyattendance
    Intime field is declared as Date Type
    So now i have hardcoded 0815 and now my intime is subtracted from this time so i can calculate the employee
    coming late so how can i use substitution variable here to give the value at run time
    Ie i need to give 0815 instead or any other time at runtime
    Thanks In advance
    Srikkanth.M

    Where exactly are you planing to use it? Is sqlplus or at any other front end?
    One way is to use below given SQL
    SELECT   (  TO_DATE (   TO_CHAR (intime, 'DD-MON-YYYY')
                         || ' '
                         || TO_CHAR (:TIME_VAR, '0000'),
                         'DD-MON-YYYY HH24:MI'
              - intime
           * 24
           * 60
      FROM dail_att
    WHERE TO_CHAR (intime, 'hh24mi') BETWEEN 0700 AND 0815;*009*
    Edited by: 009 on Apr 6, 2010 2:15 AM

  • Can we use repository variables in bi publisher like in anwers

    can we use repository variables in bi publisher like in anwers
    if possible then how

    Yes,
    but you should be using Oracle BIEE as Datasource in order to use the variable of repository
    you 'll have to follow this syntax: valueof("variable")

  • How can I use environment variables in a controller?

    Hi all,
    How can I use environment variables in a controller?
    I want to pass a fully qualified directory and file name to FileInputStream and would like to do it by resolving an env variable, such as $APPLTMP.
    Is there a method somewhere that would resolve this??
    By the way,Did anyone used the class of "oracle.apps.fnd.cp.request.RemoteFile"?
    The following is the code.
    My EBS server is installed with 2 nodes(one for current,and other is for application and DB).I want to copy the current server's file to the application server's $APPLTMP directory. But the result of "mCtx.getEnvStore().getEnv("APPLTMP")" is current server's $APPLTMP directory.
    Can anyone help me on this?
    private String getURL()
    throws IOException
    File locC = null;
    File remC = new File(mPath);
    String lurl = null;
    CpUtil lUtil = new CpUtil();
    String exten;
    Connection lConn = mCtx.getJDBCConnection();
    ErrorStack lES = mCtx.getErrorStack();
    LogFile lLF = mCtx.getLogFile();
    String gwyuid = mCtx.getEnvStore().getEnv("GWYUID");
    String tmpDir = mCtx.getEnvStore().getEnv("APPLTMP");
    String twoTask = mCtx.getEnvStore().getEnv("TWO_TASK");
    // create temp file
    mLPath = lUtil.createTempFile("OF", exten, tmpDir);
    lUtil.logTempFile(mLPath, mLNode, mCtx);
    Thanks,
    binghao

    However within OAF on the application it doesn't.
    what doesnt work, do you get errors or nothing ?XX_TOP is defined in adovars.env only. Anywhere else this has to go?
    No, it is read from the adovars.env file only.Thanks
    Tapash

  • How can we use Session Variable in Answers or Analysis?

    How can we use Session Variable in Answers or Analysis?

    Again, duplicate cross-posting!
    See rukbat 's post here: Re: BI Apps 7.9.6.3(Agent Issue)

  • How can we  use java variable in javascript code on JSP page?

    How can we use java variable in javascript code on JSP page?
    Pls help

    Think about it:
    JSP/Java is executed on the Server and produces HTML+JavaScript.
    Then that HTML+JavaScript is transfered to the client. The client now interpretes the HTML+JavaScript.
    Obviously there's no way to access a Java variable directly from JavaScript.
    What you can do, however, is write out some JavaScript that creates a JavaScript variable containing the value of your Java variable.

  • How can I use the Variable Delay VI (From DSP Module) to Deploy Variable Delay on Speddy-33

    Dears,
    I dont Understand How Can I Use the Variable Delay to Deploy Variable Delay on a Speedy-33 Kit

    Hello,
    Thank you for posting to the NI Forums!! You should be able to incorporate the Variable Delay.vi into your vi and then build as normal and the functionality of the vi should translate to the build. What type of build are you doing? Are you receiving any specific errors? Thanks!
    Regards,
    Margaret Barrett
    National Instruments
    Applications Engineer
    Digital Multimeters and LCR Meters

  • Can we use oracle database Instead of Cloudspace?

              hi there,Can we use oracle database instead of Cloudspace with the current implementation?
              If possible can you please send me the example
              1.ra.xml
              2.weblogic-ra.xml
              files for connection to oracle. i would really appreciate any support.
              thanx, raghu.
              

              Prasen,
              Could you tell me what specifically should I use for Oracle database instead of
              jdbc:cloudscape:rmi:CloudscapeDB;create=true.
              Can I use jdbc:weblogic:oracle for jdbc:cloudscape:Commerce? I am not familiar with
              Cloidscape URLs and drivers.
              Thanks,
              David
              prasen <[email protected]> wrote:
              >Raghu,
              > It depends upon your implementation of ResourceAdapter, particularly
              >your managedConnectionFactory. In the example we
              >supplied(BlackBoxNoTx.rar) it(database specific parameters) is being
              >passed to the ManagedConnectionFactory as one of its config-properties.
              >
              >Also ResourceAdapters have nothing to do with Databases. It just happens
              >that in the supplied example a Database Connection is being exposed as a
              >ResourceAdapter.
              >
              >Now if you want to use oracle database you may want to look into teh
              >source code of BlackBoxNoTx.rar's implementation.
              >
              >Hope this helps.
              >
              >regards,
              >prasen
              >
              >raghu wrote:
              >>
              >> hi there,Can we use oracle database instead of Cloudspace with the current
              >implementation?
              >> If possible can you please send me the example
              >> 1.ra.xml
              >> 2.weblogic-ra.xml
              >> files for connection to oracle. i would really appreciate any support.
              >> thanx, raghu.
              

  • Oracle 10g - can I use a variable to identifywhat user's tablesto access?

    I have the following code in a trigger (PL/Sql block) of a form:
    select fieldname into myvar from user1.sometable;
    is there a way to use a variable instead of hard coding 'user1'? And on the same topic, could this variable be declared globally?
    Thanks in advance,
    Darren

    Hi again!
    i've forgot something!
    You are able to switch to another schema. If you are another user than user1, try:
    alter session set current_schema = user1;after this there is no need to use synonyms or tableowners in front of the tablename in your sql-statements.
    May you use this in a when-new-form-instance trigger in your first form like:
    forms_ddl ( 'alter session set current_schema = ' || :parameter.your_schema );Regards

  • Can ODI use environment variables?

    Running on Linux/Unix, can ODI use environment variables? For example, export LANGUAGE="en", and anyway in ODI can get variable LANGUAGE?

    It is easy.
    Use the following command at variable Refresh tab and let the Logical Schema to the file too...
    Just change the file path (c:/temp/cezar_test.txt)
    Select COLUMN_1 from TEST
    /*$$SNPS_START_KEYSNP$CRDWG_TABLESNP$CRTABLE_NAME=TESTSNP$CRLOAD_FILE=c:/temp/cezar_test.txtSNP$CRFILE_FORMAT=DSNP$CRFILE_SEP_FIELD=3BSNP$CRFILE_SEP_LINE=0D0ASNP$CRFILE_FIRST_ROW=0SNP$CRFILE_ENC_FIELD=SNP$CRFILE_DEC_SEP=SNP$CRSNP$CRDWG_COLSNP$CRCOL_NAME=COLUMN_1SNP$CRTYPE_NAME=STRINGSNP$CRORDER=1SNP$CRLENGTH=50SNP$CRPRECISION=50SNP$CR$$SNPS_END_KEY*/
    For this command the file must to have just just the value in one line.
    Does it help you?
    Edited by: Cezar Santos on 23/01/2009 16:14

  • I made a pre-booking for ipad2 wifi cellular, i would like to know whether i can upgrade it to IOS6 n IOS7? and i want to know whether can i use 2G network instead of 3G as the 3G network plan is expensive??? and i want to know whether i can access siri ?

    i made a pre-booking for ipad2 wifi cellular, i would like to know whether i can upgrade it to IOS6 n IOS7? and i want to know whether can i use 2G network instead of 3G as the 3G network plan is expensive??? and i want to know whether i can access siri ?

    Siri does Not work on the iPad 2.  iOS 7 is not even out yet, so we have no way of knowing if you'll be able to upgrade to it.

  • If I can always use a passcode instead of Touch ID, how does Touch ID add security?

    Am I missing something?  Even if I have Touch ID enabled, I can always use my passcode instead of Touch ID.  So, how does Touch ID *ADD* security?
    I can understand always requiring passcode IN ADDITION to Touch ID at particularly sensitive moments (e.g. changing security), but by allwoing passcode to bypass Touch ID, it seems to me that Touch ID adds convenience but not security.
    What am I missing?

    harolde1 wrote:
    Does anyone know if Apple (or any of the iPhone vendors, such as Verizon, whom I have used) has claimed that Touch ID ADDS security? If so, can someone explain to me why this is not mis-represenation?  I don't mean to be inflammatory, but the dictionary definition of misrepresentation is "the action or offence of giving a false or misleading account of the nature of something" (from Google).
    This is a user-to-user technical support forum. Answering questions about what companies have or have not said and the legality of those statements is way outside the purview of this forum. Additionally, speculating on Apple's policies is specifically a violation of the Terms of Use of this forum.
    However, I think the first paragraph of this overview from Apple gives a good idea of way "convenience" is nothing to belittle. If it encourages people to use passwords who would not otherwise do so, those people's phones are certainly more secure.
    http://support.apple.com/kb/ht5949
    Best of luck.

  • HT1329 i read the article on using ipod to move music from my windows computer to my new mac...can i use my ipad instead to do this?

    i read the article on how to use an ipod to move music from my old windows computer to my new mac...can i use an ipad instead?

    No. It only works with iPod Nano, Shuffle and Classic. You could use an external HDD or pendrive tough...

Maybe you are looking for

  • Want to be able to double click on a document and open it

    hi, I've a web application that runs on oc4j and i'm trying to create a page that shows an output file name (returned by a bean). I dont want the name to be hyperlinked but rather when I double click on the node and have it open a browser (wth a vali

  • Convert .doc file with embedded file(s)

    Dear all, I have around 1 million documents that need to convert from .doc / .xls to PDF, and I've found that some .doc files embedded with other files into it, like a .doc inside another .doc, or .xls inside another .doc, for those files, after conv

  • Lumia 900 - Updated to 7.8 - can't change icon siz...

    After updating my Lumia 900 phone to 7.8, I don't see the second icon in the lower right to change the size of the icons?  Am I missing a setting or something?  I click and hold down an icon, but I only see the unpin icon in the top right. Thanks in

  • Portal Role(s) to be granted for Content Management

    I am looking for the names of the Portal Roles that needed, in order the users to have access to "Content Management / Administration' area. So far, I have the roles for "Business Intelligence" and "Business Explorer". Best regards, Tom

  • When opening any website the opening page shows the title and ending but nothing inbetween;why?

    when opening a websi8te such as the Met Offi8ce,I get the heading Met Office then a large gap following the endit message.Then I get the information I asked for on a seperate second page.This event repeats itselk on every website i visit.