Combo-box Cursor Issue
Posted: June 30th, 2022, 11:15 am
I used a dynamic valueset to get name of Guardian from previously entered names. If Name does not exist then user can enter a new name.
The field for Guardian Name is a Combo-box.
The code for dynamic valueset to get name of Guardian is:
//Array Declaration for Guardian name
array string guardian_list(50);
//Dropdown list for Guardian Name
function string guardian_option()
x = 1;
guardian_list.clear();
guardian_list(x-1)= strip(GUARDIAN_NAME(1));
while x < curocc() do
guardian_list(x)= strip(HH_MEMBER_NAME(x));
x=x+1;
enddo;
guardian_list(x) = "";
setvalueset(GUARDIAN_NAME, guardian_list,guardian_list);
end;
However, in the Combo-box, the cursor initial position is the end of field length. If user wants to enter new name then he/she must press back button multiple times to clear the blank spaces and only then can enter a name.
Please help solve this issue. PS: This occurs in Android and not on desktop.
The field for Guardian Name is a Combo-box.
The code for dynamic valueset to get name of Guardian is:
//Array Declaration for Guardian name
array string guardian_list(50);
//Dropdown list for Guardian Name
function string guardian_option()
x = 1;
guardian_list.clear();
guardian_list(x-1)= strip(GUARDIAN_NAME(1));
while x < curocc() do
guardian_list(x)= strip(HH_MEMBER_NAME(x));
x=x+1;
enddo;
guardian_list(x) = "";
setvalueset(GUARDIAN_NAME, guardian_list,guardian_list);
end;
However, in the Combo-box, the cursor initial position is the end of field length. If user wants to enter new name then he/she must press back button multiple times to clear the blank spaces and only then can enter a name.
Please help solve this issue. PS: This occurs in Android and not on desktop.