I thought the same, it is not hard to handle but it becomes confusing sometimes in function arguments and I think for setoption and getoption, Anyhow I think it took my attention when I noticed using [] for variables is not mandatory but more like a courtesy. I am more a PHP/SQL programmer and so I would prefer the mandatory [] for variables but JS guys may think otherwise. Any how, It has your attention now ;-). Thanks a mill
Wow, fixed it all, now ObjectGetProp and ObjectSetProp work great in the functions, thanks a lot.
There is absolutely no reason for apology, every applications have bugs, specially the ones that are as sophisticated as AB. The best thing about AB is its support! Imagine a bug was discovered in a Microsoft app, it would take ages to have it fixed and by then you had found a work around any ways!
Keep up the very good work my friend and THANKS A LOT for the quick fix
There is I think a problem with variables in AB that I have meant to ask for long time, but it just slips my mind. Lets look at the below example:
It is expected that "test" to be treated as a text the first time and a variable the second time but, both time it is treated as a variable, that some times complicates stuff. Is it supposed to work like this or it is a bug?
Thanks.
In an AB function I am reading an object to do some processing. To be able to reuse the function however, I will need to be able to pass the property name to ObjectGetProp and ObjectSetProp but then an issue appears and they are not able to determine the field I am looking for. I need to run the below and read the Yfield from function argument:
[argument] = Yfield
If like below I put the data directly into it, it works though:
What do you think I should do?
Thanks for your help in advance
Hi David,
That would be great, So lets expand on the above example. We have two report controls (rep1, rep2) consequently in view1 and view2. In the view2 Show event, I want to call HttpClient1 and refresh the rep2 each time this view is opened. I can either get to view2 from view1 or from view3.
So far if I was running "HttpExecute "HttpClient1"" in the show event of View2 I think I was getting an error indicating the control I am calling is not available I believe, does it have anything to do with how I used ShowView and ReplaceView?
Hi There, Have an idea here, so If I get the query correctly, lets say you have view1 which includes HTTPCLIENT1, right now you open a dialog that requires HTTPCLIENT1 but if you open a new view you will not have that access, am I correct? If so, I recommend to move the HTTPCLIENT1 to the master view, then instead of dialog open View2 and set DrawMaster in visul properties of both views to True, you will have it sorted like that as the same client is available to both views.
Hi David,
I am not sure either if there is another direct way, now my cordova has no errors and still I only get the VS project after build. I suppose based on Cordova website that is the way. Apart from libraries you mentioned and available in the link, I think for Appbuilder projects we need to add Node.js also to Visual Studio. It was frustrating but hope at least these posts help some one else later. Thanks alot for your help as always.
Hi David,
I finally made it! reinstalled visual studio and added any library I thought are remotely relevant (in addition to the ones I had to) and it started to work.
I suspect it was a missing library! or bad install of one!
Thanks a lot for your help! saved the day!
Hi David,
Still have no luck, VS throw an error, saying "unable to start debugging". Comparing the build process of yours and mine shows that you do not get
No valid MSBuild was detected for the selected target: AppPackages folder doesn't exist
I suppose it is a major error and things just won't work before it is fixed. I will try reinstalling everything to see what happens, Thanks a million for your help David
Wow, the video came unexpected!!! I watched it on my phone last night but did not get a chance to try it out. Just the tip you gave on not to mind the errors was a greaaat help. I am trying it out now, will leave it here how I proceed, You are a STAR David!
Thanks for the response David, I know it is more a cordova relevant issue, but since after a full day of search I could not find any post what so ever with my issue while having all the requirement checked, I thought it might have something to do with AB. Any how, I have read the link you sent and checked all the requirements in the link you have sent already. If you see in the question after running Cordova requirements command, all of them are checked.
Thanks for the tip however, I did not try to debug or do anything further in VS before I have all Cordova errors taking care of, because I though it is pointless!
Hi David,
It is now two days that I am trying to get a windows x64 build out of cordova but still no success. I have fixed a couple of issues so far that I leave here in case it helps some one later:
Error: MSBuild v4.0 is not supported, aborting.
Fix: by setting environment variable VSINSTALLDIR = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\
Even though Visual Studio 2017 was installed with Cordova libraries, still got bellow error:
Error: Windows SDK not found.
Fix: by installing the SDK separately (https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk)
Error: I got some errors pointing to Node.js
Fix: Installed all Node.JS libraries in VS and also updated Cordova to the last version, one of those should have fixed it since it was gone after I did those
NOW, I get this error and I could not find anything in the forums that could help me, so I thought you might have an idea
No valid MSBuild was detected for the selected target: AppPackages folder doesn't exist
I have tried different addresses in MSBUILDDIR environment, no success so far. Cordova requirements also passes everything!
cordova requirements
ENV var MSBUILDDIR is set C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64
Requirements check results for windows:
Windows OS: installed Windows 10
MSBuild Tools: installed 15.9
Visual Studio: installed (user-specified via VSINSTALLDIR)
Windows SDK: installed 10.0
Windows Phone SDK: installed 10.0
My computer is a x64 machine on a 64 bit windows 10 with an AMD Ryzen 5 2400G APU
Any idea is very much appreciated
Hi David,
Thanks for the response. Okay then browser app is out of the equation! I thought of a webapp/api already, it is much easier to develop for sure, but since the task is decryption of data I was trying to minimise the parties involved.
Will find a way, thanks a mill :-)
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.