How to call an app's function from a Report's record's HTML


Yang Ghua

I have a link in a report's footer,and I want user to click this link(or otherthing) to do like :
change this link into another link for downloading a file,
or to access AB other variables

I try to test by set the footer

the test1 function

but seems not work....,please give some clues


DecSoft

Hello Joshua,

Please, take a look at the "Report8" sample, which include some "buttons" ni the report's records HTML and shown us how we can react when such buttons are clicked by the user. In this case we use the "RowClick" event and look for an "ID" attribute of the clicked button.

Additionally, yes, we can call an application function from a Report, just take a look at the below code, which is a modification of the Report's HTML code of the "Report8" sample:

As you can see we call to a "MyAppFunction" app's function passing the record's title as an argument.



DecSoft

Hello Joshua,

The next App Builder release includes a new "Report17" sample, which shown us how we can call to app's functions from Report's records' HTML code. I attach here this new "Report17" sample for your convenience:

Report17.zip



Yang Ghua

OK,I will study this

and by the way,will Report control get a 'page' Function!?

I am not sure this function is necessary,So far the report control is good enough for me,but maybe a 'page' option will give the user more ways to show the data.


DecSoft

Hello Joshua,

OK,I will study this

and by the way,will Report control get a 'page' Function!?

I am not sure this function is necessary,So far the report control is good enough for me,but maybe a 'page' option will give the user more ways to show the data.

What is a "page function"?



Yang Ghua

split the data by page....


DecSoft

Hello Joshua,

Are you try with the "Report9" sample? We can always split the Report's data and then paginate the Report's contents.



Yang Ghua

Oh,sorry,there are so many samples:) ,not enough time to study it through
See,you already get it ready!


DecSoft

Hello Joshua,

No problem! Please let me if that sample can be useful for you or what. ;)



Yang Ghua

Is this html code only work in ??
will it work in , that is a text link!


DecSoft

Hello Joshua,

Yes; we can use also a link:



Yang Ghua

test and work :)

Todo el mundo puede leer el foro de soporte de DecSoft para aprender del mismo, sin embargo, sólo los clientes de DecSoft pueden abrir nuevos hilos. Compre una o más licencias de productos de DecSoft y obtendrá este y otros beneficios.

Este sitio utiliza "cookies" útiles para almacenar sus preferencias.

Bien. Ocultar esta nota. Obtener más información.