Four Js Development Tools Forum

Discussions by product => Genero Studio => Topic started by: Fadzil M. on June 21, 2016, 08:55:03 am



Title: Hyperlink Button/label
Post by: Fadzil M. on June 21, 2016, 08:55:03 am
Hi,


How to create hyperlink button/label on new genero version 3.0.

Currently we used this on version 2.30.

Form per.

LABEL f01 = formonly.f01, STYLE = "LabelUrl";

Prog 4gl.
LET lbllink ="<div align='right'><a target=\"_self\" href='http://",ipcode clipped,"/new/printpdf.php?id=",sessid CLIPPED,"@",cnt_a USING "<<" CLIPPED,"'><img src='http://",ipcode clipped,"/new/report/images/printer3.bmp' border='0'></img>[/url]</div>"


DISPLAY lbllink TO f01

but when i try same code to new version genero 3.0, Image for label now appeared as version 2.30.

appear alll url as below:


<div align='right'><a target="_self" href='http://10.2.8.128/new/printpdf.php?id=9E121D613731CDCADE27E06CA7F3A5F8@1'><img src='https://10.2.8.128/new/report/images/printer3.bmp' border='0'></img>[/url]</div>


Please help.


Thank You


Title: Re: Hyperlink Button/label
Post by: Reuben B. on June 21, 2016, 09:49:51 am
Hi,

According to the documentation, the textFormat=html style for LABEL's is supported with GWC-JS so the expectation is that your code should work as before.

A quick test with a simpler HTML string suggests that it does work as before.

My suspicion is that your HTML string is not valid although that could be due to the forum posting software.  In what is posted I don't see an end tag for the
Code
and the "url" is probably an attempt at posting mark-up.

I suggest you review your html and check that it is syntactically correct, and if it is, send a small example that recreates the issue to your local support center.

Reuben



Title: Re: Hyperlink Button/label
Post by: Fadzil M. on June 21, 2016, 09:59:40 am
hi,

LET lbllink ="<div align='right'><a target=\"_self\" href='http://",ipcode clipped,"/new/printpdf.php?id=",sessid CLIPPED,"@",cnt_a USING "<<" CLIPPED,"'><img src='http://",ipcode clipped,"/new/report/images/printer3.bmp' border='0'></img>[/url]</div>"


"HTML string is not valid"-- but it work fine on version 2.30, Problem happen on new version 3.0



Thank You


Title: Re: Hyperlink Button/label
Post by: Reuben B. on June 22, 2016, 01:19:30 am
If the HTML string is invalid and it worked in 2.30 you were lucky.  It is extremely unlikely we will alter 3.0 to cater for bad HTML on your part.  Fix your code to make the HTML string in the variable lbllink syntactically correct.  From the information you have presented the a element is missing an end-tag.

If you think the HTML is valid, send a small self contained example to your local support center.



Title: Re: Hyperlink Button/label
Post by: Fadzil M. on June 23, 2016, 07:26:43 am
Hi,


Here i share my program. Please help to fix this problem.

At version 2.30, i used output display SetAjax but version 3.00 i used output display SetHtml5. Because of this i face this problem? please advice.


Thank you