Gary,

Not too sure what the other methods you tried are.  The solution is to
change the declaration line of strItemId to make it finite in length.
This can be done by making it

      SalesIdBase                  strItemID

Or
      Str 22                  strItemID      (the number 22 can be
replaced the appropriate length used by your application.



Barry.


-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of jetjockey.geo
Sent: Sunday, 22 January 2006 1:05 PM
To: [email protected]
Subject: [development-axapta] Development IV


Hi guys,

I'm working towards the development cerification. My company has given
me the MBS Axapta 3.0 training manuals and I'm trying to create the
POS application in ch 1. If anyone can point me to a copy of
ax30_enit_deviv_02.xpo, which I haven't received, that would be ideal.
Failing that, I'm tring to retrieve a record from a table when the
Sales ID is entered, with the following code in the Leave() function
of the StringEdit control:

    str     strItemId;
    ;
    ret = super();

    strItemId = hndItemId.toString();
    select firstonly SalesTable where SalesTable.SalesId == strItemId;

which generates an error:

Container and unbounded string (text) fields are not allowed in a
WHERE _expression_.

I've tried various other methods, too but can't make anything work.
Any suggestions about how to do this would be appreciated.

Thanks,

   Gary.








Yahoo! Groups Links











SPONSORED LINKS
Computer part Programming languages Microsoft axapta
Support exchange


YAHOO! GROUPS LINKS




Reply via email to