Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EIP Code - No value in field until entry of full line is complete 1

Status
Not open for further replies.

emaduddeen

Programmer
Mar 22, 2007
184
US
Hi Everyone,

In my EIP Field Manager Take Accepted embed I have the following code:

Code:
! Determine the type of number entered for lookup.
!-------------------------------------------------

Message (Clip (Queue:Browse.trandet:sku))

If InString (' ', Clip (Queue:Browse.trandet:sku)) > 0 |
Then
   message ('this is a full sku')
Else
   message ('this is a barcode or a category')
End

Can you tell me what is wrong with this code? I noticed when it fires the value in the first message statement is blank when I entered TEST 123 into Queue:Browse.trandet:sku. When I click back into the field and enter another value like TEST then the first message statement shows TEST 123. In this scenario the If statement shows the correct message.

If I remove the first message statement at the top of the code, the message 'this is a barcode or a category' is displayed no matter what I enter into the field such as TEST and TEST 123. TEST 123 should display the message 'this is a barcode or a category' and TEST should display the message 'this is a full sku'.

Thanks.
Emad

 
Hi Emad,

Essentially your code is firing too soon, you're checking a value in a browse, my guess is that that the browse hasn't been refreshed yet to reflect your change.

I think you want to find an embed, which is later on in the logic flow. Either that or change the variable you're looking at. The question there, is where does the EIP save it's value for the browse to pick it up.

Note: if this were on a form, I'd suggest trying UPDATE(), which copies the value from the window control to it's matching USE variable.

HTH,
Mark Goldberg


 
Hi Mark,

I will try the update statement.

Thanks.

Truly,
Emad
 
Hi Mark,

The update statement worked.

Thanks.

Truly,
Emad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top