Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: New problem with containers

$
0
0
Re: New problem with containers
FoxInCloud
Re: New problem with containers
Feb. 3, 2013
12:02 pm
3PH0PTTLCShow this entire thread in new window
I have changed my class and instead of Container i use a button, but hte problem is the same...the first time the form is show and i add my buttons at runtime they are at the top of the container, if i close the form, or also if i call a wmessagebox, the form is "refreshed" and the buttons are in the correct position.

The HTML output of the first request /(hen the buttons are not in the correct position) is this:

HTTP/1.1 200 OK Content-type: text/xml Set-Cookie: mob=3OS0MM1B6; path=/; expires=Fri, 2 Aug 2013 23:00:00 GMT<?xml version='1.0' encoding='UTF-8' standalone='yes'?>trueboolean$('agenda_scx-d1').update('&#60;!-- Rendered in 036 ms --&#62;&#60;!-- Rendered in 015 ms --&#62;&#60;div id="agenda_scx-d1-_appointment1" class="container awcnt mobcnt _container _appointment" style="display:block;"&#62;&#60;!-- Rendered in 007 ms --&#62;&#60;label id="agenda_scx-d1-_appointment1-_label1" class="label awlbl moblbl _label" style="text-align:center;background:transparent;color:#0000FF;cursor:pointer;width:131px;height:59px;display:block;font:16pt \'Trebuchet MS\';left:-8px;top:1px;"&#62;Lunedì&#60;/label&#62;&#60;!-- agenda_scx-d1-_appointment1 --&#62;&#60;/div&#62;&#60;!-- Rendered in 007 ms --&#62;&#60;button id="agenda_scx-d1-a1" class="commandbutton awcmd mobcmd _commandbutton _appointment1" style="display:block;" tabindex="542" onclick="FoxInCloud.DOMEvent(event)" type="button" autocomplete="off"&#62;Demo COGEN&#60;/button&#62;&#60;!-- Rendered in 007 ms --&#62;&#60;button id="agenda_scx-d1-a2" class="commandbutton awcmd mobcmd _commandbutton _appointment1" style="display:block;" tabindex="543" onclick="FoxInCloud.DOMEvent(event)" type="button" autocomplete="off"&#62;Corso SAP&#60;/button&#62;'); $('agenda_scx-d2').update('&#60;!-- Rendered in 035 ms --&#62;&#60;!-- Rendered in 034 ms --&#62;&#60;div id="agenda_scx-d2-_appointment1" class="container awcnt mobcnt _container _appointment" style="display:block;"&#62;&#60;!-- Rendered in 007 ms --&#62;&#60;label id="agenda_scx-d2-_appointment1-_label1" class="label awlbl moblbl _label" style="text-align:center;background:transparent;color:#0000FF;cursor:pointer;width:131px;height:59px;display:block;font:16pt \'Trebuchet MS\';left:-8px;top:1px;"&#62;Martedì&#60;/label&#62;&#60;!-- agenda_scx-d2-_appointment1 --&#62;&#60;/div&#62;'); $('agenda_scx-d3').update('&#60;!-- Rendered in 017 ms --&#62;&#60;!-- Rendered in 015 ms --&#62;&#60;div id="agenda_scx-d3-_appointment1" class="container awcnt mobcnt _container _appointment" style="display:block;"&#62;&#60;!-- Rendered in 007 ms --&#62;&#60;label id="agenda_scx-d3-_appointment1-_label1" class="label awlbl moblbl _label" style="text-align:center;background:transparent;color:#0000FF;cursor:pointer;width:131px;height:59px;display:block;font:16pt \'Trebuchet MS\';left:-8px;top:1px;"&#62;Mercoledì&#60;/label&#62;&#60;!-- agenda_scx-d3-_appointment1 --&#62;&#60;/div&#62;'); $('agenda_scx-d4').update('&#60;!-- Rendered in 016 ms --&#62;&#60;!-- Rendered in 015 ms --&#62;&#60;div id="agenda_scx-d4-_appointment1" class="container awcnt mobcnt _container _appointment" style="display:block;"&#62;&#60;!-- Rendered in 007 ms --&#62;&#60;label id="agenda_scx-d4-_appointment1-_label1" class="label awlbl moblbl _label" style="text-align:center;background:transparent;color:#0000FF;cursor:pointer;width:131px;height:59px;display:block;font:16pt \'Trebuchet MS\';left:-8px;top:1px;"&#62;Giovedì&#60;/label&#62;&#60;!-- agenda_scx-d4-_appointment1 --&#62;&#60;/div&#62;'); $('agenda_scx-d5').update('&#60;!-- Rendered in 017 ms --&#62;&#60;!-- Rendered in 016 ms --&#62;&#60;div id="agenda_scx-d5-_appointment1" class="container awcnt mobcnt _container _appointment" style="display:block;"&#62;&#60;!-- Rendered in 007 ms --&#62;&#60;label id="agenda_scx-d5-_appointment1-_label1" class="label awlbl moblbl _label" style="text-align:center;background:transparent;color:#0000FF;cursor:pointer;width:131px;height:59px;display:block;font:16pt \'Trebuchet MS\';left:-8px;top:1px;"&#62;Venerdì&#60;/label&#62;&#60;!-- agenda_scx-d5-_appointment1 --&#62;&#60;/div&#62;'); $('agenda_scx-d6').update('&#60;!-- Rendered in 016 ms --&#62;&#60;!-- Rendered in 015 ms --&#62;&#60;div id="agenda_scx-d6-_appointment1" class="container awcnt mobcnt _container _appointment" style="display:block;"&#62;&#60;!-- Rendered in 007 ms --&#62;&#60;label id="agenda_scx-d6-_appointment1-_label1" class="label awlbl moblbl _label" style="text-align:center;background:transparent;color:#0000FF;cursor:pointer;width:131px;height:59px;display:block;font:16pt \'Trebuchet MS\';left:-8px;top:1px;"&#62;Sabato&#60;/label&#62;&#60;!-- agenda_scx-d6-_appointment1 --&#62;&#60;/div&#62;'); $('agenda_scx-d7').update('&#60;!-- Rendered in 017 ms --&#62;&#60;!-- Rendered in 015 ms --&#62;&#60;div id="agenda_scx-d7-_appointment1" class="container awcnt mobcnt _container _appointment" style="display:block;"&#62;&#60;!-- Rendered in 007 ms --&#62;&#60;label id="agenda_scx-d7-_appointment1-_label1" class="label awlbl moblbl _label" style="text-align:center;background:transparent;color:#0000FF;cursor:pointer;width:131px;height:59px;display:block;font:16pt \'Trebuchet MS\';left:-8px;top:1px;"&#62;Domenica&#60;/label&#62;&#60;!-- agenda_scx-d7-_appointment1 --&#62;&#60;/div&#62;'); var oForm = $('agenda_scx'); if(oForm && oForm.oWindow) oForm.oWindow.setTitle(oForm.oWindow.getTitle().sub(/&nbsp;- <a title=.+/i, '') + '&#38;nbsp;- &#60;a title="In case of trouble, click to send a support request by email FoxInCloud App" href="mailto:FoxInCloud App Admin&#60;appAdmin@yourDomain.com&#62;?subject=FoxInCloud App - trouble with form agenda_scx at Server: 09:02:19 PM"&#62;Server: 09:02:19 PM&#38;nbsp;&#60;img src="Images/email_error.png" style="vertical-align:text-top;" /&#62;&#60;/a&#62;');3OS0MM1B60.0131.2650.5347



