Hi, Can you please give some example code on how to handle api_datasource.getRequiredColumnViolations? I want to loop through the violations and log a message on all violations, displaying the datasource and columns that have violations. Thanks alot, Michiel A. |
Hi Michiel, Here is a sample code to get a datasource's required column violations. The code below shows popup messages for each violation.
Regards, Samet Thanks Samet !
(09 Jul '12, 08:41)
Michiel A
Hi Michiel, This happens because you have our development schema. Samet suspected this could happen and was trying to find out when we sent you the schema. We are releasing 1.1 this week. It will have this problem solved.
(09 Jul '12, 14:04)
Yalim K. Gerger ♦♦
Just for anybody wanting to use this example: There is a little bug in the second loop. It is missing .name tx fieldname at the end. So the second call to showpopupmessage should be: api_application.showpopupmessage('column name : ' || v_violations_tt(i).columns_t(j).name_tx); Another thing to take note of is that the second loop not only give me the name of the missing required column, but also 3 empty names.. Samet, you have an idea what these empty name_tx values are?
(09 Jul '12, 14:38)
Michiel A
|
Hi Michiel, Sorry for inconvenience, my sample code is for v1.0. But we sent you our development version and it seems we sent you it while we were changing the API. With the new version v1.1 you will not get those empty names. The code below shows how you can use the API in v1.1.
Regards, Samet Hi Samet, no problem. Thanks for the explanation. Michiel
(10 Jul '12, 00:36)
Michiel A
|