On Tuesday, May 29, 2012 2:35:02 AM UTC-7, Emma wrote:
> Hi, 
> 
> 
> <blockquote class="gmail_quote" 
style="margin:0;margin-left:0.8ex;border-left:1px #ccc 
solid;padding-left:1ex">
> <ul><li><span style="line-height:normal">Can views be created without 
necessarily having a ModelSQL ( to show the external data as a tree view 
)?</span></li></ul></div></blockquote>
> Well, I guess you can create a class that only extends ModelView and 
populate the data thru a wizard.
> To have it outside of a wizard I guess the way to go would be to have a 
&quot;ModelMyRestApi&quot; extend ModelStorage and have your class inherit 
from it. </div><blockquote class="gmail_quote" 
style="margin:0;margin-left:0.8ex;border-left:1px #ccc 
solid;padding-left:1ex">
> <ul><li><span style="line-height:normal">In where or how can I perform 
custom actions other than <i>on_write </i>within my form (Maybe 
wizards?)?</span></li></ul></div></blockquote>
> I&#39;m not sure I understand what you mean, but there are on_change 
methods that you can use? You can also have buttons either launching 
wizards or calling object methods. </div><blockquote class="gmail_quote" 
style="margin:0;margin-left:0.8ex;border-left:1px #ccc 
solid;padding-left:1ex">
> <ul><li><span style="line-height:normal">Can I create forms that do not 
write or store data, only for displaying information, be it local or from
> </span><span style="line-height:normal">external 
sources?</span></li></ul></div></blockquote>
> Well, for one you can simply set all fields read-only. I guess you could 
overwrite the write/create methods too so they don&#39;t perform any real 
action.</div></div>
> 
> </div>
> Hope it helps</div>

Hi thank you both for your replies,

I find the idea of extending the ModelStorage class quite appealing, 
however I wouldn't know how
difficult or extensive (given that I'm new to the framework) that would be 
and won't that cause errors? 
as I see that an entry is created in the database for each Model and the 
actual data for the model 
won't reside in the database but it will be fetched from a web service, 
also I'd like to use said data,
 not just display it, I'd like to use it for reports or use it to calculate 
other stuff.

Maybe syncing the services is a better option (although one I dislike), 
since its a manufacturing
environment (with a mix of custom apps and systems) and I'd like the near 
real-time data.

In my second question I meant for example, when a user is viewing a model 
(form view) show a button 
that does something else (http post request, access external db , etcetera) 
other than updating/writting 
the current model but using (passing) the information of the current model.

Again, thanks for your time.

Regards, Tristian.

 

-- 
[email protected] mailing list

Reply via email to