The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dialog question
Author Message
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #1
dialog question
is there a way to reload the data on a dialog without closing it and reopening it?

[Image: matts_siggy.gif]
09-29-2013 09:09 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: dialog question
I'm pretty sure that client doesn't allow this, but I hope to be wrong.
09-29-2013 09:12 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: dialog question
None that I am aware of

[Image: 2nis46r.jpg]
09-29-2013 10:33 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #4
RE: dialog question
(09-29-2013 09:09 PM)Rattlehead Wrote:  is there a way to reload the data on a dialog without closing it and reopening it?
No. :/

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-29-2013 10:46 PM
Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #5
RE: dialog question
and seems i just found out the hard way that lists are global like vars?

i cant find anything documented that hints at such either

[Image: matts_siggy.gif]
09-30-2013 10:02 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: dialog question
Indeed they are, so you should always make sure your lists are unique

[Image: 2nis46r.jpg]
09-30-2013 12:16 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #7
RE: dialog question
well, i assume i could use dialoglist in a for loop

for <src.dialoglist.count>
if (<src.dialoglist.<local._for>> == d_dialog)
src.dialogclose d_dialog
src.dialog d_dialog
endif
endfor

but apparently i dont know how to find the id of the dialog, i thought it would had meant the dialogs name when it said dialoglist.n.ID

[Image: matts_siggy.gif]
(This post was last modified: 09-30-2013 04:08 PM by Rattlehead.)
09-30-2013 04:05 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: dialog question
Code:
if <list.xxx.count>
     if <list.xxx.findelem "d_dialog"> == 1
         src.dialogclose d_dialog
         src.dialog d_dialog
    endif
endif

no for loop needed to check the list.

You should make sure that your list is unique also... e.g. list.<src.uid>_mysuperlist
What exactly are you doing with it though?

[Image: 2nis46r.jpg]
(This post was last modified: 09-30-2013 08:55 PM by Mordaunt.)
09-30-2013 08:30 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #9
RE: dialog question
i think ur getting list and dialoglist confused

http://wiki.sphere.torfo.org/index.php/DIALOGLIST

basically i need to check to see if they have the dialog open, and if so, close it, reopen it.

[Image: matts_siggy.gif]
(This post was last modified: 09-30-2013 10:09 PM by Rattlehead.)
09-30-2013 10:08 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #10
RE: dialog question
I think you're right....
I need my 2nd coffee clearly.

First time I have seen this actually, there's so little on it in revisions or in the wiki

Code:
Added DIALOGLIST keyword. DIALOGLIST.COUNT gives the number of open gump dialogs,
  DIALOGLIST.$x.ID ($x = a number between 0 and DIALOGLIST.COUNT-1) the ID of the
  respective gump dialog, and DIALOGLIST.$x.COUNT the number of active instances of
  this dialog. So to close a specified gump, DIALOGCLOSE <DIALOGLIST.$n.ID> should do.

I can only guess that it runs in a similar manner as LIST though given it also uses .COUNT
I'll have to have a play with that.

[Image: 2nis46r.jpg]
(This post was last modified: 09-30-2013 10:16 PM by Mordaunt.)
09-30-2013 10:10 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)