pralash
4th March 2018, 10:35
Hi,
I've created session by using some form fields... I've set the item field as mandatory in form designing... But I executing the session without giving any value to item field, it will highlight a error "Enter a value for item field" for the first time, then press the tab key without giving the input this error is not highlighted... And the control goes to next field for accepting the input... Hence how can I focus the control in the item field continuously if there is no input value in the item field... My script is as follows...
field.whinh312.item:
check.input:
select tcibd001.*
from tcibd001
where tcibd001.item = :whinh312.item
selectdo
selectempty
set.input.error("tctccom0003",1)
endselect
on.input:
if isspace(whinh312.item) then
message("must be enter the value")
to.field(whinh312.item)
endif
If we've given any input value to the item field, then this value is validated to the particular table.... So this process is happened successfully... But if I leave the item field as empty , then the control goes the next field. But I need to retain the control in the item field if I press the tab key. Can you please assist me...
Thanks a lot...
Regards,
Pralash
I've created session by using some form fields... I've set the item field as mandatory in form designing... But I executing the session without giving any value to item field, it will highlight a error "Enter a value for item field" for the first time, then press the tab key without giving the input this error is not highlighted... And the control goes to next field for accepting the input... Hence how can I focus the control in the item field continuously if there is no input value in the item field... My script is as follows...
field.whinh312.item:
check.input:
select tcibd001.*
from tcibd001
where tcibd001.item = :whinh312.item
selectdo
selectempty
set.input.error("tctccom0003",1)
endselect
on.input:
if isspace(whinh312.item) then
message("must be enter the value")
to.field(whinh312.item)
endif
If we've given any input value to the item field, then this value is validated to the particular table.... So this process is happened successfully... But if I leave the item field as empty , then the control goes the next field. But I need to retain the control in the item field if I press the tab key. Can you please assist me...
Thanks a lot...
Regards,
Pralash