979155 wrote:walikum as salam
Hi (Salam Alaykom),
I have a button "clear" , I want when the button is clicked the items will be cleared and the cursor is at the first item, here is the code:Not need of this, simply issue of
*=>but the problem that the item changes color, but the cursor remains at the button "clear"*does your button in the same block ? means button also in the emp block or any other block ? EMP block is tabular ??
NOTE:Hope you are using the trigger at Block level
I used the "when-new-item-instance" trigger to change the color of text items
with this code:
the system shows me alert message (same post when i want insert record):
*"do you want to save the changes"*
I used a block based, the button "clear" to block appatient "EMP", it is a form (not tabular), i do not used when-new-record-trigger and the form contains only one block(EMP)
Hope it works..
979155 wrote:Lets debug..
button "clear" already in last place
with this code:
*=> color item text changes but the cursor remains at the button "clear"*
979155 wrote:Sounds good. It's working now.
when i Debugged,
after a click on the button "clear" the cursor is at the first item text
979155 wrote:It's not clear to me.
I knew why the cursor has become at the first item text because when I click on email button "clear" message is displayed (my own message I put the code in the last item before the button located "clear", this message is: message ('hello'); / / in when-validate-item trigger
So this message is displayed when I click "ok", the cursor will be at the first item
979155 wrote:Walikum as salam o rahmatillah
I'm sure the problem is in the code level when-new-block-instance trigger,I said in several post that the trigger used should be when-New-Item-instance Trigger at Block-Level not when-New-Block-Instance
clear_form(no_validate);have made the form generation after each step pls do it is v important to make the changes take place then run and test after each change u make