Hi David,
Used "ApplyModel" but it does not make any difference. To describe the scenario in more details, here is the code I have in a function:
>
SetStyle "Button7" "color" ""
SetStyle "Button8" "color" "#ffffff"
SetStyle "Button9" "color" ""
Show "Button26"
Hide "Button20"
Hide "DropDown1"
ApplyModel
>
The setstyle and show part works fine and quick but hide part lags behind. As you can see I used Applymodel at the end of the code but made no difference.
Thanks
Hi David,
In a few places in my app I need to show and hide some elements depending on the tabs that users clicks on. The problem I have is long delay after user clicks on the tab and before the element is hidden. In short user needs to wait a second till he/she sees the changes!
By reading through the forum I have got the idea that I might be able to use SetStyle or AddClass and use CSS to hide and how my stuff quicker but I thought I better double check that with you in case I have done something wrong or there is a trick I am not aware of.
Thanks,
Hi David,
I agree that there is no point for "InputsScrolls" since the view itself acts like a container and adding a container within the other would not help much here (I have actually used two containers within each other at webdesign for scrolling, so could be useful for some cases). "InputsScrolls2" on the other hand was behaving funny for me, it was leaving long blank margins at the top and below sometimes and some of the text was remaining under the keyboard, I did not mess around it for long though!
The css I shared is technically what you have in the two examples combined in a slightly different approach, instead of reading the size of view like in "InputsScrolls2", I just gave it a minimum height size and like "InputsScrolls" sat the overflow-y to auto, so any time height goes under the given pixel scroll appears and for above that it acts normal.
Hey guys, struggled a bit with the soft keyboard, squeezing the app together, after looking at the examples David left and the other suggestions I ended up with the below that fixed my problems. Created that class at in-line css and added to all my Views, in my case as long as the auto scale is on and this class is loaded every thing is displayed as expected at chrome emulators with and without keyboard open.
Hi David,
Thanks for the quick fix, I updated AB and tested the issues mentioned, the first problem is fixed but problem with the close button of the alertbox in certain conditions still stands!
Hi David, I noticed that if I open a View using "ShowDialog", if the opened dialog fires an AlertBox then the "CloseDialog" action does not function and app can not leave the opened dialog. I have solved that by displaying the alerts in a label but wonder if it is a bug?
The other problem is that the close button of alertbox some times does not work. For instance, I have a profile page, for update it calls another view by show dialog when job is done, HTTPCLIENT closes the dialog and fires the alertbox but then the close button of the alertbox does not close it. You can click elsewhere at it fixes the issue but having a close button there that is not functional is annoying, appreciate your advise on that.Thanks
Hi again David,
I actually managed to solve the problem. In Html part of the report control, at the same <td> I made two <div>s and put the fields I liked there, from the inline css then I can do any thing to the divs.
Thanks a mill :)
Hi David,I am trying to split a row of data into two when displaying it by a report control. I can do that in the API but it will put a heavy process load onto server which I am trying to avoid and push as much as possible to the client side.Please see the queries below on what I am trying to achieve:I am trying to display this
"SELECT A, B FROM TABLE UNION ALL SELECT A, C FROM TABLE ORDER BY A"
From
"SELECT A, B, C FROM TABLE"
This way I will have B and C in two rows which allows me to display them a nicer a more readable manner in the report control.
So I am trying to display below in the report control:
| A | B |
| A | C |
| A | B |
| A | C |
From a HTTPCLIENT response that is returning:
| A | B | C |
| A | B | C |
Thanks for your help.
Hi David,
Thanks a lot for your help and support. I used "App.test" in the index.htm of the app builder piece to refer to variable test and I think it did work. "localStorage.test" worked too and since we could control the local storage better, we decided to go with that.
Hi again David,
Thanks David for your help with iFrame and linking ab to traditional phonegap scripts.
To call an API in the AB piece of the app we will need to pass a number of variables from our old app to app builder. Now I have the problem of setting variables in the ab that appears as iframe in my html. I pass the variables to ab index.html through URL, however I can't set any of the variables from ab to keep these parameters nor can I set any of the elements (e.g. a label) to display the passed variables. When I alert them, they are there, so the parameters from phonegap do pass on to the ab generated index.html, however, I don't know how to use them within this index.html. As an example I defined a variable in the AB like then tried to store the passed variable into but no luck so far. I also tried using "document.getelementbyid" which also failed, I think because the element wasn't generated when I called it in AB generated index.html.
I appreciate any advice or tip on this. Thank you
You are incredible David!
It works as you instructed, and so far it is all good. The AB part is supposed to call an API and displays the results in a table, that it does perfectly and all appears in the iframe we defined in our old app. I will post it here if along the way we come across an issue and solved it in a way.
You saved us a huge amount of time and effort. THANK YOU
Thanks for response David.
I'm actually doing that. Basically copying the directories and folders from AB build (that is tested and fully functional) into a new directory in my Cordova app directory. However, I keep getting errors that I suspect are related to either the App object or the $rootScope. I get an error for line 340 ( $rs.App.LastError = exception.message; ) of app.js that says Uncaught TypeError: Cannot set property 'LastError' of undefined. I commented this line just to see what happens next. and still i got error "Uncaught Error: [$rootScope:infdig] http://errors.angularjs.org/1.6.9/$rootScope/infdig?p0=10&p1=[]" related to builder.js around d("infdig",b,A);
Note: there's i think something do to with the way the App obj is created as the app name appears like this also: {{App.Name}}
I'm wondering if you are aware of any solutions to fix this.
Thanks a million for your outstanding support.
Hi all,Apologies for a vague question, I posted it since I thought some one might have done it before.We have a project developed by HTML, CSS and Jquery that compiles by Apache Cordova. We are planning the expand the project and I was wondering is there a way that we can build, lets say a two page application with AB and merge it with the app we have. Or else, is it possible to import our app (it is quiet large) into AB some how. My colleague has already tried to merge a sample AB app with the other but no success yet and it throws a lot of errors! any piece of advice? App builder is so fantastic that when start using it you don't want to get back to what you used to do by any means possible :)Kind regards,
Hi David,
Links and internet connection are fine, have checked them already. Tried Apache Cordova and still the same issue. Apparently Android blocks calling the outside links and so the 404 error occurs. Installed a "white list" Cordova plugin and it sorted out the issue and now my phone also can reach the server.
Thanks,
Amin
Hi All,In the app I am building I am using HTTP client in several places and they all are working smoothly in AppBuilder's debugger. But now that I have built the app to an apk file, android constantly throws 404 error when attempting to connect to server. APIs are working fine as at the same time they respond to debugger. What ever it is, has happened during the build and there is something there preventing app's outside connection. Any idea how it can be fixed?Thanks a mill,Amin
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.