HELP - SETVALUESET
Posted: April 12th, 2024, 9:54 am
hello
I need your help, I have 2 ROSTER:
1st ROSTER food list
2° ROSTER, all the ingredients of each food must be listed, for which with the help of "setvalueset" (CPI_02) the values of ROSTER 1 are obtained, and in the variable (CPI_03) the name of the food of ROSTER 1 is assigned.
PROC CPI_02 // Aca se muestra la lista de preparaciones de la comda 1
// Estando en esta posición se ejecutara tando al avanzar como al retroceder
onfocus
preparaciones1.clear();
for CP_ROSTER where CP_01 > 0 do
preparaciones1.add(CP_02, CP_01);
enddo;
preparaciones1.sort(by code);
setvalueset (CPI_02, preparaciones1);
postproc
CPI_03 = getvaluelabel ($);
But I need the row number and name of the food from ROSTER 1 to be assigned in the variable (CPI_03), currently only the name of the food from ROSTER 1 is assigned.
Thank you for your time and support.
Atte. Paul Hinojosa
I need your help, I have 2 ROSTER:
1st ROSTER food list
2° ROSTER, all the ingredients of each food must be listed, for which with the help of "setvalueset" (CPI_02) the values of ROSTER 1 are obtained, and in the variable (CPI_03) the name of the food of ROSTER 1 is assigned.
PROC CPI_02 // Aca se muestra la lista de preparaciones de la comda 1
// Estando en esta posición se ejecutara tando al avanzar como al retroceder
onfocus
preparaciones1.clear();
for CP_ROSTER where CP_01 > 0 do
preparaciones1.add(CP_02, CP_01);
enddo;
preparaciones1.sort(by code);
setvalueset (CPI_02, preparaciones1);
postproc
CPI_03 = getvaluelabel ($);
But I need the row number and name of the food from ROSTER 1 to be assigned in the variable (CPI_03), currently only the name of the food from ROSTER 1 is assigned.
Thank you for your time and support.
Atte. Paul Hinojosa