Tom,

Your my hero... lol
That's exactly the type of process I'm looking for and I'm
assuming much more efficient than repetitive Finds().

Just want to say thank you for taking the time to help me understand
some of the functionality!

Tim Peterson

--- In [email protected], "Thomas Turney" 
<[EMAIL PROTECTED]> wrote:
> Tim,
> 
>   Unfortunately, product builder doesn't make it easy to do things 
like
> this.  You can do something like this in say the item number 
validation:
> 
> str 512 ruleexpr(PBAVarMap varMap)
> {
>   InventTable InvTable;
>   ;
>   InvTable = InventTable::Find(varMap.Get("ItemNumber"));
>   if (! InvTable) 
>    {  Box::info(" Cannot find item number!");  }
>   else
>    {  varMap.Set("Description",1,InvTable.Itemname);
>       varMap.Set("Group",1, InvTable.ItemGroup);
>       varMap.Set("Type", 1, InvTable.ItemType);
>    }
>   Return InvTable.NameAlias;
> }
> 
> This example shows a way to populate three modeling variables and 
return a
> fourth.  The problem is that if these modeling variables are 
visible, the
> values you set won't display on the forms (even though they are 
set).  Good
> luck.
> 
> Regards,
> Tom T.
> 
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[EMAIL PROTECTED] On Behalf Of 
tsk1958pete
> Sent: Tuesday, May 31, 2005 9:43 AM
> To: [email protected]
> Subject: [Axapta-Knowledge-Village] Product Builder Validation
> 
> Hi All,
> 
> In a previous post I asked how to get a value from a table
> to validate against, Tom T. was kind enough to point me to
> 
> "Return InventTable::Find(varMap.Get("mw_ItemID")).height"
> 
> in my validation action.
> 
> Now my question is if I need values from say 4 or 5 fields
> from the InventTable, is there a more efficient way to get
> them.
> 
> I come from a Visual FoxPro background where 
the "InventTable::Find"
> would set the record pointer to the correct "ItemId" and after that
> I could address the table directly to get field values rather than
> repetitively calling the find method?
> 
> I'm wondering if something like the following would work:
> "Return InventTable.width"
> 
> Any thoughts are appreciated
> 
> Tim Peterson
> 
> 
> 
> 
> 
> 
> Sharing the knowledge on Axapta. 
> Yahoo! Groups Links




------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/kGEolB/TM
--------------------------------------------------------------------~-> 

Sharing the knowledge on Axapta. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Axapta-Knowledge-Village/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to