on 2012 Apr 14 2:27 PM
Dear All
We have created a custom assignment block and inserted in the opportunity overview screen as an assignment block.
This assignment block has validation date and last pipeline update date fields. Whenever we do some changes to certain
pipeline fields( say Origin,probability...) then immediately the field( Pipeline update date ) of the custom assignment block will be
updated with the current date and time( time stamp).
Now as per the requirement by default this assignment block has to be hidden( we do this using the configuration) and whenever
the user needs it he will add it on to the screen using personalize but the issue is whenever the assignment block is hidden and if
user changes any of the pipeline fields correspondingly the value for the Pipeline update date field is not updating.
We have done the corresponding coding in DO_PREPARE_OUTPUT.
Can you someone guide me why the code is not triggering when it is hidden, we need the fields should be updated even when it is hidden.
Regards
Anil
Hi Anil,
The method DO_PREPARE_OUTPUT of the custom assignment block will not be triggered if the assignment block is hidden. The reason behind this is, the view has to be instantiated for it to call this method.
DO_PREPARE_OUTPUT method of which assignment block, have you put the corresponding code?
I suppose the field values in your assignment block is not persisted in tha backend. You can achieve your requirement creating a new relation and handling it in the genil layer. By doing this, irrespective of whether the view is hidden or not, whenever the view is loaded it will read the correct value.
Alternatively if you properly code the DO_PREPARE_OUTPUT method of your custom assignment block, you can get the correct values. ie. whenever the user make the custom AB visible, it should read the updated values. You can follow this only if the field values are not persisted. Otherwise it is not recomended to put any business logic at the UI layer.
Thanks for your understanding. Keep posting your queries to SCN and get valuable answers.
Best Regards,
Leon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.