Alpha Video Training
Results 1 to 11 of 11

Thread: Filtered list is prompting to save changes before closing....

  1. #1
    Member
    Real Name
    Joe
    Join Date
    Mar 2009
    Location
    NY
    Posts
    505

    Default Filtered list is prompting to save changes before closing....

    Hi All...

    So for the life of me I cannot find where or why this is happening. I have a UX that has button on it called "Renew". When the user clicks it it opens a list with a listing of last years excess policies. On the UX that is opened from the Renew button is a field that has the value the list is filtered on. In the list is a "Select" button for each record. When you click it it populates a field with the ID of the record that was selected. The ultimate goal is to pass that value back to the UX that has the Renew button. That part I'm not up to yet but have a number of ideas on how/what to do. If I try to close the UX that was opened from the Renew button it is asking me to hit Reset or Save my changes. The two fields that are on the UX are unbound.

    I'm missing simple and I just am not seeing it.

    Any suggestions would be appreciated.

    Thanks
    Joe
    Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

  2. #2
    "Certified" Alphaholic
    Real Name
    Gregg Schmidt
    Join Date
    Mar 2001
    Location
    Milwaukee
    Posts
    1,355

    Default Re: Filtered list is prompting to save changes before closing....

    It obviously thinks the UX is dirty.
    Somewhere in the setup that opens that list should be the option to "Warn before closing if windows is dirty".
    Be sure to uncheck that box.

  3. #3
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,672

    Default Re: Filtered list is prompting to save changes before closing....

    How, specifically, are you updating / populating those 2 fields?

  4. #4
    Member
    Real Name
    Joe
    Join Date
    Mar 2009
    Location
    NY
    Posts
    505

    Default Re: Filtered list is prompting to save changes before closing....

    Thanks for the feedback...

    Gregg...that is the setting I'm trying to find and can't. I also thought it was a validation setting but that didn't help or change anything. I tried looking at the button that opens the UX but I don't see anything there that marks it dirty.

    David...the two fields are PROID and XSID. The PROID is populated by passing an argument on the Renew button to that UX. The PROID default is set to =:PROID_ARG. I use the PROID field to filter the list for showing all of the related records. The XSID is populated when you click the Select button that is on each row. That I'm doing right now just to see if I can grab the ID value on button from the list. Once I get past the not being able to close the window I have to pass that value to the UX that this all started from (where the Renew button was).

    Joe
    Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

  5. #5
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,672

    Default Re: Filtered list is prompting to save changes before closing....

    Again... specifically... how are you setting the value for XSID. What code are you using to set the value into the XSID control? That's probably making the UX dirty. If you're using .setValue(), then use the optional flag [honorChangeEvent] for .setValue()... e.g.

    Code:
    {dialog.Object}.setValue('XSID',yourValue,false);

  6. #6
    Member
    Real Name
    Joe
    Join Date
    Mar 2009
    Location
    NY
    Posts
    505

    Default Re: Filtered list is prompting to save changes before closing....

    Okay...I found it finally...On the Open UX Component action javascript is "Warn before closing if Component in window is dirty". Gregg thanks for that pointer...just kept looking past it. Now to figure out how to pass the value from the XSID field to the UX that the Renew button is on. I assume I will do that from the onHide Window Javascript Events.
    Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

  7. #7
    Member
    Real Name
    Joe
    Join Date
    Mar 2009
    Location
    NY
    Posts
    505

    Default Re: Filtered list is prompting to save changes before closing....

    David...sorry...see below.

    {dialog.Object}.setValueFrom('XSID','list::XS_LAYERS::LIMIT_XS_ID');

    This is on the button that I added on the List Builder, Fields, Button. Then I put that little code on the OnClick of the Button Properties.
    Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

  8. #8
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,672

    Default Re: Filtered list is prompting to save changes before closing....

    Use .setValue() instead, if you want to have more control over what's going on. There is an inconsistency between .setValue() and .setValueFrom() in that .setValueFrom does not have the option [honorChangeEvent]... although it should have.

  9. #9
    Member
    Real Name
    Joe
    Join Date
    Mar 2009
    Location
    NY
    Posts
    505

    Default Re: Filtered list is prompting to save changes before closing....

    Sorry if I should know this but what is/does the [honorChangeEvent] do/mean?
    Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

  10. #10
    "Certified" Alphaholic
    Real Name
    David Kates
    Join Date
    Apr 2008
    Location
    Unionville, ON
    Posts
    7,672

    Default Re: Filtered list is prompting to save changes before closing....

    true sets the UX dirty, false does not.

    https://documentation.alphasoftware....e%20Method.xml

  11. #11
    Member
    Real Name
    Joe
    Join Date
    Mar 2009
    Location
    NY
    Posts
    505

    Default Re: Filtered list is prompting to save changes before closing....

    Thank you...
    Never take a ride to the edge of your mind unless you've got a ticket back - Jon Oliva - Savatage.

Similar Threads

  1. Replies: 2
    Last Post: 03-27-2015, 11:28 PM
  2. Totaling on a list when filtered.
    By PhilM in forum Mobile & Browser Applications
    Replies: 4
    Last Post: 01-29-2014, 08:20 PM
  3. Save button wihout closing page.
    By datacrunch in forum Application Server Version 11 - Web/Browser Applications
    Replies: 2
    Last Post: 05-09-2013, 11:39 AM
  4. Array Filtered List
    By johnkoh in forum Alpha Five Version 9 - Desktop Applications
    Replies: 6
    Last Post: 03-25-2011, 03:21 PM
  5. Dynamically Filtered List Box
    By davej in forum Alpha Five Version 5
    Replies: 2
    Last Post: 12-05-2003, 07:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •