Teie kommentaarid

It seems like generally we create either an app as a single wire file that can take advantage of the same data or use more than one datasource.

res SQL is a good way to get reuse, but it will perform slower than json.
Pagers require a fixed number of objects to work. You can use a create tag to put something into a pager, but you can't delete from a pager, it will create a gap that causes the pager to go haywire and crash. If you want to use a pager you may have to delete the whole pager and recreate it with the new number of items.
Steve,

Unfortunately this method is not currently possible with WIRE. Because your json feed is being created on the fly for main.wire, it can't span over to another wire file. This has more to do with the way the json is stored in the system than it does the targeting of say something like a variable.

If your json were external than obviously you could access it in both.
Steve,

Let me take a look at the WIRE and I will get back to you.
A live update should work just like a content update for an ad-hoc. I have seen nothing to indicate that this will be a problem on iOS.

I took an app with an existing res://SQL db and proceeded to delete the db and replace it. Then I was able to save and snap and install a live update without issue.

The app we did for Boulevard uses this same scenario when they update their SQL databases in the App Store.
I can confirm this is an issue on Android. I have logged a big report for this.

I have not been able to replicate this on my ios device. I will continue to try on other devices.
What platform are you seeing this issue in? iOS? Android? 
Try something like this to get your head moving:


<wire>
<main>

<pager name="pager" width="100%" height="100%" orientation="vertical" paginate="no">

<text name="Test-1" width="100%" height="100" color="#ffffff" font="Arial" size="48" align="center" alignment="center" text="getDate is [eval: new Date().getDate(); ] "></text>

<text name="Test-2" width="100%" height="100" color="#ffffff" font="Arial" size="48" align="center" alignment="center" text="getMonth +1 is [eval: 1+ new Date().getMonth(); ] "></text>

<text name="Test-3" width="100%" height="100" color="#ffffff" font="Arial" size="48" align="center" alignment="center" text="getDay is [eval: new Date().getDay(); ] "></text>

<text name="Test-4" width="100%" height="100" color="#ffffff" font="Arial" size="48" align="center" alignment="center" text="HEY is[eval: new Date().getMonth();]-[eval: new Date().getDate();]-[eval: new Date().getFullYear();] "></text>

<text name="Test-5" width="100%" height="100" color="#ffffff" font="Arial" size="48" align="center" alignment="center" text="HEY is [eval: [eval: new Date().getDate();] - 4]"></text>

</pager>
</main>

<action name="on" oninit="yes">

<assign property="var:today" value="[eval: new Date().getMonth();]-[eval: new Date().getDate();]-[eval: new Date().getFullYear();]" />

<assign property="var:difference" value="[eval: [eval: new Date().getDate();] - 4]" />

<assign property="var:new" value="[eval: new Date().getMonth();]-[var:difference]-[eval: new Date().getFullYear();]" />

<alert message="[var:new]"/>
</action>
</wire>
This will do the trick, must have had a typo.


<wire>
<main>
<panel name="main" alias="MAIN" width="100%" height="100%">
<textfield name="hi" alias="HI" width="100%" height="10%" font="helvetica" size="25" color="ffffff" fieldcolor="ff0000" alignment="center" border="line" placeholder="Hi"></textfield>
<panel name="button" width="180" height="100" background="ffffff" bottomof="hi" align="center" onclickup="Go">
<text name="remove" width="100%" height="100%" color="#ff0000" font="Helvetica" size="25" alignment="center" text="Remove"></text>
</panel>
</panel>
</main>
<actions>
<action name="Go">
<assign property="object:HI.text" value="" />
</action>
</actions>
</wire>
Doing something along the lines of this should work:


<assign property="object:PASSWORD.text" value="" />


Can you post your action so I can trouble shoot it?