1. Kailainathan Kasinathan
  2. PowerBuilder
  3. Friday, 20 July 2018 05:34 AM UTC

Hi all,

We developed a browser similar to another one present. It basically lists all the available forms based on the search provided by the user. For the first time when i am trying to enter the search values it works fine. But when i try to repeat it for the second time , While entering search values i get a datawindow error like "Expected String" for each value i enter.  I get this error while typing my values but the search works fine. How to solve this error? Any ideas.

Kailainathan Kasinathan Accepted Answer Pending Moderation
  1. Monday, 23 July 2018 04:25 AM UTC
  2. PowerBuilder
  3. # 1

I am not getting anything in the debug mode. When i search for the first time everything works fine. But when i try to modify my search, then only the error occurs. 

Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Friday, 20 July 2018 22:35 PM UTC
  2. PowerBuilder
  3. # 2

The first thing I'd try is to walk through the process in DEBUG mode.

If that's not possible, then try clearing your search field and any FIND variables you are using after each completed search.

Finally, this sure sounds like a "missing parameter" type of error. Ensure that you are passing all of the required parameters to both the DW and any DDDWs you might have EVERY time you attempt a search operation.


Good Luck,

Olan

Comment
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Friday, 20 July 2018 14:05 PM UTC
  2. PowerBuilder
  3. # 3

Hi

You say "While entering search values i get a datawindow error", so does the error occur

1. as you type or

2. when you tab off the field?

if 1. Look in the editchanged event

if 2. Look in the itemchanged event

If you have no code in these events, then please advise what events do have code.

Regards

David

Comment
  1. Kailainathan Kasinathan
  2. Monday, 23 July 2018 04:27 AM UTC
We dont have both the events you specified. We just have a open and search event in the window. setup declaration and dddw clicked and udw keys event in the datawindow. Dont have an idea where the error occurs as i have tried debugging too.
  1. Helpful
There are no comments made yet.
Kailainathan Kasinathan Accepted Answer Pending Moderation
  1. Friday, 20 July 2018 10:04 AM UTC
  2. PowerBuilder
  3. # 4

We dont know where this error originates.

Comment
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Friday, 20 July 2018 09:43 AM UTC
  2. PowerBuilder
  3. # 5

Hi

Have you a clip of your code that is generating this error, on the face of it it is not normal behaviour for a DW.

Regards

David

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.