Anonymous_User Absent Member.
Absent Member.
206 views

No result in a query


Hi everybody !

I want to know how to fetch that there is no result to a query before
the DN Lookup window comes ?

Thank you


--
vpihen
------------------------------------------------------------------------
vpihen's Profile: https://forums.netiq.com/member.php?userid=5615
View this thread: https://forums.netiq.com/showthread.php?t=48408

Labels (1)
0 Likes
5 Replies
Anonymous_User Absent Member.
Absent Member.

Re: No result in a query

A few more details would be helpful

Wolfgang

On 16.08.2013 11:54, vpihen wrote:
>
> Hi everybody !
>
> I want to know how to fetch that there is no result to a query before
> the DN Lookup window comes ?
>
> Thank you
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: No result in a query


vpihen;232671 Wrote:
> Hi everybody !
>
> I want to know how to fetch that there is no result to a query before
> the DN Lookup window comes ?
>
> Thank you

DN Lookup window is needed to specify parameters of a query. It is not
possible to make a query without parameters. If you don't need users to
specify parameters then use the globalQuery.


--
hello_amigo
------------------------------------------------------------------------
hello_amigo's Profile: https://forums.netiq.com/member.php?userid=211
View this thread: https://forums.netiq.com/showthread.php?t=48408

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: No result in a query


I'm sorry, i think my explanation wasn't very good.

I have a DN Lookup, i put my parameter in the fields then click on the
"search" button.

If there are results, a window open with all the results,

If not, a window open with "No results found".

How can I know in JS, if there are results or no ?


--
vpihen
------------------------------------------------------------------------
vpihen's Profile: https://forums.netiq.com/member.php?userid=5615
View this thread: https://forums.netiq.com/showthread.php?t=48408

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: No result in a query


vpihen;232674 Wrote:
> I'm sorry, i think my explanation wasn't very good.
>
> I have a DN Lookup, i put my parameter in the fields then click on the
> "search" button.
>
> If there are results, a window open with all the results,
>
> If not, a window open with "No results found".
>
> How can I know in JS, if there are results or no ?

Listen to onchange event of the DNLookup field. If the value on the
onchange event is still the same then there was "no results found".


--
hello_amigo
------------------------------------------------------------------------
hello_amigo's Profile: https://forums.netiq.com/member.php?userid=211
View this thread: https://forums.netiq.com/showthread.php?t=48408

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: No result in a query

Probably you can't - at least not straightforward and without heavy
fiddling with jQuery.

The onchange() event is triggered if the resulting DN changed. It won't
differentiate between 'no results' found, or results found but the user
having pressed "cancel" or not having called the DNLookup at all.

IMHO I can't imagine a use case where such information would be relevant
for the forms I have designed.


Good luck

Wolfgang


On 16.08.2013 14:14, vpihen wrote:
>
> I'm sorry, i think my explanation wasn't very good.
>
> I have a DN Lookup, i put my parameter in the fields then click on the
> "search" button.
>
> If there are results, a window open with all the results,
>
> If not, a window open with "No results found".
>
> How can I know in JS, if there are results or no ?
>
>

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.