Skip to Content
author's profile photo Former Member
Former Member

Adobe field binding


How to bind two fields in a column?

I want to display my ouput in table format, while doing that i am not able to concatenate/ bind two table fields in a column.

eg. i have two fields (username and name_text)

both the fields were two different columns in my layout.

but now i want both the fields in single column?

Regards

Nishant

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Dec 24, 2013 at 09:43 AM

    Hello Nishant,

    1) Remove one column from layout.

    2) Then in Form Interface, using ABAP you can concatenate username and name_text in only one column in that table. Change that table structure.

    3) Then in the Context node,refresh that structure. Then drag the table again from data view in Body page display that table in the layout.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Nishant,

      If you want to achieve this without changing the structure, then follow the steps below.

      1) Hide the column name_text in the layout.

      2) Increase the length of username column in your structure considering the additional length of name_text. You don't need to change the whole structure as such.

      3) Click on the username column. In the Initialize event, write the below Javascript code.

      this.rawvalue = this.rawvalue + this.parent.name_text.rawvalue;




  • Posted on Dec 30, 2013 at 04:38 AM

    Hello Nishant,

    Use floating fields in the column where you want to display both iser name and name_text.

    Now bind these values to the respective folating fields.If the values are present then it will display or else you will have empty space.

    For floating fields use text from standard library.

    regards,

    Varun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 30, 2013 at 11:39 AM

    Hi Nishant,

    If you want those two fields values in one field you can try this below code.

    Click on the username column. In the Initialize event, write the below Java script code:

    var username = this.rawvalue;

    var name_text = name_text.rawvalue;

    if(this.rawvalue != null && name_text.rawvalue != null)

    {

    this.rawvalue = username + name_text;

    }

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.