УкраїнськаEnglishmRussian
Вхід/Новий
У темі багато повідомлень

Adding widget box / modifying Root Page(so)


Автор Повідомлення
Повідомлення створено: 16. 09. 2013 [10:36]
ajinkya
Ajinkya Biradar
Автор теми
Зареєстрован(а) с: 17.12.2012
Повідомлення: 23
Hello Sir,
I need to add one more widget box to root page(so).
I have added it. Currently playing with AGLKS demo only.

But in programming what all changes required in following-
1. Procedure play demo
2. Event process
3. Process in properties of Root Page(so)

I tried to modify "3. Process in properties of Root Page(so) " could manage the front end to the user to some extent,
still could not get it as expected.

And how to link the widget box with the different pages? say "Memo" page.

Like in root page there is one widget box named - "pgCont" which is linked to various pages in root page(so) i.e. (document, memo, contours, graphics)

kindly have a look a the screenshot, to have an idea.

Thank you :-)
Вкладений файл

widget box question.png (Тип файлу: image/png, Розмір: 283.81 кілобайтів) — 2183 завантажень
after_project run.png (Тип файлу: image/png, Розмір: 237.16 кілобайтів) — 2271 завантажень
Повідомлення створено: 16. 09. 2013 [18:00]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
"ajinkya" wrote:

And how to link the widget box with the different pages? say "Memo" page.

Like in root page there is one widget box named - "pgCont" which is linked to various pages in root page(so) i.e. (document, memo, contours, graphics)

You should:
- set attribute "page:group" to some self value, for "pgCont" that is "so" and for "infoW" that is "cntr";
- set the group for all your pages which needed for include to the box;
- prepare the pages call mechanism, by some button or other events.

Learn, learn and learn better than work, work and work.
Повідомлення створено: 17. 09. 2013 [10:51]
ajinkya
Ajinkya Biradar
Автор теми
Зареєстрован(а) с: 17.12.2012
Повідомлення: 23
Hello sir,
Thank you for your reply,
I had done that "page:group" assignment earlier for the new "wdg_Box" named pgCont1.

The actual question is how to divert few pages say - Mainstation, KM101, KM102 on pgCont
and the remaining KM201, KM202, KM301, KM302 on newly created "pgCont1".

Both pgCont and pgCont1 should be assigned to the same page:group as "so", right??

As i have assigned both of them to page:group "so".



But it does not help,
at a time, only one of the "wdg_Box" (either pgCont, pgCont1) are displaying the respective pages on button press.

Повідомлення створено: 17. 09. 2013 [13:18]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
"ajinkya" wrote:

I had done that "page:group" assignment earlier for the new "wdg_Box" named pgCont1.

What is the group value? The value have to different from "pgCont" and "infoW".

"ajinkya" wrote:

The actual question is how to divert few pages say - Mainstation, KM101, KM102 on pgCont
and the remaining KM201, KM202, KM301, KM302 on newly created "pgCont1".

You have not to direct present you have to create new and set for its group like for "pgCont1".

"ajinkya" wrote:

Both pgCont and pgCont1 should be assigned to the same page:group as "so", right??
As i have assigned both of them to page:group "so".

No the group value for the conainers have to specific!

Learn, learn and learn better than work, work and work.
Повідомлення створено: 17. 09. 2013 [17:07]
ajinkya
Ajinkya Biradar
Автор теми
Зареєстрован(а) с: 17.12.2012
Повідомлення: 23
Thank you sir,

It means I have to assign different page:group to each wgt_Box in Root Page(so).

I have gone through ElCadr widget in Projects tab which is assigned to "cntr" page:group,
and the things on ElCadr get displayed on infoW area.

So you want me to create some thing like ElCadr which will display the required things on pgCont1. right?

What I should do in order to get the Root page format as shown in the image attached? I mean from attributes setting and programming point of view.

I want to display floor plan (in the big encircled part on left hand side) on respective floor button pressed (1,2 or 3).
Is it possible?



[Повідомлення редагувалось 1 раз(ів), останній раз 17.09.2013 в 17:08.]
Вкладений файл

Changed root page layout.png (Тип файлу: image/png, Розмір: 25.77 кілобайтів) — 2274 завантажень
Повідомлення створено: 18. 09. 2013 [12:02]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
"ajinkya" wrote:

So you want me to create some thing like ElCadr which will display the required things on pgCont1. right?

Yes, it is right.

"ajinkya" wrote:

What I should do in order to get the Root page format as shown in the image attached? I mean from attributes setting and programming point of view.

For buttons 1, 2 and 3 you should append events processing to RootPage for open the pages related to the buttons and into group of pgCont1.

"ajinkya" wrote:

I want to display floor plan (in the big encircled part on left hand side) on respective floor button pressed (1,2 or 3).
Is it possible?

You have to set need background for the pages behind the buttons 1,2 and 3. So you should have different pages for each button.

Learn, learn and learn better than work, work and work.
Повідомлення створено: 24. 09. 2013 [20:16]
ajinkya
Ajinkya Biradar
Автор теми
Зареєстрован(а) с: 17.12.2012
Повідомлення: 23
Hello sir,
Actually I am a bit stuck here.

Currently I have added one widget with ID "floor_plan" in widget library in Main Elements, which is basically a wdg_box.

As discussed I should have different page:group value for the new wdg_box,
but where are the already used page:group values defined?
Like "so" and "cntr", where should I define new "page:group" value?

Also will it (the ) be added in
1. Mnemo in Rootpage/*/mn/ or
2. RootPage/*/ or
3. Control panel ?

I have gone through --> http://wiki.oscada.org/HomePageEn/Doc/VCAEngine?v=17lg#h887-21

Please suggest the related and required links, which I should go through.
Повідомлення створено: 25. 09. 2013 [08:06]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
"ajinkya" wrote:

Currently I have added one widget with ID "floor_plan" in widget library in Main Elements, which is basically a wdg_box.

As discussed I should have different page:group value for the new wdg_box,
but where are the already used page:group values defined?
Like "so" and "cntr", where should I define new "page:group" value?

You need simple set equal group name to "page:group" for pages container Box, and your pages for open into the box. At all opening your new page "floor_plan" will included into container box if their "page:group" equal or as external window at no one appropriate Box container present.

"ajinkya" wrote:

Also will it (the ) be added in
1. Mnemo in Rootpage/*/mn/ or
2. RootPage/*/ or
3. Control panel ?

Depends from call the page method. For your assigning the page to call the related button you can place it to "Control panel".

Learn, learn and learn better than work, work and work.
Повідомлення створено: 25. 09. 2013 [08:54]
ajinkya
Ajinkya Biradar
Автор теми
Зареєстрован(а) с: 17.12.2012
Повідомлення: 23
Thank you very much sir, for your reply.

I have placed it in control panel now as you suggested, and its a bit easy too.

I am able to get the floor plan in the respective area i.e pgCont1.

Only one thing is remaining now,

-->> Opening a page in pgCont area on button pressed in pgCont1 area.

I will ask queries related to this 3rd and last part of my custom front end.

Thanks again :)

[Повідомлення редагувалось 1 раз(ів), останній раз 25.09.2013 в 08:55.]
Повідомлення створено: 25. 09. 2013 [11:24]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
"ajinkya" wrote:

I am able to get the floor plan in the respective area i.e pgCont1.
Only one thing is remaining now,
-->> Opening a page in pgCont area on button pressed in pgCont1 area.

Why the button into pgCont1 have place? On image layout.png this three button atop pgCont1 or you mean other button?

Learn, learn and learn better than work, work and work.



5905