How To Get Screen Value Of A Pervious Field In The Next Field In A Form?

rajendran

Member
Code:
Def var v-loc as char no-undo.

Def var v-enddate as date no-undo.

Def var v-routerpubs as char initial “/homs/cbcbc/” no-undo.

Def var v-newrouter as char initial “/home/hgda/” no-undo.


repeat:

  form

  " LOCATION  : "  v-Loc

  help "Enter Product, or Press F2 for lookup."

  Deliverable.CompanyID skip

  " ENDDATE  : "  v-EndDate

  help "Enter cutoff date" skip

  " ROUTERPUBLICATION  : "  v-RouterPubs

  help "Enter Router Publication File" skip

  " NEWROUTER  : " v-NewRouter

  help "Enter New Router File" skip

  " COMMIT MODE  : " v-Commit

  help " enter yes/no to commit the records" skip

  with frame SelectFrame no-labels column 5 no-attr no-box row 5.


End.

After entring v-Loc and v-EndDate ,i need to get the v-Loc value to be reflected in the v-RouterPubs as "/home/bccjd/" + screen-value(v-Loc).

I am working chui.

is there a way to get the previous filed screen value reflected to the next field in a form?
 
Last edited by a moderator:
Def var v-loc as char no-undo.

Def var v-enddate as date no-undo.

Def var v-routerpubs as char initial “/homs/cbcbc/” no-undo.

Def var v-newrouter as char initial “/home/hgda/” no-undo.


repeat:

form

" LOCATION : " v-Loc

help "Enter Product, or Press F2 for lookup."

Deliverable.CompanyID skip

" ENDDATE : " v-EndDate

help "Enter cutoff date" skip

" ROUTERPUBLICATION : " v-RouterPubs

help "Enter Router Publication File" skip

" NEWROUTER : " v-NewRouter

help "Enter New Router File" skip

" COMMIT MODE : " v-Commit

help " enter yes/no to commit the records" skip

with frame SelectFrame no-labels column 5 no-attr no-box row 5.


End.

After entring v-Loc and v-EndDate ,i need to get the v-Loc value to be reflected in the v-RouterPubs as "/home/bccjd/" + screen-value(v-Loc).

I am working chui.

is there a way to get the previous filed screen value reflected to the next field in a form?
Yes, is there a way, more than 1 way.

Check EDITING phrase and FRAME-FIELD, READKEY AND "APPLY LASTKEY".
or
ON ENTRY trigger
 
Top