Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3496926
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:18:31+00:00 2026-05-18T12:18:31+00:00

First: I’m shocked that I have to ask this question. Nowhere in the docs

  • 0

First: I’m shocked that I have to ask this question. Nowhere in the docs is it explained how the new “WindowManager” should be used… I’ve been hacking around some hours around this and I still dont have an satistactionary way of doing something as trivial as this:

def vName = 'Error'
if (!app.views[vName]) { //I just want to create it once, otherwise I'd just change it's model and want to show() it!
  buildMVCGroup(vName, vName, errorCode: 500, message: "fail detected ;-)") //ok, this indeed shows the idem (as it's an "frame(/**/show: true,/*...*/", but I dont want to create it each time
}

//    app.windowManager.show(app.views.Error) //fails, show() want's an Window, and app.views.Error is of ErrorView type
//    app.views.Error.visible = true //won't display the view
//    app.views.Error.show() // there is no such method

I’d also need an nice way to hide, something like:

//in controller
def view
def hideAction = {
  //view.hide() //fails, no such method...
}

Another way that would make me happy, is an easy way to “when user clicks OK (in the ErrorView”, dispose of this MVCGroup. I have been searching and reading the examples quite some time today, yet still can’t figure out how to code such easy application flow hmm…

Many thanks in advance for any idea on how to do this,
cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:18:32+00:00Added an answer on May 18, 2026 at 12:18 pm

    Ok, I found quite nice solution for this:

    application(/**/){
      //...
      myError = dialog(/**/){
        //thats my error window
      }
    }
    

    And then in the controller I’d just:

    view.myError.visible = true
    

    It’s quite elegant for such an thing, hope it’s “the right thing to do” 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First let me say that I really feel directionless on this question. I am
First I want to say, I'm sorry if this question have be asked already
first take a look on this picture from localScope app : i have 2
First you should know I have looked into many questions and none of them
First, I have a list of QWidget s that I won't know the length
First of all, I am sorry if this question doesn't belong to SO since
First question on SOF, please be gentle if this may be a stupid question.
First, the background. I used to have a collection logs and used map/reduce to
First of all this is all just concept, I have no actual programming done
First, my question might sound like a duplicate, but I have been going through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.