Forum Discussion

FICO's avatar
FICO
Community Manager
18 years ago

Reg: Fetching values from the valueholders

Reg: Fetching values from the valueholders

Hi,

Is there any way by which we can fetch the value from the valueholders clicked during the runtime into the third valueholder..

to elaborate let me give an example:

i have 2 value holders containing some values 

valueholders A and B resp, containing Jan and 30 respectively clicked at runtime..

i need to catch Jan and 30 and put in one valueholder C.

Value holder C should look like Jan30.

Please suggest me something. its urgent

regards,

Archu

7 Replies

  • FICO's avatar
    FICO
    Community Manager

    Archu,

    You have defined a top level template that contains the first two valueholders (A and B). You can then define a code template (say CT) with two valueholders of the type string-provider and single argument count. In the display/SRL content section of this code template (CT) you can combine both arguments.

    Create a third valueholder (say C) in the top level template that points to this new code template (CT) and click the arguments button. Dynamically override both arguments using the valueholders A and B. Drop this new valueholder (C) into display/SRL content section and you should be good to go.

    Hope this helps. Good luck!

  • FICO's avatar
    FICO
    Community Manager

    Hey Pradeep, thanks ya. it was really helpful.

    I have few more doubts.

    Is there any way in RMA that we can append one row to the existing row?

    to elaborate let me give u an example.

    1) I got 3 row saying row a, row b, and row c. now i want to add one more row to it saying row d.

    how can i do it?

    2) There are certain valuholders used in row A like valueholder1 and valuerholder2. can i use the same valueholders for row B. I have tried it but during any operation at run time but it not takin the value from valueholder 2.

    example:

    valueholder 1 contains dropdown values 2, 7, 4

    valueholder 2 contains dropdown values 3, 6, 9

    if i say valueholder 3 = valueholder 1 +valueholder2 (here i chose 2 from VH1 and 9 from VH2)(VH3 = 2+9)

    valueholder4 = valueholder1+valueher 2(Here i chose 7 from VH1 and 6 from VH2) (ideally VH4= 7+6 but its coming as 2 +9 only.)

    May i know why this is happening.

    Thanks in advance.

    regards,

    Archu 

    Message Edited by archu on 11-06-2008 06:36 AM
  • FICO's avatar
    FICO
    Community Manager

    Hi,

    I am assuming row a, row b and row c are same in structure.

    What you can do for this is create a code template with 2 value holders. vh 1 and vh 2. vh3 will be the summation of vh 1 and vh2 as described you.

    Include this in the parent template where you want to use this. When you create a valueholder for this code template in the parent template, set its count to 0 or more.

    With this you can add multiple rows as and when you need it.

    vh3 in every row will correspond to the summation of vh1 and v2 in the corresponding row.

    in case you want to restrict the maximum number of rows that can be created, in the count drop down choose User Defined instead of 0 or more. In this case you can enter the Min and Max number of rows that can be defined.

    Hope this is useful.

    Regards,

    Shivananda R. Mallya

  • FICO's avatar
    FICO
    Community Manager

    thanks Shiv,

    that was nice way of doing addition of rows.

    but the problem is i want the row to be seen as appended to the earlier rows on the screen and not on the other screen.

    is there any work around of it.

  • FICO's avatar
    FICO
    Community Manager

    In the parent Template, when you place a place holder for the value holder of the code template described in the previous post, in the Display part of the parent template double click on the place holder. A place holder wizard opens up. In the bottom half of the window you have a field called Page Location. This would have been set to New Page. From the drop down change this value to Same Page.

    All the new rows you add will be on the same page.

  • FICO's avatar
    FICO
    Community Manager

    hey Shiv,

    thanks a lot for such a wonderful input. (http://blaze.i.lithium.com/i/smilies/16x16_smiley-happy.gif)

    Regards,

    Archu

  • FICO's avatar
    FICO
    Community Manager

    Hi All,

    I have Created on RMA application, In that application I am populating data(i.e. Company name)   using Data provider and Value holder.

    Now I want get the selected Data means when user has select some Company name from the Company List then I will display the Your selected company name as “’selected company name ”  message.

    Please help me how to get the values from value holders.

    Your help is appreciated.