Posts by Amin Mousavi

Show threads by Amin Mousavi
142 posts found, page 10 of 10

Amin Mousavi (In thread: ReloadView and Master view)

Hi David,

Thanks for your assistance, could sort that out with [App.CurrentView], kept the dropdown in the MasterView and refreshed proper HttpClients based on the activeview response any time the master button is hit. 

Thanks a mill,


Amin Mousavi (In thread: ReloadView and Master view)

Sure David, I understand that and I know I can call the HttpClients by other events and not just the show. The point is that I have near 20 Https clients, in 8 views. Refreshing the view, or triggering view's show event, by dropdown itemclick event, could simply fix the problem. Now I need to go page by page and call each HttpClient at its own view. Tried to bypass it but seems like there is no escape from reproducing it all.

Out of curiosity now, is it possible to read what view is active? So lets say if I keep the button in the MasterView is there a way that I know from what view it has been clicked? so in the ItemClick event of the dropdown, I will know in what view click has taken place and so what HttpClient should be recalled? 

Thanks a mill for taking the time to look at it.

Regards,

Amin


Amin Mousavi (In thread: ReloadView and Master view)

Hi David,

Thanks for the speedy reply as always.

First off, re. the reload view: okay I understand the problem now! all the queries are password protected and if it reloads the whole app then the tokens are lost, the variables including them are blank and nothing will work! About what I want to do, in the 'database example', user can keep, read and modify his/her notes. What if there are more than one subject for the notes. There is a dropdown that user can select the subject of the note and reads, modifies all the notes relevant to the selected subject. In such a design we would need to reload the reports/tables each time the subject changes, otherwise even though the subject has been changes reports will continue displaying the previous notes. We can manually reload by click back and come back to the page but it is indeed not the way to go :). There are proper "HttpSetData" lines at the root of each view to call the right notes for the selected subject and load it to the reports but the key question is that how can I refresh only the view in which the subject has been changed? Ideally if I could read the name of the active view and "ReplaceView" would work to call the same view, it would refresh the page and problem was solved. Any idea how I can achieve that?

Re. more than one MasterView. The point is that, there are several items that we repeat some of them in some of pages and some other in some other pages. So if we put all in master view, there is no way to say show which element at which view and not at the others. I work with a professional graphic designer on this project, and when he saw that he said that Adobe Indesign (If I am correct) can define several 'masters' and you can choose which master to be called at which pages. In fact it allows you to say which items appear to the front and which ones to the back as well, so for instance if you have a background for all pages that should stay to the back and a button which should come to the front, it is still achievable like this. But any how it was just a thought, if we have it, it is fantastic but it is nice that we have Master view in general.

Talking about improvements, Appbuilder is a great app and has improved our development speed considerably yet there are some bugs that if fixed will help a lot. "undo" in app builder acts very strangely, if you accidentally move an element and then undo, it will not return the object to where it was and instead will undo something else, same applied to cut. So we totally avoid ctrl+z because it will not undo the last action and we can not predict what will happen if we use it. Also it lacks grouping objects, so for instance if we could group a number of buttons, each time we accidentally move one we would not need to align them all once again and in the long run it would save a lot of time.

Thanks for the great app and fantastic support David!

Amin


Amin Mousavi (In thread: ReloadView and Master view)

Hi All, In the app I am developing, I have a profile button that I have included in the Master view and so all other views can see it. However, when profile changes, the active view should be refreshed to run HTTPClients and read the relevant data for the new profile selected. So the problem is that ReloadView does not perform as I expected and throw errors. I don't think it has any thing to do with the usage of Master view as even when I put the drop down directly to the page still this do not perform properly and  errors like this appear in all pages.

Without the reload view things are all good!On the side note, is there any way to define more than one master view? at help it refers to them as Masterviews but I could not find how to define more than one of them.Thanks in advance for your help.Regards,Amin


Amin Mousavi (In thread: How to use custom CSS in our apps)

Hi all,

I am working on a Dynamic form using the 'Dynamic Control' sample. It is all successful and I managed to define a class in JS and control the style of my table class by including a css in file manger with ease. However I wonder, how can I modify other controls in the css. So there are two files in the compiled folder named fixed.css and scaled.css, I can find and modify controls there so for instance I can change color of the Button1 in the css to white but when I run the appbuilder it returns to what it was, I already know I am looking at the wrong place and these files are generated by appbuilder but I wonder where is the right place to modify css in a file.

In the css I have added also I can not work on Button1 for instance as the same name already exists in other css files. So how can I control the style of controls from css? I appreciate your assistance on this.

Regards,

Amin


Amin Mousavi (In thread: Dynamically creating user objects on the screen)

Hi David,

Thanks for your reply, managed to solve the issue, even though the example works very well and I could not see any library included, in my app for some reason after I included the jquery library in the script path in the file manager, it solved the issue.

"InputsScroll2" sample would not fit my case very well. There are number of questionnaires that I need the load in the app, with variable number of questions, if I do not generate them dynamically then I need to build one view per questionnaire while now if I get it done the way I have in mind, it will just work for every scenarios.

Thanks a mill for the offer of looking at my code, I will bother you the next time, managed to fix it this time.

Regards,

Amin 


Amin Mousavi (In thread: Dynamically creating user objects on the screen)

Hi Guys,

I am trying to use "Dynamic Controls" sample to create a Dynamic form in AB. I am alright with the PHP API to read the questions from the server and able to handle the HttpClient output but I have troubles getting "Dynamic Controls" element that I copied to my app to work. At the debugger when I hit "Add a new edit" button in the copied elements, it says "'$' is undefined". The rest of the code is working fine, I just cant get to find what is wrong here! Sorry for the silly question, still a newbie in JS and AB. I sense I had to include a JS library or something here but I can not figure how.

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.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.