|
|
closing a dialog box by skill
hi,
In my skill, i need to refresh my library.
so i use the function "ddsHiRefresh()".
but this function generates a popup window that i can not kill with
hiDBoxOK().
Actually, i'm not sure to get the correct name of the pop up window,
maybe that's why i can not kill it !
So, could anyone tell me how to get the correct name of my popup
window ?
thanks for your help,
b.
|
|
0
|
|
|
|
Reply
|
bedoune (95)
|
3/3/2008 2:35:51 AM |
|
Hi !
if you try the following function into your CIW :
hiFormList()
You will see there is a form symbol called "ddsRefreshForm", I guess
it's the one you are looking for !
If you then type hiFormFinish(ddsRefreshForm), I think it should close
your window. Give it a try ...
I think you can use hiFormDone or hiFormClose as well. Please look at
the doc to see the difference !
Good luck ;-)
Riad.
|
|
0
|
|
|
|
Reply
|
riad.kaced (510)
|
3/3/2008 1:45:30 PM
|
|
Riad KACED wrote, on 03/03/08 13:45:
> Hi !
>
> if you try the following function into your CIW :
> hiFormList()
> You will see there is a form symbol called "ddsRefreshForm", I guess
> it's the one you are looking for !
> If you then type hiFormFinish(ddsRefreshForm), I think it should close
> your window. Give it a try ...
> I think you can use hiFormDone or hiFormClose as well. Please look at
> the doc to see the difference !
>
> Good luck ;-)
>
> Riad.
hiRegTimer("hiFormDone(ddsRefreshForm)" 0) ddsHiRefresh()
will do it. Something similar came up in this forum recently...
This tells SKILL to do the "form done" 0 tenths of a second after the UI has
returned - so that it can be done on the blocking ddsHiRefresh() form.
Regards,
Andrew.
|
|
0
|
|
|
|
Reply
|
andrewb1899 (1994)
|
3/3/2008 4:49:09 PM
|
|
hi,
thanks for your answers.
Unfortunately, none of these solutions work. My popup window freeze
completely the rest of the program. Clicking "ok" is the only thing i
can do ...
i tried :
hiRegTimer("hiFormDone(ddsRefreshForm)" X) ddsHiRefresh() , with
different values for X.
which is the solution given by Andrew. but it doesn't work. Indeed,
this solution was given in a previous topic. I also found the "hack
code" to kill popups , but i don't want to use it because i don't
understand it.
so, i don't know how to kill this popup. Maybe ddsHiRefresh is not the
only way to refresh ? or maybe there's an option to use it in silent
mode ?
Thanks for your help.
b.
|
|
0
|
|
|
|
Reply
|
bedoune (95)
|
3/4/2008 1:43:27 AM
|
|
On Mar 3, 7:43 pm, bedo...@gmail.com wrote:
> hi,
>
> thanks for your answers.
>
> Unfortunately, none of these solutions work. My popup window freeze
> completely the rest of the program. Clicking "ok" is the only thing i
> can do ...
>
> i tried :
> hiRegTimer("hiFormDone(ddsRefreshForm)" X) ddsHiRefresh() , with
> different values for X.
>
> which is the solution given by Andrew. but it doesn't work. Indeed,
> this solution was given in a previous topic. I also found the "hack
> code" to kill popups , but i don't want to use it because i don't
> understand it.
>
> so, i don't know how to kill this popup. Maybe ddsHiRefresh is not the
> only way to refresh ? or maybe there's an option to use it in silent
> mode ?
>
> Thanks for your help.
>
> b.
Perhaps you are dealing with a different popup?
What I do when I need to solve this problem is click OK to dismiss the
window and then look in my CDS.log file. Usually the name of the
command needed to close the window/form/dialog appears as the last
command. I did a quick experiment with ddsHiRefresh and found that it
triggered a modal popup telling me there was no data to refresh. I
closed it and noted the following in my CDS.log:
hiDBoxOK(ddsDBox).
I then used Andrew's trick to close the window:
hiRegTimer("hiDBoxOK(ddsDBox)" 0)
ddsHiRefresh()
Even if you have a different dialog you can figure out the name of it
from the log file (though this may have a dependency on the log filter
setting).
I hope that helps.
Joel
|
|
0
|
|
|
|
Reply
|
joel_cooper (18)
|
3/4/2008 2:34:33 PM
|
|
|
4 Replies
52 Views
(page loaded in 0.103 seconds)
|
|
|
|
|
|
|
|
|