hi,
here is some common information that could help you in future, if you get stuck with pdm_macro attributes:
previously, until sdm 12.5 as I remember, there was possibility to customize PDM_MACRO attributes by putting custom *.mac files into site\mods\majic folder,
but then this were deprectated, but you still can find PDM_MACRO sources in SDM\sapmples\macro folder, for example dtlDateDropdown looks like:
////////////////////////////////////////////////////////////////////////////
// dtlDateDropdown.mac
// @(#)$Id: dtlDateDropdown.mac ASPEN.1 2010/10/12 15:01:48 bolas01 Exp $"
// Specifies a date dropdown with static list of dates on an HTMPL detail form:
//////////////////////////////////////////////////////////////////////////////
#args
hdr = "$args.&{attr}.DISPLAY_NAME" // The text of the header.
attr // The name of the attribute. Required.
colspan = 1 // The number of columns on the form
size = 20 // The width of the input box
make_required = "no" //not for general use.Makes a field REQUIRED on the form regardless of whether it is REQUIRED in the object/database layer.
evt = "" // Event handler string
codename = "" // Name of code
#data
<PDM_IF "&{evt}" != "">
detailSetEventHandler("&{evt}");
</PDM_IF>
detailDateDropdown("&{hdr}","&{attr}",&{colspan},&{size},
<PDM_IF "&{make_required}" == "yes">
1,
<PDM_ELSE>
"$args.REQUIRED_&{attr}",
</PDM_IF>
""
<PDM_IF "&{codename}" != "">
<PDM_LIST prefix="list" FACTORY="ui_selection_values" WHERE=" delete_flag = 0 AND code = '&{codename}'">
,"$list.value","$list.text"
</PDM_LIST>
</PDM_IF>
);
as Gutis described before, you can notice that values are fetching via PDM_LIST function.
Going this way you can notice that some attributes (like id=string in dtlDropdown ) are constant and aren't passes to js function,
so you can define them only via javascript instead of regular PDM_MACRO.
PS: I haven't tried this yet, but I think there is still possibility to customize PDM_MACRO attributes, as they are described and editable in pdmMacro table in SDM:
<sdm>/CAisd/pdmweb.exe?OP=SEARCH+FACTORY=pdmMacro
Regards,
cdtj