Michele,
Can you confirm
ThisForm.D1.wlContentDynamic = .T.
?

I ask you this because it looks like the appointment style is added to dynamic CSS instead of in-line style="" attribute, as of normal awHTML.prg behavior.

If possible, can you post the server xml response when you add this appointment container?
You can get it from the server form inside IDE, click the 'show status' button, then 'last HTML output'.


I have a form with some containers in it. With a button i add runtime some objects in one of thiese container, in the first.
The code to add this object is

ThisForm.D1.clearApps ThisForm.D1.AddObject("A1","_appointment")With ThisForm.D1.A1 .Height = 200 .Tag = "APP" .Top = 250 .Left = 1 ._Label1.Caption = "Demo COGEN" .Visible = .T.EndWith ThisForm.D1.wlContentChanged = .T. ThisForm.Refresh

Where clearApp is a method that clean all the objects already contained in D1 that is the container

When i open the form the first time it appears as in this image

after i click the button to add objects it changes, but the object is not added where i ask (the object has top=250 while in the form it seems at 0 and also the height is not correct. Iy has the properties i defined in the object class)

If i close the form (with the button we found in awcmdok) and the i open the form again i see the form without object in the container (even if in the debug it has still the object)

and when i add newly the object with my button (as i do the first time) the object is added in the correct position

What do i need to do to add the object without problems. This form must show user's appointment in week view....

Thanks




Viewing all articles
Browse latest Browse all 10393

Trending Articles