emaduddeen
Programmer
Hi Everyone,
In my EIP Field Manager Take Accepted embed I have the following code:
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
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