Show an app's view in a full screen dialog


Adrian Brookbank
Hi, Need to show dialog full screen, anyway to do this as at the moment view within dialog is only showing down centre of the screen. PS: it is an autoscale app Thanks,

DecSoft

Hello to all,

The dialogs are placed and have the size that the library behind decides, in order to be useful and practice in all the platforms. If what you wanted is a view that fit all the screen, forget the usage of a dialog and simply use an app's view, that is, use the ReplaceView or the ShowView to shown an specific app's view, that replace the previous one, and, fit all the screen.



Adrian Brookbank
Problem is I have background events within a certain view which won't update if 'showview' or 'replaceview' is used. Hence why the dialog was chosen.

DecSoft

Hello to all,

If I am not wrong... you must find the way. That is, right now, may you can't do it, but, you must prepare the things in order to be possible. There is no possible to shown a dialog that fit all the screen, and, even if we place some CSS to made it possible... probably we break it, and therefore in some platform, in some browser, the things don't work like appear... My recomendation, seriously, is that you find the way to do what you wanted using a regular view: by made the possible needed changes.

Please, take a look at the "Menu4" sample. You can see how the left button shown a dialog, but, the right button, shown a regular view, which act like the previous one, but not in a dialog, so we fit the entire screen.



Adrian Brookbank
Ok thanks David, I'll have a look.

DecSoft

Hello to all,

Yes; please. I think is the best solution in your case. And for sure that there must be a way in order to achieve it, that is, moving certain piece(s) of code or something like that. If you need some help, just post in the forum.



Amin Mousavi
Hi There,
Have an idea here, so If I get the query correctly, lets say you have view1 which includes HTTPCLIENT1, right now you open a dialog that requires HTTPCLIENT1 but if you open a new view you will not have that access, am I correct? If so, I recommend to move the HTTPCLIENT1 to the master view, then instead of dialog open View2 and set DrawMaster in visul properties of both views to True, you will have it sorted like that as the same client is available to both views.

Adrian Brookbank
Thanks Amin - very helpful I’ll give it a go. Much appreciated.

DecSoft

Hello to all,

In fact, we can place an HTTP Client in View1 and use it from View2... without the Master view... the point is that, if we modify some element in the HTTP Client events (Success or Error), that element must exists in the view in which we are. On the other hand, there is any problem to use any number of HTTP Client controls, so, if we wanted, we can place one in every required view without problems.



Amin Mousavi
Hi David,
That would be great, So lets expand on the above example. We have two report controls (rep1, rep2) consequently in view1 and view2. In the view2 Show event, I want to call HttpClient1 and refresh the rep2 each time this view is opened. I can either get to view2 from view1 or from view3.

So far if I was running "HttpExecute "HttpClient1"" in the show event of View2 I think I was getting an error indicating the control I am calling is not available I believe, does it have anything to do with how I used ShowView and ReplaceView?

Amin Mousavi
No problem at all AJ2018, can not compete with David :-) as I am quiet a newbie myself, but Glad that I could be of help

DecSoft

Hello Amin,

I am not quite sure, but, what we can share is the HTTP Client control, because is a non visual control, however, supose we update a "Report 1" from the HTTP Client Success event... supose that "Report 1" do not exists in the view in which we are when the Success event is fired... then yes, we have a problem, because we are trying to set something in a visual control which is not visible.

In few words, we can use the HTTP Client control from various views... we can use the [App.CurrentView] to determine in which view we are, etc. However, I think the best way to load a "Report 1" control placed in a "View 1", is to execute an HTTP Client control placed in that "View 1". And, in principle, there is no problem to execute this HTTP Control everytime the "View 1" is shown.

But what happen if we have another Report in the same view or in another view? Well... in fact there is no problem to use one HTTP Client control per report, since, in principle, there is no limits in the number of HTTP Controls that we can use. In this way we may have a little more of control... in the sense that every HTTP Client is intented to update controls than exists in the same view than the HTTP Client control.



DecSoft

Hello to all,

No problem at all AJ2018, can not compete with David :-) as I am quiet a newbie myself, but Glad that I could be of help

Any help is appreciated here! :-)



Amin Mousavi
Thanks for clarifications David :-)

Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.