Creating dynamic id for an input textbox?

I have a datatable in my jsf page in which I need to create an input textbox that must have dynamic values for id attribute and not the hard coded one. What is the possible way to generate that??

Not directly. But why would you? Don't you see a pattern in the generated ID's? Did you check the generated HTML output? If this problem is Javascript related, are you familiar with the 'this' reference?

Similar Messages

  • Create dynamically a number of Input Fields

    hi all,
    one issue about creating dynamically a range of Input fields:
    i have one sap.ui.layout.form.FormContainer.
    at first i want to have one Input field in it. if this field is filled, i want to have a new one below, which is empty, and the cursor should be set to the new field.
    so i know that there is an function addContent for the formcontainer, so i can listen to the changeEvent of the Input field, if this is filled i will add a new Input field.
    at first: is this a good solution or is there any recommended way from SAP?
    second: if i will implement it this way, how can i read the data from this "array" of input fields?
    third: how can i set focus on input field in sapui5?
    thanks for help!
    Regards,
    Alex

    1) Solution sounds good to me
    2) You can do it in multiple ways:
    you can use content aggregation from FormContainer
    you can access Input field by id (you would need to follow some kind of convention when giving id to newely created field, like "inputField" + count, count ++)
    you can use RowRepeater (not sure though how it looks in FormContainer) and use a model for bining
    3) SAPUI5 SDK - Demo Kit From my experience element.focus() works just fine

  • Exchange 2010 SP3 Create Dynamic DL for Direct Reports

    I am not sure this is possible but if there is a will there is a way I guess.
    System: Exchange 2010 SP3 on Windows Server 2008 R2
    I am trying to see if there is a way to create dynamic DLs for Manager(s) direct reports.
    Example: Manager has 5 people that report directly to them, is there a way to make an dynamic email distribution list that will poll the direct reports as people leave or hired.
    I know I can create one manually but some depts. may have high turnover rates which increase overhead so I am just trying to simplify the process. I of course googled my question but not getting the results I intended.
    Thanks. 

    hi,
    as from above  i understand you are asking about creating an custom attribute and then referencing them .. if yes please check below command
    Get-Mailbox -OrganizationalUnit Sales | Set-Mailbox CustomAttribute1 "SalesOU"Now you can create an e-mail address policy for all recipients that have the CustomAttribute1 property that equals SalesOU, as shown in this example.
    New-EmailAddressPolicy -Name "Sales" -RecipientFilter { CustomAttribute1 -eq "SalesOU"} -EnabledEmailAddressTemplates "SMTP:%s%[email protected] check this.. http://technet.microsoft.com/en-us/library/ee423541%28v=exchg.150%29.aspx
    MARK AS USEFUL/ANSWER IF IT DID
    Thanks
    Happiness Always
    Jatin

  • Create a screen for user input in BI

    Hi Experts,
    I want to know can i creat a screen for user input in BI with module pool programing
    and i want to store the data in ztable in SAP-BI.
    Moderator message: please search for available documentation, these forums are no substitute for ABAP training.
    Edited by: Thomas Zloch on Dec 10, 2010 8:37 PM

    I'm afraid that I cannot get it. I had a look at the docs you suggested before posting, and still, no luck (...)
    JOptionPane.showMessageDialog(dialog, "Please input info");Can you please tell me what I'm doing wrong and I cannot add the JDialog to the JOptionPane?Re-read the API and tutorial. JOptionPane is meant specifically to spare you from instantiating manually a JDialog. The showXxxDialog(...) methods do create a JDialog of their own, based on the contents supplied as arguments.
    In particular, using the 2-arguments variation showMessageDialog(Component parentComponent, Object message):
    - The first argument parentComponent is not be the dialog you want to display, but the component over which you want the dialog to appear. The most typical value are this or null.
    - The second argument is the "message" to display, but as described in the API, it can be a JComponent, that is, even a JPanel with child widgets (in a word, a JPanel containing the specific form you'd display in the dialog if you were writing the dialog manually).
    Again, at the risk of insisting densely, I'm only quoting the API an tutorial, so please read them attentively.
    Edited by: jduprez on Nov 2, 2009 2:29 PM - Sorry Kevin, hadn't seen you latest reply. I completely subscribe to the thought process you recommend.
    Edited by: jduprez on Nov 2, 2009 2:32 PM
    Thinking about it further, I don't completely subscribe... Indeed it looks like a bad idea to make the OP wonder about dialog.setVisible() when JOptionPane enables him to forget about the hand-made dialog. I stand by my own advice ("JDialog" should not even appear in this code extract).

  • Salmple at How to Create Dynamical Object for RTTC

    Hi all, I need a sample at How to Create Dynamical Object for RTTC.
      you can help me?.

    Hello Martinez,
    I have attached a sample for structure types. With the Where-Used-List on the Create() Method of the various RTTC classes one may find more samples. If you meant with object on OO Type then it is to mention that this is not possible yet.
    Regards
      Klaus
    PROGRAM sample.
    DATA: sdescr1 TYPE REF TO cl_abap_structdescr,
          sdescr2 TYPE REF TO cl_abap_structdescr,
          tdescr1 TYPE REF TO cl_abap_tabledescr,
          tdescr2 TYPE REF TO cl_abap_tabledescr,
          tref1   TYPE REF TO data,
          tref2   TYPE REF TO data,
          comp    TYPE abap_component_tab,
          wa      TYPE t100,
          xbuf    TYPE xstring.
    FIELD-SYMBOLS: <tab1> TYPE table,
                   <tab2> TYPE table.
    sdescr1 ?= cl_abap_typedescr=>describe_by_name( 'T100' ).
    comp     = sdescr1->get_components( ).
    sdescr2  = cl_abap_structdescr=>create( comp ).
    tdescr1  = cl_abap_tabledescr=>create( sdescr2 ).
    tdescr2  = cl_abap_tabledescr=>create( sdescr2 ).
    CREATE DATA: tref1 TYPE HANDLE tdescr1,
                 tref2 TYPE HANDLE tdescr2.
    ASSIGN: tref1->* TO <tab1>,
            tref2->* TO <tab2>.
    wa-sprsl = 'E'. wa-arbgb = 'SY'. wa-msgnr = '123'. wa-text = 'first text'.   INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'D'. wa-arbgb = 'SY'. wa-msgnr = '456'. wa-text = 'second text'.  INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'D'. wa-arbgb = 'XY'. wa-msgnr = '001'. wa-text = 'third text'.   INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'D'. wa-arbgb = 'ZZ'. wa-msgnr = '123'. wa-text = 'fourth text'.  INSERT wa INTO TABLE <tab1>.
    wa-sprsl = 'E'. wa-arbgb = 'SY'. wa-msgnr = '123'. wa-text = 'ABAP is a miracle'. INSERT wa INTO TABLE <tab1>.
    EXPORT tab = <tab1> TO DATA BUFFER xbuf.
    IMPORT tab = <tab2> FROM DATA BUFFER xbuf.
    LOOP AT <tab2> INTO wa.
      WRITE: / wa-sprsl, wa-arbgb, wa-msgnr, wa-text.
    ENDLOOP.

  • Create Dynamic variant for date field

    Hello all,
    I need to have the current month year displayed in my selection screen in format MM.YYYY and the field is of type SPMON (Period to analyze - month).
    and while saving the variant it is showing only 'T' (entries from TVARVC table)  in  "selection variable" field and not showing 'D' (Dynamic selection) for the above field.
    So,please help me in resolving this issue.
    Thanks in advance.

    hi
    good
    go through this code,i hope this ll help you to create the dynamic variant.
    Please find the sample using RS_CREATE_VARIANT (FM).
    It make use of other FM also , just have a look .
    Hope this may help you.
    REPORT ZEXAMPLE.
    DATA: JVARI_DESC LIKE VARID,
    RC LIKE SY-SUBRC,
    VARIANT_TEXT LIKE VARIT-VTEXT,
    JVT LIKE VARIT OCCURS 0 WITH HEADER LINE,
    SELPA LIKE RSPARAMS OCCURS 0 WITH HEADER LINE,
    PARMS LIKE RSPARAMS OCCURS 0 WITH HEADER LINE,
    OBJS LIKE VANZ OCCURS 0 WITH HEADER LINE.
    PARAMETERS: P_VAR LIKE RSVAR-VARIANT. "NAME OF VARIANT
    JVARI_DESC-REPORT = SY-REPID.
    JVARI_DESC-VARIANT = P_VAR.
    JVARI_DESC-ENAME = 'EXAMPLES'.
    JVT-REPORT = SY-REPID.
    JVT-VARIANT = P_VAR.
    JVT-LANGU = SY-LANGU.
    JVT-VTEXT = 'FUNCTION EXAMPLES'.
    APPEND JVT.
    CLEAR SELPA.
    SELPA-SIGN = 'I'.
    SELPA-OPTION = 'EQ'.
    SELPA-KIND = 'P'.
    SELPA-SELNAME = 'P_VAR'.
    SELPA-LOW = P_VAR.
    APPEND SELPA.
    CHECK IF VARIANT EXISTS
    CALL FUNCTION 'RS_VARIANT_EXISTS'
    EXPORTING
    REPORT = JVARI_DESC-REPORT
    VARIANT = P_VAR
    IMPORTING
    R_C = RC
    EXCEPTIONS
    NOT_AUTHORIZED = 1
    NO_REPORT = 2
    REPORT_NOT_EXISTENT = 3
    REPORT_NOT_SUPPLIED = 4
    OTHERS = 5.
    IF RC = 0 AND SY-SUBRC EQ 0.
    DELETE OLD VARIANT
    CALL FUNCTION 'RS_VARIANT_DELETE'
    EXPORTING
    REPORT = JVARI_DESC-REPORT
    VARIANT = P_VAR
    FLAG_CONFIRMSCREEN = 'X'
    EXCEPTIONS
    NOT_AUTHORIZED = 1
    NOT_EXECUTED = 2
    NO_REPORT = 3
    REPORT_NOT_EXISTENT = 4
    REPORT_NOT_SUPPLIED = 5
    VARIANT_LOCKED = 6
    VARIANT_NOT_EXISTENT = 7
    NO_CORR_INSERT = 8
    VARIANT_PROTECTED = 9
    OTHERS = 10.
    IF SY-SUBRC NE 0.
    WRITE: 'UNABLE TO DELETE VARIANT:', P_VAR ,'STATUS=', SY-SUBRC.
    EXIT.
    ELSE.
    WRITE:/ P_VAR, 'DELETED'.
    ENDIF.
    ELSE.
    WRITE:/ P_VAR, 'DOES NOT EXIST'.
    ENDIF. " ALREADY EXISTS
    CALL FUNCTION 'RS_CREATE_VARIANT'
    EXPORTING
    CURR_REPORT = JVARI_DESC-REPORT
    CURR_VARIANT = P_VAR
    VARI_DESC = JVARI_DESC
    TABLES
    VARI_CONTENTS = SELPA
    VARI_TEXT = JVT
    EXCEPTIONS
    ILLEGAL_REPORT_OR_VARIANT = 1
    ILLEGAL_VARIANTNAME = 2
    NOT_AUTHORIZED = 3
    NOT_EXECUTED = 4
    REPORT_NOT_EXISTENT = 5
    REPORT_NOT_SUPPLIED = 6
    VARIANT_EXISTS = 7
    VARIANT_LOCKED = 8
    OTHERS = 9.
    IF SY-SUBRC EQ 0.
    WRITE:/ 'VARIANT', P_VAR, 'CREATED FOR PROGRAM', JVARI_DESC-REPORT.
    ELSE.
    WRITE:/ 'VARIANT', P_VAR, 'NOT CREATED FOR PROGRAM', JVARI_DESC-REPORT.
    EXIT.
    ENDIF.
    CALL FUNCTION 'RS_VARIANT_CONTENTS'
    EXPORTING
    REPORT = JVARI_DESC-REPORT
    VARIANT = P_VAR
    TABLES
    VALUTAB = PARMS
    OBJECTS = OBJS
    EXCEPTIONS
    VARIANT_NON_EXISTENT = 1
    VARIANT_OBSOLETE = 2
    OTHERS = 3.
    IF SY-SUBRC NE 0.
    WRITE : / 'ERROR READING VARIANT CONTENTS.'.
    ELSE.
    CALL FUNCTION 'RS_VARIANT_TEXT'
    EXPORTING
    LANGU = SY-LANGU
    CURR_REPORT = JVARI_DESC-REPORT
    VARIANT = P_VAR
    IMPORTING
    V_TEXT = VARIANT_TEXT.
    WRITE:/ 'VARIANT DESCRIPTION:', VARIANT_TEXT.
    LOOP AT PARMS.
    CHECK PARMS-LOW NE SPACE OR PARMS-HIGH NE SPACE.
    READ TABLE OBJS WITH KEY NAME = PARMS-SELNAME.
    WRITE : /2 PARMS-SELNAME, OBJS-TEXT,
    45 PARMS-KIND,
    PARMS-SIGN,
    PARMS-OPTION,
    PARMS-LOW,
    PARMS-HIGH.
    NEW-LINE.
    ENDLOOP.
    SKIP.
    ENDIF.
    some other approach....
    This function module selects the Selection Screen contents
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
    EXPORTING
    curr_report = sy-repid
    TABLES
    selection_table = loc_int_tab
    EXCEPTIONS
    not_found = 1
    no_report = 2
    OTHERS = 3.
    IF sy-subrc NE 0.
    MESSAGE i000 WITH 'Error in RS_REFRESH_FROM_SELECTOPTIONS'(029).
    LEAVE LIST-PROCESSING.
    ENDIF.
    Craete the variant VAR1
    CALL FUNCTION 'RS_CREATE_VARIANT'
    EXPORTING
    curr_report = sy-repid
    curr_variant = wf_variant
    vari_desc = loc_varid
    TABLES
    vari_contents = loc_int_tab
    vari_text = loc_varit
    EXCEPTIONS
    illegal_report_or_variant = 1
    illegal_variantname = 2
    not_authorized = 3
    not_executed = 4
    report_not_existent = 5
    report_not_supplied = 6
    variant_exists = 7
    variant_locked = 8
    OTHERS = 9.
    IF sy-subrc <> 0.
    MESSAGE i000 WITH 'Error while creating dynamic variant'(028).
    LEAVE LIST-PROCESSING.
    ENDIF.
    reward point if helpful.
    thanks
    mrutyun^

  • Create dynamic ID for component / component names in portlet

    Hi,
    I developed a JSF and IBM Portal API based portlet which runs on Websphere Portal Server 5.0.2.2. Everything's fine, if I have just one instance of my portlet on the page. If I have more than one, problems arise...
    This is due to the component IDs which are the same for each portlet instance. I blame IBMs Gerneric faces portlet for this behavoir, but this doesn't solve my problem ;-)
    So I need to create unique IDs for the components for each portlet instance on a page - which means at runtime.
    I thought of a custom component which is generates a unique random ID. The final structure of a page (or JSF component tree) with multiple instances of my portlet should look like this
    root
    |
    + mycomponent id=3454         \
    |  +- form id=form1            | - Portlet instance A
    |     +- input id=textinput1  /
    |    
    + mycomponent id=7656         \
       +- form id=form1            | - Portlet instance B
          +- input id=textinput1  / With this kind of component tree I could distinguish the form in portlet instance A and instance B (for A it would be 3454:form1 and for B 7656:form1)...
    Because there's no real servlet or portlet-code which can be altered, the points to interfere are quite limited. As mentioned above, all general request handling and forwarding to JSPs is handled by the "generic faces portlet"...
    The first point where my own code could be executed is in a custom component on the JSP or the "onPageLoad"-Event of hx:scriptcollector (which is an IBM extension to the standard JSF components).
    Have you any suggestions or best practices how to solve this problem?
    TIA,
    ulkbold

    Did you ever come up with a way to workaround this problem. This problem just bit me over the weekend.

  • Creating a mask for field input

    I have a cfinput that requires the serial number for a piece of equipment.  The number is always something like J123M456789 where the J or the M could be any letter and the 123 and 456789 could be any number that is 3/6 characters.  The code i am using for my input is as follows:
    <cfinput type="text" name="IDnumber" message="You must enter an 11 character meter number" mask="A999A999999" validateat="onSubmit" validate="maxlength" required="yes" class="SERIAL"id="IDnumber" maxlength="11" width="240" minlength="11">
    I am still able to enter any number, any which way i choose. 
    Can anyone help?

    Woops, my bad
    Some of the validation is working.  It is forcing me to input a letter, 3 numbers, a letter and then numbers again.  The trouble is it will let me submit at any time.  In otherwords if I place 11 characters in the text field, they must be in the proper format however i cant get it to force me to enter exactly 11 characters.
    HELP!!!!!

  • How create  dynamic URL for every row  shown in the report?

    Hi,
    Iam new to this Application. I created one interactive report to find the number of bugs logged for every product and its sub component for past one year. The report will look like below structure in the application.
    Product Subcomponent Total
    P1 S1 10
    P2 S2 4
    P2 S21 15
    Now i want to pick the value of Prouct and sub component for every row dynamiaclly and want to generate the URL with the conditions and make it as hyperlink for the Total Column.
    Iam able to make hyperlink for the Total column using the edit options for the total attribute, but it is opening the same page for all the rows in the total column. I want to generate dynamic URL by picking the value prodcut and sub componenet dynamically from the report for every row and want to make it as hayperlink for every row individually.
    Please tell me how to do this?
    Please revert back if you are not clear. Appericiate for your quick help.

    Hello <unknown user>,
    So you already set the Column Link attributes for your Total column. Should all links go to the same page, but with different parameters (ProductID, SubcompID)? Or to another page? And how can you determine that page?
    Assuming you'll go to a sort of detail page or form:
    Target = [Page in this app]
    Page = <your target page no>
    Item1 = <ProductID field in target page>
    Value = #PRODUCTID#
    Item2 = <SubcompID field in target page>
    Value = #SUNCOMPID#
    (you can use the ' flashlight' for getting the correct values)
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • How to create dynamic strcture for a interrnal table

    first i created one internal table . with five fields . suppose i want add two more fields in internal table.
    what is the code for the this . if any one konow

    REPORT  ZTEST05.
    PARAMETERS dbtab TYPE tabname DEFAULT 'SPFLI'.
    TYPE-POOLS rsds.
    DATA tadir_wa  TYPE tadir.
    DATA selid     TYPE  rsdynsel-selid.
    DATA field_tab TYPE TABLE OF rsdsfields.
    DATA table_tab TYPE TABLE OF rsdstabs.
    DATA table     LIKE LINE OF table_tab.
    DATA cond_tab  TYPE  rsds_twhere.
    DATA cond      LIKE LINE OF cond_tab.
    DATA dref      TYPE REF TO data.
    DATA alv       TYPE REF TO cl_salv_table.
    FIELD-SYMBOLS <table> TYPE STANDARD TABLE.
    SELECT SINGLE *
           FROM tadir
           INTO tadir_wa
           WHERE pgmid = 'R3TR' AND
                 object = 'TABL' AND
                 obj_name = dbtab.
    IF sy-subrc <> 0.
      MESSAGE 'Database not found' TYPE 'I' DISPLAY LIKE 'E'.
      LEAVE PROGRAM.
    ENDIF.
    table-prim_tab = dbtab.
    APPEND table TO table_tab.
    CALL FUNCTION 'FREE_SELECTIONS_INIT'
      EXPORTING
        kind         = 'T'
      IMPORTING
        selection_id = selid
      TABLES
        tables_tab   = table_tab
      EXCEPTIONS
        OTHERS       = 4.
    IF sy-subrc <> 0.
      MESSAGE 'Error in initialization' TYPE 'I' DISPLAY LIKE 'E'.
      LEAVE PROGRAM.
    ENDIF.
    CALL FUNCTION 'FREE_SELECTIONS_DIALOG'
      EXPORTING
        selection_id  = selid
        title         = 'Free Selection'
        as_window     = ' '
      IMPORTING
        where_clauses = cond_tab
      TABLES
        fields_tab    = field_tab
      EXCEPTIONS
        OTHERS        = 4.
    IF sy-subrc <> 0.
      MESSAGE 'No free selection created' TYPE 'I'.
      LEAVE PROGRAM.
    ENDIF.
    READ TABLE cond_tab WITH KEY tablename = dbtab INTO cond.
    IF sy-subrc <> 0.
      MESSAGE 'Error in condition' TYPE 'I' DISPLAY LIKE 'E'.
      LEAVE PROGRAM.
    ENDIF.
    CREATE DATA dref TYPE TABLE OF (dbtab).
    ASSIGN dref->* TO <table>.
    TRY.
        SELECT *
               FROM (dbtab)
               INTO TABLE <table>
               WHERE (cond-where_tab).
      CATCH cx_sy_dynamic_osql_error.
        MESSAGE 'Error in dynamic Open SQL' TYPE 'I' DISPLAY LIKE 'E'.
        LEAVE PROGRAM.
    ENDTRY.
    TRY.
        cl_salv_table=>factory(
          IMPORTING r_salv_table = alv
          CHANGING  t_table      = <table> ).
        alv->display( ).
      CATCH cx_salv_msg.
        MESSAGE 'Error in ALV display' TYPE 'I' DISPLAY LIKE 'E'.
    ENDTRY.

  • Please help! error -61399, how to create custom vi for every input in project explorer

    Please help! I have been trying whole night but couldn't get through it.
    I am creating custom vi to simulate cRIO inputs on development computer. ( FPGA target>>execute vi on>> development computer>>custom vi) I then follow tutorial creating test benches:
    Tutorial: Creating Test Benches (FPGA Module)
    but when I run fpga vi I get error -61399, input item/node is not supported (input item/node is my input which I've added from project explorer).
    The closest I got in my research on why this error is occuring- I have not connected all inputs/outputs in project explorer to custom vi. I followed tutorial exactly step by step but still I couldn't get through it.
    Please help! Please help!
    In order to do further investigation, I converted custom vi to a state machine , please find attachment. Having highlight execution on, it clearly demonstrates that input in cRIO are not being selected as a result default cases execute.
    Please find attached modified custom vi with state machine, fpga vi, and original custom vi.
    Best regards 
    Ta
    Attachments:
    custom vi.vi ‏32 KB
    inverter.vi ‏16 KB
    original custom vi.vi ‏22 KB

    Solution:
    You will see this error if no Custom VI has been selected or the Custom VI has not been configured for every I/O item that you are using in your FPGA code???
    I think that's exactly where I'm stuck!
    How do I configure it for inputs??? My attachement show that I have done everything being asked in tutorial!
    Thanks!

  • Creating dynamic endpoint for synchronous partner link. SOA 11g

    I am on page 522 of the Developer's Guide and have hit a dead end.
    1) There is no such thing as a "Transformation" activity.
    2) If I assume they meant "Transform" I am still stuck because you can't use a wsdl as input
    3) What is a "copy rule?" I thought that meant Assign, but the Assign dialog looks NOTHING like their screen shot.
    I get the CONCEPT 100% but the actual implementation is a complete mystery because this book is fatally flawed.

    It's not a link, it is a literal book.
    Oracle SOA Suite 11g R1 Developer's Guide
    Of more importance to me than sorting out the book is sorting out the issue. I have two partner links I want to be able to set runtime endpoints for. I also want this to be done based on which deployment server the composites are on, but I can cross that bridge later.
    One of the partner links is an HTTP Adapter and the other a WS Adapter.
    I imported the WS-address schema and created en endpoint reference variable but then I get stuck. How to I use this to change the endpoint of the partner link? The developer's guide says "use a Transformation" which I am guessing means and Oracle Transform (thing that makes xlst style sheets) but Transform only accepts variables as input and output and the guide screenshot is showing wsdls being used.
    Also -- looking at "The BPEL Cookbook" (http://www.oracle.com/technetwork/articles/carey-090553.html) I get imediately lost because only partial examples are shown and repeated references are made to this "DynamicPartnerLink Sample" which I can find umpteen million references to but no source for.
    OK.. found the source for the referenced wsdl .. and it has nothing I didn't already have.
    I am using jDeveloper... I think the cookbook is referring to some other editor. I needs instructions I can follow in jDeveloper because my employer is requiring we use that.
    Edited by: Keith Fosberg on Oct 30, 2012 7:16 AM

  • How to create Dynamic prompts for a field at run time

    HI all
    I have a table which has 2 columns name attribute1 and attribute1_meaning.
    Attribute1_meaning is the the meaning of attribute 1.
    ex if attribuite1 is 500.. attribute1_meaning tells us if its MHz. RAM or whatever.
    So IN my form I want to display the prompt of attribute1 as the value attribute1_meaning
    Is there a way to do this ?
    thanks

    It also depends on your form layout. Francois' solution works if you only display one record. If you display multiple records this won't work, since an item can only have one prompt at a time. There is no set_item_instance_property for the prompt.
    In that case you can create two fields attribute1 and attribute1_meaning. You can set the visual attribute of field attribute1_meaning to look like a normal prompt.

  • Create a variable for user input entry to act as i/p to anothr variable

    Hi,
    I have a requirement in my report where i have two variables one is user entry called "A" the a other user exit "B" and the query is based on an ods.
    <b>
    Scenario:</b> If the user were to enter a string  XXX in A, i need to do a search on certain columns in ODS and store the corresponding keys (single column) in an internal table and the internal table column will act as multiple single values for variable B .
    <b>Questions:</b>
    1. How to get  the value entered in A.(so i can do select statement on ODS table).
    2. In the select statement we need to specify FROM table, so what would the ods table name be.
    3. How to store the values from the select statement into the internal table.
    4.How to populate the values in internal table into variable B.
    5.Once all this is done i need to reset the variable A to empty.
    p.s: ABAP code for any of the following would be highly appreciated.

    hi Karthik,
    1.  you can try
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'varA'.
                  l_var = LOC_VAR_RANGE-LOW.
    2. ods table name = /bic/a[odsname]00 or /bi0/a[odsname]00
    3. use select .... from... into table ...
    4. loop at that internal table and populate as sample code
    5. try to create a RKF with restriction to variable A, and hide this keyfigure,
        not use in reporting.
    hope this helps.
    Populating material numbers from a table to customer exit bex variable
    tables : /bic/azods00.
    DATA: it_ods like /bic/azods00 occurs 0 with header line.
    CLEAR L_S_RANGE.
    WHEN 'varB'.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                  WHERE VNAM = 'varA'.
                  l_odsfield = LOC_VAR_RANGE-LOW.
    SELECT * FROM /bi INTO TABLE it_ods
    WHERE odsfield = l_odsfield.
    loop at it_ods.
    L_S_RANGE-LOW = it_ods-fieldselected.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE TO E_T_RANGE.
    endloop.
          ENDLOOP.

  • How to create Dynamic Parameters for between dates

    Hi,
    I have a requirement to create a crystal report with between dates using dynamic parameters.
    I am getting data from 'BEx Query' where already filters were defined on Date field. So While I am creating a crystal report these filters are displaying under 'Parameter Fields' automatically as Static. When I execute the report I am getting these Date's as Dropdown box. But as per the 'help' in crystal reports, static values won't get updated if any changes were taken place in backend system.
    I have created a Dynamic parameter 'StartDate', but the values are not getting populated in Dropdown box.
    Please let me know how to achieve this requirement.
    Thanks in advance.
    cheers
    dev

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with your directly

Maybe you are looking for