MDI (Multi Document Interface) form

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

juned_seskoad
Ebase User
Posts: 35
Joined: Mon Jul 14, 2014 11:55 pm

MDI (Multi Document Interface) form

#1

Postby juned_seskoad » Mon Aug 18, 2014 7:16 pm

Dear All,

is there MDI form on ebase ?, like visual basic or like ebase designer that show many form open on right side with name of form in up side, or any trick for open multi document interface (MDI).

I'm tring create a menu with treeview on left side form, and show form on right side, i was tring using dialog box + iframe to show form but it's more coding (for showing form, position) and it's not open multiply form.

Do you have suggestions for open MDI (multi document interface ) form ?

Regards

Juned
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Aug 19, 2014 7:04 am

Juned,

What you describe is quite a common pattern, but we probably wouldn't use an MDI approach to solve it. Instead we would use a sharable Vertical Menu Control on the left with the content on the right. Each click on the menu goes to a different form, but because the menu is shared it always displays with the correct item selected.

There's an example of a shared menu here http://forum.ebasetech.com/forum/viewtopic.php?t=515

So with this approach we only ever display a single form and don't make any attempt to keep multiple forms open at the same time.

If you use this approach you need to decide whether your content pages will be separate forms or pages. If they are pages then you use a gotoPage() call on the menu click event - if they are forms you use a callForm() or gotoForm() call. Tip: if you use gotoForm() you will find that the browser back button doesn't work (you might not care about this), if you use callForm() Ebase will use more memory because it's holding the memory for calling form, if you use gotoPage() everything works smoothly. So my preference is to organise your content in one big form with multiple pages and use gotoPage() to navigate from your menu.

Regards
Jon
0 x

Dave
Ebase Staff
Posts: 89
Joined: Mon Sep 10, 2007 11:48 am

#3

Postby Dave » Thu Aug 21, 2014 8:17 am

Juned - have you thought about having multiple iframes defined on your page, with the forms that you want to have open at the same time being loaded into these?

You would have some work to do if you needed to coordinate the state of the separate forms (because they would be operating completely independently of each other) but it could be done.

Dave
0 x

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

#4

Postby HarryDeBoer » Wed Sep 17, 2014 9:23 am

Yes, we now use:

var url = tmpVal + '/ufs/ufsmain?formid=SHOW_STATS&token=' + tmpTbl.TOKEN.value + '.' + tables.M_CAMPAGNE.ID.value;
tmpTbl = undefined;
var html = '<iframe src="' + url + '" width="98%" height="300px" frameborder=0 scrolling=no></iframe>';

in a html control.

Question, is there a way to show a PAGE also in this manner?
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#5

Postby Jon » Wed Sep 17, 2014 1:12 pm

You can popup a <div> containing your own Html using jQuery, but it's not currently possible to popup a page or a part of a page - it's on our todo list to provide this.

The only way to popup a full page at the moment, is to invoke a form and pass the page name as a parameter. But the trouble with this is that it's then a new form and is outside of the context of your original form - so it's not much use as it's not looking at the original form's data unless you save it first.

One small additional point: it's best if your URL to invoke a form starts with ufsmain instead of /ufs/ufsmain. Then it will work regardless of the name of the webapp.

Regards
Jon
0 x

juned_seskoad
Ebase User
Posts: 35
Joined: Mon Jul 14, 2014 11:55 pm

#6

Postby juned_seskoad » Wed Sep 17, 2014 2:33 pm

Dear All,
Now I use dialog box to open a form and it like mdi form, also from dialogbox can open another dialogbox from it. But I have a problem to passing value from one dialogbox to new dialogbox.

I have a form menu, will open SALES FORM with dialog box from drop down menu, on SALES FORM will show list of Sales on table, I want to select row on table than click VIEW Button to show EDIT FORM in dialogbox but i cannot pass value to EDIT FORM fields.

My code something like this
1. Open SALES FORM -> using dialog box + iframe (url of SALES FORM)
2. Select data on Sales Table and keep it on field with editor input id = 'no_selection'
3. Open EDIT Form -> using dialog box + iframe (url of EDIT FORM) + pasing value from SALES FORM to EDIT FORM
document.getElementById('no_editvalue').value = window.frames["iframe_sales"].document.getElementById('no_selection').value

it's not working

Please anyone can give correction ?

Regards

Juned
0 x

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

#7

Postby HarryDeBoer » Thu Sep 18, 2014 5:47 am

>>Jon wrote:but it's not currently possible to popup a page or a part of a page - it's on our todo list to provide this.

That would indeed be very nice!. I wonder however if you could achieve this in v5 by using components in your project, or are components in v5 still GLOBAL (or is this not possible with components at all?).

My wishes for v5
-better uploadmechanism (then the predifed screen)
-dialogs (out of the box)
-container to 'hold' PAGES

any news on the (pre)release date yet? Need for beta testers? I'm willing to help out.
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#8

Postby Jon » Thu Sep 18, 2014 11:59 am

Harry,

Thanks for the offer of beta-testing V5 - we'll be in touch! Best estimates at the moment are for release next Easter. In V5, components can be created anywhere i.e. not just in the GLOBAL project, but otherwise they are much the same. I guess you could create a generic component to popup a dialog - it's not something I've tried.

Regards
Jon
0 x

hibaaryan
Ebase User
Posts: 1
Joined: Wed Jan 07, 2015 7:29 am

#9

Postby hibaaryan » Wed Jan 07, 2015 8:32 am

Thanks for your answer,,
one more question, it's possible adding picture on table coloum field, i mean in one coloum it will be one field and one picture and if i click that picture it will call other form,
let's say on case to field table coloum item, i will click on those picture and will call form item list and will return value to table coloum item



____________________________________
solarmovies
one piece filler list
is tom selleck gay
Last edited by hibaaryan on Wed Oct 06, 2021 7:36 am, edited 4 times in total.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#10

Postby Jon » Wed Jan 07, 2015 10:47 am

0 x


Who is online

Users browsing this forum: No registered users and 26 guests