Dynamic Identifiers

Hello!
I'm working on a custom app that displays dynamic form
elements based on how many elements were set in the admin tool.
Where I'm having an issue is when the mx:Repeater is displaying
each form element. Here's an example:
<mx:Repeater id="lblRepeater"
count="{getAdmin.lastResult.rules.rule.numLines - 1}">
<mx:FormItem label="Line {lblRepeater.currentIndex + 1}
Text" styleName="lblStyleReq">
<mx:TextInput x="{getAdmin.lastResult.rules.rule.ln1X}"
y="{getAdmin.lastResult.rules.rule.ln1Y}"
id="txtLine{lblRepeater.currentIndex + 1}" width="180" height="24"
fontSize="11" fontFamily="Arial" fontWeight="normal"
color="#000000" change="updateImg()"/>
</mx:FormItem>
</mx:Repeater>
Ok, so what I get when I save this is:
"'txtLine{lblRepeater.currentIndex + 1}' is not a valid identifier"
I need dynamic identifiers so that I know which elements have
what values. The other issue I can already see is going to be an
issue is the x/y stuff. These are being set in the admin tool as
well so I'm going to need something like:
x="{getAdmin.lastResult.rules.rule.ln{lblRepeater.currentIndex
+ 1}X}" - (I know this won't work but this is how I'm envisioning
it so that I can explain it properly.
Any help with either one of these things would be greatly
appreciated!

First, the last: Do not attempt to bind directly to
lastResult because it is difficult to debug. Instead use a result
handler function so that you can see your result object and
try/test expressions. I have examples of this all over this forum.
On the first issue, try some different syntax for the binding
expression. I am not confident that what you have is valid.
Tracy

