1. Sheldon Shulman
  2. PowerBuilder
  3. Friday, 15 March 2019 18:11 PM UTC

I have received a request to enable multiple OR conditions on a query. This requires multiple lines in the dw.

Is this accomplished by inserting rows after turning querymode on or is there another way to do this?

 

Accepted Answer
Sheldon Shulman Accepted Answer Pending Moderation
  1. Tuesday, 19 March 2019 14:02 PM UTC
  2. PowerBuilder
  3. # Permalink

I appreciate your responses.

Turns out the prior programming staff had added a loop that deleted but one of the query mode lines.

It just took me some time to find the thing and now it is resolved.

BTW, just about any DataWindow can be in query mode - not just grid.

Comment
  1. mike S
  2. Tuesday, 19 March 2019 14:35 PM UTC


if they are grid datawindows, then you will probably see more than the one row since they are usually setup to show more than 1 row.



when you are not in querymode, how many lines do you see? if only 1, then that is because it is sized to show only 1. add a scrollbar and you can scroll to the other lines.



otherwise you need to resize/reformat stuff to show more rows if you really need to have the additional rows.



also, maybe just use 'in' instead of 'or, for example: IN ('ABC', 'DEF')
  1. Helpful
  1. mike S
  2. Tuesday, 19 March 2019 14:50 PM UTC
IN - Works like OR but within same cell.



Example:

IN ('ABC', 'DEF') is the same as (value = ABC OR value = DEF)

IN (1001,1002)

note that numbers do not need quotes, but string/characters do

  1. Helpful
There are no comments made yet.
mike S Accepted Answer Pending Moderation
  1. Friday, 15 March 2019 20:52 PM UTC
  2. PowerBuilder
  3. # 1

there is no 'insert', there are 24 lines available when in querymode.

if you don't see them , then your datawindow is not big enough to display them all.  add a scrollbar...

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.