Hi Everyone,
How can I make TBO to fire off when the attribute is null.
And make not to fire off when the string is not null inside doSave() ?
Can anyone give me the logic to do that.
NO, it does not work that way.
If you assign a TBO to a type and override a method, it will always be called. Your code needs to determine if you must do work or not
So you mean there is no way to make TBO to fire once?
YES I mean there is no way to make a TBO fire one time only
What isNew() doing on TBO?
do you not know that cross posting / re-posting the same problem with a different question is very bad form. Suggest you ask the person who informed you about isNew() and read his alternative
Once you deploy the TBO it will always fire no matter what the attribute contains...
For your requirement, probably you can write your logic inside the doSave() method and get the attribute value. Apply your business logic in the IF condition where IF condition will check for the attribute value.
isNew() - This will be useful to identify whether the object is newly created. If isNew returned false, then it means that attributes are being changed for the existing object.
Hope this clears your point.
PS: DFC development guide clearly explains the process of doSave()