on 06-28-2013 6:39 PM
Hi,
I have a requirement to add a custom 'replacement item code' field on the Item Master form. I've added the custom field to the XML file to add fields to the Item Master form when it loads. I also have a choose from list defined and a choose selector button. The choose selector button is defined as follows:
<item uid="S_PTI_RItC" type="4" left="R191" tab_order="0" width="16" top="R15"
height="16" visible="1" enabled="1" from_pane="6" to_pane="6"
disp_desc="0" right_just="0" description="" linkto="U_PTI_RItC" forecolor="-1"
backcolor="-1" text_style="0" font_size="-1" supp_zeros="0"
AffectsFormMode="1" relativeuid="10002044">
<AutoManagedAttribute>
<Attribute id="2" description="editable" modeAdd="0" modeFind="0" modeOK="1"/>
</AutoManagedAttribute>
<specific image="CHOOSE_ICON" ChooseFromListUID="CFL_SEL_RItC1" ChooseFromListAlias="ItemCode"/>
</item>
I have code in the background to catch the choose from list event and I am setting the item code and item name returned from that into my custom fields. The problem is, not matter what I do, my custom fields will not set and the Item Master's main item code and name change to whatever I've selected in the choose from list. Is there a limitation so you cannot have an additional item choose from list on the item master form? I've spent days on this now and have tried everything possible. It makes no sense.
Any help or suggestions would be fantastic. My full XML is below.
Thanks,
David
--------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-16" ?>
<Application>
<forms>
<action type="update">
<form uid="">
<datasources/>
<items>
<action type="add">
<item uid="L_PTI_PRTS" type="8" left="274" tab_order="0" width="118" top="R0"
height="14" visible="1" enabled="1" from_pane="0" to_pane="0"
disp_desc="0" right_just="0" description="" linkto="U_PTI_PRTS"
forecolor="-1" backcolor="-1" text_style="0" font_size="-1"
supp_zeros="0" AffectsFormMode="1" relativeuid="39">
<AutoManagedAttribute/>
<specific caption="Part Section"/>
</item>
<item uid="U_PTI_PRTS" type="113" left="357" tab_order="75" width="160"
top="R0" height="14" visible="1" enabled="1" from_pane="0" to_pane="0"
disp_desc="0" right_just="0" description="" linkto="" forecolor="-1"
backcolor="-1" text_style="0" font_size="-1" supp_zeros="0"
AffectsFormMode="1" relativeuid="39">
<AutoManagedAttribute/>
<specific AffectsFormMode="1" TabOrder="75">
<ValidValues>
<action type="add"/>
</ValidValues>
<databind databound="1" table="OITM" alias="U_PTI_PRTS"/>
</specific>
</item>
<item uid="B_PLS_Qry" type="4" left="R5" tab_order="0" width="110" top="R0"
height="R0" visible="1" enabled="1" from_pane="0" to_pane="0"
disp_desc="0" right_just="0" description="" linkto="" forecolor="-1"
backcolor="-1" text_style="0" font_size="-1" supp_zeros="0"
AffectsFormMode="1" relativeuid="2">
<AutoManagedAttribute>
<Attribute id="2" description="editable" modeAdd="0" modeFind="0" modeOK="1"/>
</AutoManagedAttribute>
<specific caption="BOM - Item Query"/>
</item>
<item uid="L_PTI_RItC" type="8" left="R-35" tab_order="0" width="110" top="R15"
height="14" visible="1" enabled="1" from_pane="6" to_pane="6"
disp_desc="0" right_just="0" description="" linkto="U_PTI_RItC"
forecolor="-1" backcolor="-1" text_style="0" font_size="-1"
supp_zeros="0" AffectsFormMode="1" relativeuid="10002044">
<AutoManagedAttribute/>
<specific caption="BoM Replacement Item"/>
</item>
<item uid="A_PTI_RItC" type="116" left="R80" tab_order="0" width="13"
top="R15" height="11" visible="1" enabled="1" from_pane="6" to_pane="6"
disp_desc="0" right_just="0" description="" linkto="U_PTI_RItC"
forecolor="-1" backcolor="-1" text_style="0" font_size="-1"
supp_zeros="0" AffectsFormMode="1" relativeuid="10002044">
<AutoManagedAttribute/>
<specific linkedObject="4" LinkedObjectType="4"/>
</item>
<item uid="U_PTI_RItC" type="16" left="R96" tab_order="0" width="95"
top="R15" height="14" visible="1" enabled="1" from_pane="6" to_pane="6"
disp_desc="0" right_just="0" description="" linkto="" forecolor="-1"
backcolor="-1" text_style="0" font_size="-1" supp_zeros="0"
AffectsFormMode="1" relativeuid="10002044">
<AutoManagedAttribute>
<Attribute id="2" description="editable" modeAdd="0" modeFind="0" modeOK="1"/>
</AutoManagedAttribute>
<specific TabOrder="0" ChooseFromListUID="CFL_SEL_RItC1" ChooseFromListAlias="ItemCode">
<databind databound="1" table="OITM" alias="U_PTI_RItC"/>
</specific>
</item>
<item uid="S_PTI_RItC" type="4" left="R191" tab_order="0" width="16" top="R15"
height="16" visible="1" enabled="1" from_pane="6" to_pane="6"
disp_desc="0" right_just="0" description="" linkto="U_PTI_RItC" forecolor="-1"
backcolor="-1" text_style="0" font_size="-1" supp_zeros="0"
AffectsFormMode="1" relativeuid="10002044">
<AutoManagedAttribute>
<Attribute id="2" description="editable" modeAdd="0" modeFind="0" modeOK="1"/>
</AutoManagedAttribute>
<specific image="CHOOSE_ICON" ChooseFromListUID="CFL_SEL_RItC1"
ChooseFromListAlias="ItemCode"/>
</item>
<item uid="U_PTI_RItN" type="16" left="R205" tab_order="0" width="188"
top="R15" height="14" visible="1" enabled="0" from_pane="6" to_pane="6"
disp_desc="0" right_just="0" description="" linkto="" forecolor="-1"
backcolor="-1" text_style="0" font_size="-1" supp_zeros="0"
AffectsFormMode="1" relativeuid="10002044">
<AutoManagedAttribute/>
<specific AffectsFormMode="1" TabOrder="0">
<databind databound="1" table="OITM" alias="U_PTI_RItN"/>
</specific>
</item>
</action>
</items>
<ChooseFromListCollection>
<action type="add">
<ChooseFromList UniqueID="-1" ObjectType="-1" MultiSelection="0" IsSystem="1"/>
<ChooseFromList UniqueID="CFL_SEL_RItC1" ObjectType="4" MultiSelection="0" IsSystem="0"/>
<ChooseFromList UniqueID="CFL_SEL_RItC2" ObjectType="4" MultiSelection="0" IsSystem="0">
</ChooseFromList>
</action>
</ChooseFromListCollection>
</form>
</action>
</forms>
</Application>
Hi David,
Instead of CFL, why dont you use Formatted search ?
Simple and without extra coding.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Edy,
There should be no reason I can't use another item choose from list unless there is a known conflict with having a custom one on the item master form.
The users need a choose from list because they won't know which item code they want to use so a formatted search isn't sufficient. They need a choose from list to browse items to find the one they are looking for.
Thanks,
David
User | Count |
---|---|
96 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.