How do deal with automatic created objects

Dan Morphis dan at milkcarton.com
Tue Aug 4 14:59:34 EDT 2015


In your preset add a refreshObject after your addObject, but before you set
the Line parameters. I can't recall if items are executed in order, or
there is a precedents. If executed in order, then this method /should/
work. But at this point its just a wild guess, and probably not something I
would use in production.

Now that I think about it, a better method would be to have your first
preset that does the addObject set a tag. Then create another preset with
the tag name as the precondition, and in there do your refresh and set
parameters.


On Tue, Aug 4, 2015 at 5:14 AM, Markus Mehlan <markus.mehlan at argus.info>
wrote:

> Hello,
>
> in my preset I told the cpe to create a
> "Device.Services.VoiceService.1.NetworkProfile.1.Line"-object.
> The cpe creates a corresponding "SIPLine"-object after that.
>
> I don't see the "SIPLine"-object and it's parameters unless I do a refresh
> on this object via the GUI. Before executing the preset,
> there is an empty "SIPLine" in the cpe's data model.
>
> Is there a way to write the SIPLine's parameters with a preset?
> I've tried with multiple presets and tags, but no success.
>
> Best regards,
> Markus
>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20150804/ef291985/attachment.html>


More information about the Users mailing list