Home » Developer & Programmer » Forms » How the Trigger Post-Change (6i)
How the Trigger Post-Change [message #657917] Sun, 27 November 2016 01:00 Go to next message
amjad_alahdal
Messages: 92
Registered: October 2013
Location: Saudi Arabia
Member
Hello guys,
I have a problem in the trigger Post-Change "Item-Level". I want this trigger to Trigger only and only when a change happens in the Field. The trigger seem to Trigger whenever there is an execute_query.
My Idea is:
Whenever the field is changed check the entered value. Why can't this trigger work as I need ?

[Updated on: Sun, 27 November 2016 01:00]

Report message to a moderator

Re: How the Trigger Post-Change [message #657918 is a reply to message #657917] Sun, 27 November 2016 04:04 Go to previous messageGo to next message
Littlefoot
Messages: 21240
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Unless I'm wrong, POST-CHANGE is (was) there for backward compatibility with older Forms version(s) (such as 3.0). Nowadays, you should use
- POST-QUERY (which fetches non-database items values after querying the data block)
- WHEN-VALIDATE-ITEM (used to validate values you enter)
Both should, basically, contain more or less the same code which regards populating non-database items.

Answering your question strictly, it is the WHEN-VALIDATE-ITEM you're looking for.
Re: How the Trigger Post-Change [message #663982 is a reply to message #657918] Fri, 30 June 2017 10:09 Go to previous message
amjad_alahdal
Messages: 92
Registered: October 2013
Location: Saudi Arabia
Member
Thank You For you help. I have fixed the problem
Previous Topic: WHEN-VALIDATE-ITEM for a non-navigable item
Next Topic: SET_ITEM_INSTANCE_PROPERTY
Goto Forum:
  


Current Time: Thu Nov 23 08:41:58 CST 2017

Total time taken to generate the page: 0.01481 seconds