appcelerator-alloy

Select dynamically generated element by id in Titanium Appcelerator

六月ゝ 毕业季﹏ 提交于 2020-01-06 20:02:08
问题 I am working with the latest Tianium Appcelerator and my project is using Alloy. I have a TableView with the id: tblResults In my controller, I populate this table view with rows like this: // Dummy data var results = []; results.push({ title: 'Hello World', value: '123456' }); results.push({ title: 'Bye World', value: '654321' }); // Build result data var resultData = []; for (var i = 0; i < results.length; i++) { resultData.push(createResultRow( results[i].title, results[i].value )); } //

Appcelerator sidemenu redirect to another screen creating multiple screen

混江龙づ霸主 提交于 2019-12-24 13:38:21
问题 I am using this sidemenu module in my app. In sidemenu i have option like home, setting etc. When i click on setting, it redirect to setting page. Now problem is when setting page is opened and i open side menu using swipe and again click on setting then it will again open setting screen on previous one. Means it creating 2 setting screen. If i repeat it again then it will creating again setting scree. How do i prevent this? My code for screen redirection is here var win = Alloy

Appcelerator: [ERROR] Application Installer abnormal process termination. Process exit value was 1

情到浓时终转凉″ 提交于 2019-12-24 05:54:36
问题 I know this question has been asked lots of times, but answers given did not solve my problem so far. When trying to build an app to either a Android-device/-simulator/-package, Appcelerator comes with this error: [ERROR] Application Installer abnormal process termination. Process exit value was 1 I checked weither all Android-sdk's where installed correctly. In the terminal I did: appc logout -D / appc login I cleaned the project, including deleting Build- and Resources-folder by hand Ran:

How to delete nodes from xml file?

岁酱吖の 提交于 2019-12-12 03:06:32
问题 I want to manipulate a data from an XML file with Appcelerator's app. So I'm able to read the information from this xml file with this code: var file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory,'/XML/file.xml'); var xmltext = file.read().text; var doc = Ti.XML.parseString(xmltext); var nodes = doc.documentElement.getElementsByTagName("code"); for (var i=0;i<nodes.length;i++) { var element = nodes.item(i); //LA SECTION CODE DEL SOCIAL HISTORY, DEVE ESSERE //29762-2 if(element