Hello,
Can any one help in getting the Default value for all user defined enumerations in a module. Say I have 200 Enumerations in a module, I need to list the default values. DXLAdimn - Thu Mar 09 06:49:41 EST 2017 |
Re: Default value for all user defined enumarations in a module Well this looks like you need to come up with three lines of DXL and do three things: a) iterate through the attributes in a module b) Check if its type is an enumeration type c) get the default value of the attribute and print it Which of these steps do you have problems with? Regards, Mathias |
Re: Default value for all user defined enumarations in a module Mathias Mamsch - Fri Mar 10 08:19:35 EST 2017 Well this looks like you need to come up with three lines of DXL and do three things: a) iterate through the attributes in a module b) Check if its type is an enumeration type c) get the default value of the attribute and print it Which of these steps do you have problems with? Regards, Mathias Hello Mathias, In the step 3, do we need to mention the attribute name? or please let me know the argument to be given thanks. |
Re: Default value for all user defined enumarations in a module VijayAnne - Sat Mar 11 02:30:40 EST 2017 Hello Mathias, In the step 3, do we need to mention the attribute name? or please let me know the argument to be given thanks. AttrDef ad = find(current Module, "Created Thru") string def = ad.defval print def // prints Manual Input See also DXL Manual - Chapter "attribute definitions". Hope this helps, regards, Mathias
|