Hello
I wan to dynamically load prompt and dialogs for a folder, using dialog and resources.
The ideal will be something like
REDEFINE FOLDER oFld ID 201 OF oDlg PROMPTS zprmpts DIALOGS zdlgs ADJUST where zprmpts and zdlgs are tables containing the prompts and dialogs.
This does not work and errors at redefine method because of default value to len(aprompts).
Activate dialog on init(OFLD:SETPROMPTS(zprmpts)) does not help neither
Any clue ?
Thanks for help
Richard
folder question
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Re: folder question
If zprmpts and zdlgs are tables so you will have to appoint zprmpts[x] and zdlgs[x], no?Richard Chidiak wrote:Hello
I wan to dynamically load prompt and dialogs for a folder, using dialog and resources.
The ideal will be something like
REDEFINE FOLDER oFld ID 201 OF oDlg PROMPTS zprmpts DIALOGS zdlgs ADJUST where zprmpts and zdlgs are tables containing the prompts and dialogs.
This does not work and errors at redefine method because of default value to len(aprompts).
Activate dialog on init(OFLD:SETPROMPTS(zprmpts)) does not help neither
Any clue ?
Thanks for help
Richard
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
- Richard Chidiak
- Posts: 946
- Joined: Thu Oct 06, 2005 7:05 pm
- Location: France
- Contact:
Re: folder question
If zprmpts and zdlgs are tables so you will have to appoint zprmpts[x] and zdlgs[x], no?
I want them to be dynamically loaded at run time, so they may be different from one user to another.
Basically i would do ,;
REDEFINE FOLDER oFld ID 201 OF oDlg ;
PROMPTS zprmpts[1],zprmpts[2],zprmpts[3];
DIALOGS zdlgs[1],zdlgs[2],zdlgs[3] ADJUST
this is an example , in real case the table is up to 15 entries
i want this to be
ofld:aprompts := zprmpts
ofld:adialogs := Zdlgs
zprmpts and zdlgs would hold the prompts and dialogs.
I want them to be dynamically loaded at run time, so they may be different from one user to another.
Basically i would do ,;
REDEFINE FOLDER oFld ID 201 OF oDlg ;
PROMPTS zprmpts[1],zprmpts[2],zprmpts[3];
DIALOGS zdlgs[1],zdlgs[2],zdlgs[3] ADJUST
this is an example , in real case the table is up to 15 entries
i want this to be
ofld:aprompts := zprmpts
ofld:adialogs := Zdlgs
zprmpts and zdlgs would hold the prompts and dialogs.