Skip to Content
avatar image
Former Member

Filled Input Field with value from another program

Dear experts,

I have created 2 dialog programs, the 1st will provide the values to be retrieved by the second program and displays it in the input field (text box)

For example, user select certain customer in the first program, and after user click on a button (use submit function) then the customer value will be displayed in the input field on the second program (disabled, can't be edited)

Is that possible? Can you please show me little snippet of code on how to achieve it?

Thank you very much,

Sam

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jul 16, 2009 at 02:30 AM

    Hi,

    In the 2nd dialog program, try to give PARAMETER ID 'EXA' on the Layout Editor and activate it.

    Note: ID name above given can be anything as you desire.

    And while submitting the 1st Program, try to add the below syntax:

    On the PAI write the following:

    SET PARAMETER ID 'EXA'  FIELD <VALUE>.

    When user opens the 2nd program, the Field which is set with Parameter id, will automatically get the value from the 2nd program.

    Rgds,

    Ramani N

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Vimal Vidyadharan

      Vimal,

      I put this code inside screen 2 BPO.

      MODULE STATUS_0200 OUTPUT.

      GET PARAMETER ID 'IDCUSTX' FIELD G_CUSTOMERB.

      ENDMODULE.

      I'm very confused, the G_CUSTOMERB already has value, it should get assigned right? but why the textfield still empty?

      Thanks,

      Sam