Hi Strato,
Yes you can.
In installation_drive:\lianja\debug.
Regards,
Yvonne
Hi Strato,
Yes you can.
In installation_drive:\lianja\debug.
Regards,
Yvonne
and you can also specify the path and filename with the switch:Code:--debugfile target_file
thank You Yvonne!
how will procedures in lib_*.prg files in an App directory (eg /linaja/apps/myApp) be accessed?
or otherwise: what could be the cause of an error message that is missing such a procedure? (The missing procedure is in the .prg file in the app directory)
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
path looks OK:
the problem is already occurring in AppBuilder:Code:?set("path") C:\Lianja\library\thirdpartylibs\,C:\LIANJA\APPS\FELADAS\
I have a lib_feladas.prg in C:\lianja\apps\feladas\, contains:Code:Cs nov. 12 17:02:31 2020 **** Lianja error **** do FELADAS_FUVARLEVELEK_PARENTDATACHANGED ^ Cannot open 'feladas_fuvarlevelek_parentdatachanged.prg' - errno 2 - No such file or directory
both section Custom library prop filled: lib_feladas.prgCode://////////////////////////////////////////////////////////////// // Event delegate for 'parentdatachanged' event proc feladas_fuvarlevelek_parentdatachanged() parameters cKey // insert your code here private cFeladas, ca cFeladas = iif(pcount()<1,feladas.feladas,cKey) ca = cursoradapter("fuvar") if type("m.ca") = "O" ca.requery("feladas like '"+m.cFeladas+"'") endif endproc //////////////////////////////////////////////////////////////// // Event delegate for 'datachanged' event proc feladas_azonositok_field1_datachanged() // insert your code here feladas_fuvarlevelek_parentdatachanged(this.value) endproc
Hi Strato,
After the error occurs in the App Builder, can you check the lianja\error folder for an error.mem file? If you want to submit a ticket and attach the error.mem file, I will have a look.
Regards,
Yvonne
Hi strato,
Where in the app/page/section settings is lib_feldas.prg referenced as the Custom library? That reference is what causes it to be searched.
When you click on the datachanged event of the control it needs to be bring you to this file and this procedure. Does it do that?
Hank
Hi Hank,
Yes, both App, Page and Section - Delegates - Custom Library are filled out (lib_feladas.prg)
Yes, when I click an a delagate event name source opens in script editor in Apps workspace (pointed on approprieted line)
In troubleshooter performance metrics tab I found like this:
both procedures should call the feladas_fuvarlevelek_parentdatachanged proc ...Code:[ 0ms] Clicked actionbar button 'Next Record' [ 27ms] performAction Next Record for page feladas dirty=0 [ 16ms] id=feladas.azonositok event=datachanged(before) delegate=feladas_azonositok_datachanged() [ 31ms] id=feladas.azonositok event=datachanged(after) delegate=feladas_azonositok_datachanged() [ 17ms] refresh form section feladas.azonositok begin [ 209ms] cursoradaptor::fetchRows(ISOKOD) started [ 33ms] cursoradaptor::fetchRows(ISOKOD) completed rows=11 rowsfetched=11 reccount=11 [ 51ms] cursoradaptor::fetchRows() started [ 23ms] cursoradaptor::fetchRows() completed rows=1 rowsfetched=1 reccount=1 [ 55ms] id=feladas.azonositok.field1 event=datachanged delegate=feladas_azonositok_field1_datachanged() [ 32ms] refresh form section feladas.azonositok end
placing a breakpoint in these procedures troubleshooter doesn't activate ...
if I put the procedures in separate files with the appropriate name, they runs ... (so the path works well)
hi Yvonne!
thanks for the tip, I think I found the bug!!
there was a procedure in the library file that ended like this:
The compiler has worked only to this pointCode:.... return endproc
the subsequent procedures were not included in the library procedures and functions list (as I saw in error.mem file)
do I send a ticket about this?
Bookmarks