Similar Messages

  • Dynamically Identify Sensitive Data

    First of all, we are a Microsoft shop running SQL Server 2012 Enterprise.
    We've created an MDS model for our Data Governance initiative.  One of the meta data attributes assigned to each data entity deals with the data classification assignment applied to the data entity.  Our desire is to utilize this information to
    dynamically insert text into presentations to specify that the document contains sensitive information if a data entity being presented in the document is identified as "Classified".
    Has anyone out there tried and/or completed something like this and would be interested in sharing their lessons learned?  Also, does anyone have any ideas on how to obtain this goal?
    Thank you in advance.
    Bigguy

    Hi,
    context nodes ??  are you sure you talk about and programm in BSP ??  context nodes are used in Webdynpro !!
    when you talk about your 3 columns, you must be refering to columns in a table; however you pass the information to the table with just 1 internal table and not 3. You have to summarize the information in your 3 sources of information into 1 internal table, which in time you pass to the table.

  • Dynamically identifying a field

    Hi SAP gurus,
    I need to perform a select query on my DB table.
    The "where" criteria of this query will access a field of this DB table which is generated dynamically.
    The table is not dynamically generated but the field is..
    How do I write my query?
    Regards,
    Gayathri

    hi,
    here is a simple program which gets the table field name dynamically...
    for spfli table .... table name is fixed  here
    PARAMETERS:p_input(20) TYPE c,
               p_input1(20) TYPE c,
               p_input2(20) TYPE c.
    FIELD-SYMBOLS <fs> TYPE ANY.
    FIELD-SYMBOLS <fs1> TYPE ANY.
    FIELD-SYMBOLS <fs2> TYPE ANY.
    DATA:BEGIN OF fs_struct,
         input(20) TYPE c,
         input1(20) TYPE c,
         input2(20) TYPE c,
         END OF fs_struct.
    DATA:t_spfli LIKE TABLE OF spfli WITH HEADER LINE.
    fs_struct-input = p_input.
    fs_struct-input1 = p_input1.
    fs_struct-input2 = p_input2.
    SELECT (fs_struct)
    INTO CORRESPONDING FIELDS OF
    table t_spfli FROM spfli.
    write:/ p_input,p_input1,p_input2.
      LOOP AT t_spfli.
        ASSIGN COMPONENT p_input OF STRUCTURE t_spfli TO <fs>.
        ASSIGN COMPONENT p_input1 OF STRUCTURE t_spfli TO <fs1>.
        ASSIGN COMPONENT p_input2 OF STRUCTURE t_spfli TO <fs2>.
        IF <fs> IS ASSIGNED OR <fs1> IS ASSIGNED OR <fs2> IS ASSIGNED.
          WRITE: / <fs>,24 <fs1>, 45 <fs2>.
        ENDIF.
      ENDLOOP.
    Regards,
    priya
    Edited by: Banupriya R on Apr 16, 2008 8:02 AM

  • Dynamically Identifying user issuing SQL statement

    Client wants to provide security to certain data by first capturing the identity of every user issuing a SQL statement, then, based on the user and a security table, allow access to certain data. Is this doable? TIA...

    Oracle has a whole product centered around this called "Label Seurity", which I'm guessing may be too much for your needs. Check out this marking shag for info about "virtual private databases" http://technet.oracle.com/deploy/security/oracle8i/pdf/vpd_wp6.pdf
    Basically, the idea is that the "old school", but still perfecly fine, way to do it is to create views for each group of users and grant permissions to the views for the appropriate users. Optionally using synomyms into their schemas to give users the same name for the different views.
    The virtual private database and similar stuff is hard to explain. I think of it as the db engine auto-adding a where clause to each sql statement based upon who you are. If that makes any sense.
    I've tried this a couple of different ways, but have yet to hit upon one that seems easy & generally applicable.
    Good Luck -d

  • How to identify the component in an action

    Hi, here is my scenario:
    I have multiple tree components in a page and all nodes of them are associated with an action. And I need to identify the id of the tree, from where the action is triggered. But it seems that I cannot pass any parameters into the action. Is there anything like event to let me dynamically identify the tree id where the node clicked belongs to? Using ActionListener?
    thanks,

    Please see
    http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/tree_component.html
    Note this sample does not work for portlet.

  • Select from database dynamically

    Hello colleague,
    i am trying to read a database whose name is dynamically identified. There are several fields but i am interested in one. I want all the entries for that field in the table. The field "trace_fct_id" is type SYSUUID_x(16). I want it to be populated in the CHAR32 field ie GUID.
      LOOP AT lt_tabname INTO ls_tablename.
        CREATE DATA dref TYPE STANDARD TABLE OF (ls_tablename-name).
        ASSIGN dref->* TO <itab>.
        SELECT DISTINCT trace_fct_id FROM (ls_tablename-name) INTO CORRESPONDING FIELDS OF TABLE <itab>.
        MOVE <itab> TO et_func_ids.
      ENDLOOP.
    I get all the entries from the table but i just want to return the ID, and the move does not copy it in the internal table as the column name is different.
    Could you please help?
    Thanks in advance.
    Best Regards,
    Piyush

    Check if this helps:
    DATA: dref TYPE REF TO data,
          lt_tabname TYPE STANDARD TABLE OF tabname,
          ls_tablename TYPE tabname,
          et_func_ids TYPE STANDARD TABLE OF sysuuid_x,
          es_func_ids TYPE sysuuid_x.
    FIELD-SYMBOLS: <itab> TYPE STANDARD TABLE,
                   <wa> TYPE ANY ,
                   <val> TYPE ANY.
    DATA: v_err TYPE string,
          lcx_root TYPE REF TO cx_root.
    LOOP AT lt_tabname INTO ls_tablename.
      CREATE DATA dref TYPE STANDARD TABLE OF (ls_tablename).
      ASSIGN dref->* TO <itab>.
      TRY .
          SELECT DISTINCT trace_fct_id FROM (ls_tablename)
          INTO CORRESPONDING FIELDS OF TABLE <itab>.
          CHECK sy-subrc = 0.
          LOOP AT <itab> ASSIGNING <wa>.
            ASSIGN COMPONENT 'TRACE_FCT_ID' OF STRUCTURE <wa> TO <val>.
            CHECK sy-subrc = 0.
            es_func_ids = <val>.
            APPEND es_func_ids TO et_func_ids.
            CLEAR et_func_ids.
          ENDLOOP.
        CATCH cx_sy_open_sql_error INTO lcx_root."Catch block for SQL errors
          v_err = lcx_root->get_text( ).
          WRITE: / v_err.
      ENDTRY.
      REFRESH <itab>.
    ENDLOOP.
    BR,
    Suhas

  • How to add file name by sqlldr

    Hi All,
    Can anyone kindly give me an approach to use a variable in a sql loader ctl file. I am trying to add the value before each insert of row and this value is the file name. So the question is how can I dynamically identify the input data file name, if not, is there a way I can make my SQL Loader to insert a value (file name) before each row into the table.
    my control file like below ,
    LOAD DATA
    INTO TABLE "user"."AAA_BILL"
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    EXCEPTIONS "USER"."AAA_BILL"
    FIELDS TERMINATED BY '|'
    (Streamnumber ,
    MSID ,
    UserName,
    Domain,
    UserIP ,
    Correlation_ID)and the loading script as below ,
    for j in $(GetFileNames)
    do
    let i=$i+1
    sqlldr user/pass control="/u01/ctrlfile/loadBILLDtl.ctl" log=$WiMAXlog$j.log data=$WiMAXsource$j   bad=$WiMAXlog$j.bad
    GetFileNames ()
    sqlplus -s user/pass << EOF
    set echo off
    SET FEEDBACK OFF
    SET heading off
    set pagesize 50000
    select bi_file_name from dbm_bill_head where bi_file_name like 'WiMAX_%' and bi_auto_status=35  order by bi_file_name;
    EOF
    }What I am trying to accomplish here is, I want to insert the data file name along with other data in the data file into table AAA_BILL and this table has the file name coloumn, but the data file does not contain the file name as one of its contents.
    Note : my DB is 10G and OS is RHEL
    any help please ,
    Edited by: 876602 on 18/12/2011 05:44 ص

    Hi,
    Now it is working just well.
    I kept 2 variables: one with the POSIX file path for my do shell script and another one (using the provided tip here) for the Applescript function.
    The only problem I had left was that teh file was writen in, maybe, UTF8 so I added to the open for access a "as text" at the end to make the file as straith text file.
    I always found languages like Applescript a little bit hard to learn. Strangely, I have less difficulty with Cocoa!
    Thanks for avery one here!

  • Disk0s2 error questions

    Alright, so I have heard about this error, and one of my friends got it today.
    The problem started out as "my computer won't load and has the spinning gear". I then told her to boot in Safe Mode, but it would continuously load. Should it take 2 hours for it to boot? I don't think so...but maybe I am wrong.
    Since that fails, Apple says to boot into single user mode, which is fine. Put in my /sbin/fsck -fy command, and let it do it's thing. Then we see that error.
    So, here are my questions. Note I have my own copies of the grey installation disk, but she does not have hers.
    * Pertaining to the 5-step checkup by running /fsck -fy, how long should this take? It got all the way up to Invalid Record Count (4, 4xxx), with 2 lines of disk0s2 and Invalid Node every now and then. It seems to be stuck/slow on step 4.
    * Is it safe to use my startup/installation disk solely for running Disk Utility? I am almost sure this is due to bad permissions, or simply a bad hard drive.
    * Would Target Disk Mode help? We both have Macs and I know about that feature, but since we don't have a Firewire 800 cable, can't do this. My mac is fine (better repair my permissions!)
    * Any other further steps that can be taken? She is visiting an Apple Store this weekend, so I am merely curious as to what can be done.
    Macbook Specs:
    2010 Macbook Pro 13'
    OS X Snow Leopard (unsure of which version, but I would say 10.6.3,5,7 or 8)

    xtremecarbon wrote:
    I have heard about this error
    What error?
    Invalid Record Count (4, 4xxx), with 2 lines of disk0s2 and Invalid Node every now and then. It seems to be stuck/slow on step 4.
    Disk directory disk0s2 is damaged. Can't tell what disk that is (this is dynamic identifier), but, if you're running SL, in all likelihood that's the 2nd partition (slice) of the internal disk, ie, main partition on the internal disk.
    You can try to (a) boot from an alternate device (eg, Install DVD or ext'l drive) and attempt to fix the problem with Disk Utility, (b) rebuild the disk directory with DiskWarrior, (c) boot from an alternate device, reformat the disk (which will destroy everything currently on it) and restore everything from the backup. In any event, if you don't have a backup, you're in trouble. Pray.
    Is it safe to use my startup/installation disk solely for running Disk Utility?
    To verify or repair the disk? Yes.
    I am almost sure this is due to bad permissions
    Nothing whatever to do with permissions.
    Would Target Disk Mode help?
    No. Can't be used if you can't boot the Mac from the int'l drive.
    Any other further steps that can be taken?
    If there is a current backup, no. If there isn't, boot from an alternate device and try to copy as much data which hasn't been backed up as possible. The Apple Store does not do data recovery.

  • How to read a file which has header and without header

    Hi,
    I have a file to file scenario wherein there are txt files in the source system, some of which has header and some without header.
    How does the sender adapter dynamically identify a file with header and without header.
    I knew that File content Conversion in the sender adapter with "Recordsets per message = 1" can read the header.  But how to handle dynamically.
    Thanks in advance for suggestions and advice.
    Regards.
    Praveen

    Hi,
    Let me give a more clear picture:-
    One of my file which has header and the corresponding values is listed hereunder:
    PERNR;KID;PNALT;NACHN;NAME2;VORNA;TITEL;TITL2 and so on.....
    ;1200;1200;Angus;; and so on.........
    Other file which has no header but only values in it:-
    1200;1200;;Werner;Angus and so on.......
    The structure remains same for all the files.  The only difference is that some of the file has header in it and some without header.  The Message Type is mentioned hereunder:-
    DT_LegacyEmployee (Category - Complex Type)
         Employees (Category - Element, Occurence - 1)
              Employee (Categroy - Element, Type - DT_LegacyEmployee_Row, Occurence - 0...unbounded)
                   PERNR
                   KID
                   PNALT
                   NACHN
                   NAME2 and so on......     
    I read the file in record row.  The file conversion parameters in the file sender adapter are mentioned hereunder:-
    Document Name - MT_LegacyEmployee
    Document Namespace - http://abc.com/xi
    Recordset Name - Employees
    Rescordset Structure - Employee,*
    Recordsets per Message - 1
    Key Field Type - String (Case Sensitive)
    Employee.fieldSeparator - ;
    Employee.endSeparator - 'nl'
    Employee.fieldNames - PERNR,KID,PNALT,NACHN,NAME2,VORNA,TITEL,TITL2 and so on........
    How do we dynamically identify whether the file has header or not.  Even if the file has header or without header, the file needs to be picked and transferred to the target system.  Kindly clarify.
    Regards.
    Praveen

  • Using Conky with multiple MPD servers

    Hello gang.  I have 3 MPD servers that I connect to from my laptop (one is running on my laptop, 2 are on remote servers), and I'd like to have Conky report "now playing" info from whichever one is active at any given moment.  My issue is with dynamically identifying the host/port within Conky.
    I have a Python script that returns the host and port of the active MPD server, which is called like this:
    $ python MpdInfoHandler.py -host
    this.is.myhost
    $ python MpdInfoHandler.py -port
    6600
    So, I tried putting this in my conkyrc:
    mpd_host ${execi 300 python /pathtoscript/MpdInfoHandler.py -host}
    mpd_port ${execi 300 python /pathtoscript/MpdInfoHandler.py -port}
    This doesn't work - Conky seems to interpret the host and port as the actual strings appearing on each line.  So, my question is: is there a way to assign the output of the script calls to "mpd_host" and "mpd_port"?  Or does this only work when dealing with stuff underneath the "TEXT" section in conkyrc?
    Thanks all

    Hello gang.  I have 3 MPD servers that I connect to from my laptop (one is running on my laptop, 2 are on remote servers), and I'd like to have Conky report "now playing" info from whichever one is active at any given moment.  My issue is with dynamically identifying the host/port within Conky.
    I have a Python script that returns the host and port of the active MPD server, which is called like this:
    $ python MpdInfoHandler.py -host
    this.is.myhost
    $ python MpdInfoHandler.py -port
    6600
    So, I tried putting this in my conkyrc:
    mpd_host ${execi 300 python /pathtoscript/MpdInfoHandler.py -host}
    mpd_port ${execi 300 python /pathtoscript/MpdInfoHandler.py -port}
    This doesn't work - Conky seems to interpret the host and port as the actual strings appearing on each line.  So, my question is: is there a way to assign the output of the script calls to "mpd_host" and "mpd_port"?  Or does this only work when dealing with stuff underneath the "TEXT" section in conkyrc?
    Thanks all

  • Determine datatype

    Hii,
    i am trying write some code to transfer data from csv file to a database.
    my problem is to determine the datatype of various column values in the csv file. I read the csv file column wise and have to determine what datatype each col. contains, so to map it to correct type for creating tables in the DB.
    Can someone provide me any reference for determining datatype of a col. value read from csv file, (my google search couldn't yield exact results); i can't figure out how should i determine the type of each column data
    thanks

    bit confused now, here is an example csv file
    21.10.2003;6;0.99;Feb 96;1
    22.10.2003;5;0.99;Feb 66;1
    23.10.2003;10;0.99;Feb 34;1
    24.10.2003;3;1;02. Jun;1i parse the values and each value can be returned as
    String[]
    nothing can said for sure, how to determine whether
    its int, or float or date :-|
    best way: is to let user decide it?I would say so yes. If you have a particular format that you know in advance you can code for that.... but to dynamically identify the column type??
    It will be tricky. For example look at the dates. How many SimpleDateFormats are you going to try to parse before giving up and concluding that it is a String or even a number. (Because a database timestamp column will look just like a number)
    And for numerics... it's an even bigger nightmare. Because first you can look for decimal places... but is the column signed or unsigned? What about the size of the field... what if the first few rows are all ones and twos and the last row has a number like 10786568769.
    I just don't see how you can practically code for EVERY situation.
    Look even at what an existing tool like Access does. It makes some guesses but often you have to tell it or convert the data after it has loaded it as strings.

  • Dyanamically determining receivers

    Hi experts,
    i had an requirement that i have to send the IDOC to multiple receiving system based on certain conditions.
    Receiver determination should happend dynamically(logical routing) based on mapping content we have send the data either file system or mail box. Here i should not create any communcational channel. Recevied determination communications will create dynamically. Nothing to create in configuration side.
    How to acheive the above scenario.
    Thanks
    viswa

    Hi,
    You need to have Communication channels defined for routing the messages to Business systems or services.
    We can dynamically Identify the routings to Business Systems/Services based on the mapping or field values in Receiver Determination using the option "conditional routing ".
    Please check this Blog :-
    Conditional Routing in XI
    Edited by: PhaniKumar Akella on Mar 26, 2008 3:22 AM

  • Filtering TP agreements to use multiple mappings

    So for a very specific reason we want to be able to separate the messages that are received from multiple trade partners for a custom message type (xml).
    i have been able to create the document type/trade partners and now i am facing the following thing:
    1.- if i create a single composite to receive the "messages" from all the tradepartners, i have been able to succesfully create it but i cannot find which is the definition that should be used or how to set the inbound header type so that in bpel i can see which trade partner is sending the message.
    2.- another option would be to create different projects and create the AQ "Message Selector Rule" but there nor examples or details of how setup the AQ properties. i tried "b2buser" with no other property and even with that i am not able to get any messages in the composite, much less does it detail how the rules must be set just (FROM_PARTY='XXXX' OR FROM_PARTY='YYYY').

    Hi,
    I'm not sure I fully understand the question but if you are able to identify the sending Partner you will obtain that information on the back-end as a b2b.property.
    Also note that patch # 20208668 offers a particular functionality (out of many others) that will allow you to dynamically identify an XML document and the Sender by using XPath.
    Cheers
    Tiago
    Oracle Fusion BPM & SOA

  • Same AS2 message to multiple partners

    Hello,
    We have a scenario where the same IDOC needs to be sent to one of many different partners (but only one partner at a time).
    Rather than hardcoding n routings in the receiver determination and having to create n comm channels, is it possible to dynamically configure the end URL (HTTP address) in a single comm channel?
    Thanks and Regards
    Manish

    Just to wrap this up...
    We ended up creating a separate party for each partner - with the corresponding AS2 ID. We could not achieve dynamic routing because in addition to the unique URLs and AS2 IDs per partner, we also needed to refer to the partner's certificate for encryption of the message.
    So based on the ANA code in the IDOC, the message is routed to a specific party. Each party has a specific receiver comm channel with the connection details. Each comm channel is attached to a Receiver Agreement (per message type) that contains the certificate information.
    However, we are dynamically identifying the message type (ORDHDR or DLCHDR) thus we can reuse the same comm channel for different message types, and just call different BIC mappings as needed.
    Hope this helps anyone facing the same design dilemmas.
    Rgds
    Manish

  • DTS-HD DOBLY DIGITAL TRUEHD questions

    i bought a new harman kardon receiever, supposely it says it'll support dolby digtal HD and DTS HD and all that new hd audio stuff. right now im connecting my PS3 to it. using an optical cable (suggested by Magnolia Home Theater people, claiming hdmi can not pass HD audio for PS3, i actually find that true, hdmi can only pass stereo sound for ps3... yah kinda weird)
    so anyways when i watch movie, i go in to the audio selection and selected DTS-HD. But when the movie start playing, on the screen it only says "DTS". soo................ how do i know if it's really producing DTS-HD sound?
    oh yah the one i have is AVR-254. (<---- model just incase one of the mod or admin ask me for the model)

    Hello u_hsen,
    I’m sorry to hear that you’ve run into a bit of an issue with your new equipment.  Hopefully I can help get you pointed in the right direction for a solution.
    I read the owner’s manual for your Harman Kardon receiver and discovered that it should dynamically identify the type of input signal.  You can, of course, manually change these settings as you determine necessary.  If you don’t have a copy of the manual, I found it for download at the manufacturer’s website.
    On looking at the Playstation website, I went to the support section to see what troubleshooting tips there are for Blu-ray audio.  According the site, you should select Linear PCM (under BD/DVD settings) as the audio output for Dolby True HD and DTS Master Audio.  I’d recommend visiting the site for full details.
    I hope this helps,
    John|Social Media Specialist | Best Buy® Corporate
     Private Message

Maybe you are looking for

  • I just had this chat but the session ended before we were finished. Can I get an answer here?

    You are now chatting with Neema. Neema: Hello! Welcome to Adobe Design Specialist team. Neema: how may i help you today? Neema: may i know what version of pagemaker file you are trying to open? Hans Owe Dorfh: PageMaker 7! Neema: you can open pagemak

  • Webutil_host.nonblocking get focus back to applet

    When you launch a program using webutil_host.nonblocking(), is there a way to get the focus back to the Forms applet automatically without closing that program? In older Client/Server versions I believe this was possible using the constant SW_SHOWNOA

  • Deferred tax in v9.0 PL11

    Hi, I was reading through SAP Note 1994207 - Deferred Tax Enabling and tried to follow the steps to enable deferred tax in my PL11 db.  I couldn't locate the 'Deferred Tax' check box describe in the note?  What else do i need to consider to enable th

  • Rotate screen - help!! N95 not 8gb

    When i play my music (and slide my phone down to do it), my nokia automatically rotates to landscape which is cool, but then when i close it it doesn't rotate back unless i slide up to reveal the keypad and then back down again. Now i have tried to d

  • Lightroom Mobile and Raw files in Camera Roll

    I made a new collection in Lightroom Mobile.  I tried to add some files from my camera roll.  The raw files in my camera roll do not show up when I click on the Add from Camera Roll button.  Is working with raw files in the camera roll not an option