LoadURI from the "commons" bundle [message #1613043] |
Thu, 12 February 2015 11:17 |
Yves BERNARD Messages: 190 Registered: July 2014 |
Senior Member |
|
|
Hi,
According to the documentation, it seems that the loadURI could provide an interesting facility to works with severral of source models in parallel.
Does anybody have try using this service and could provide a working example, please?
The description in the new tutorial is not clear:
Quote:
loadURI(uri : String) : String
Load a model from its URI. For example, the call : p.load('file://c:/test/file.notation') will load the file located at file://c:/test/file.notation.
Loading another model in order to be able to use its elements in script
Is the provided signature actually the right one?
How shall it be used to set the value of a variable in the "let" statement?
Thanks,
Yves
Yves
[Updated on: Thu, 12 February 2015 11:18] Report message to a moderator
|
|
|
|
|
Re: LoadURI from the "commons" bundle [message #1693469 is a reply to message #1693435] |
Fri, 24 April 2015 12:15 |
Tristan Faure Messages: 460 Registered: July 2009 |
Senior Member |
|
|
Actually all the load services returns an empty String so you just have to put it in your template and then call other queries getting elements.
Please take care that Acceleo has a cache which always return the same value from a given argument. So if you do :
let e = query(element)
e.load(...)
let e2 = query(element)
e2 will be equals to e1 even if some new resources have been loaded
|
|
|
Powered by
FUDForum. Page generated in 0.03227 seconds