Fetch won’t work, and how much do you error check?
UPDATE: It’s fetching the data but making the #F flag false for some reason. I suppose I have to switch to checking with the status of kFetchError and kFetchFinished etc..
> On Mar 1, 2018, at 12:57 PM, Das Goravani <das@Goravani.com> wrote:
>
>
> I have this code and it’s stopping on the fetch, I don’t know why, the record is there to be fetched, it fetched correctly to be put into the invoice…now I’m attempting to change quantity on hand levels in the save process and it won’t fetch, it gives flag false. Do I have something wrong in using #F or any ideas why it won’t fetch…is the flag erroneous sometimes?
>
> Do iProdRow.$select(con(‘WHERE prod_id=’,iLineItemsList.line_prod_id,’ FOR UPDATE’)) Returns #F
> If flag false
> Do method $rollbackokmessagequit (‘Selecting or Locking an Inventory Item’)
> End If
> Do iProdRow.$fetch() Returns #F
> If flag false
> Do method $rollbackokmessagequit (‘Fetching an Inventory Item’)
> End If
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com