bootstrap button with $var instead of text

Hi There,

I have a report with buttons that i create with bootstrap.

Everything works fine when i use text but when i use the same thing with a string it does not show it;s value instead it shows the string itself.

OnRecord

//** aantal is afgerond
$sql_command = “SELECT
count(*) AS COUNT_0 FROM bpv_pok_opgeleverd WHERE loc_id =”.$param." AND bpv_afgerond = 5";
sc_lookup(ds,$sql_command);

$afgerond = {ds[0][0]};

bootstrap();

{AFGEROND}=’<button type=“button” class="btn btn-outline-success “>echo “$afgerond”)”</button>’;

without bootstrap the value is shown

Any suggestions.

If you count your quotation marks you see there is one too much. I don’t know why you put $afgerond between “” using echo with variable?

when i use this code

bootstrap();

{AFGEROND}=’<button type=“button” class="btn btn-outline-success ">echo $test</button>’;

the result is in the picture. i cant;t get vars in a button in scriptcase

Schermafbeelding 2019-11-23 om 08.45.02.png

Change the syntax like this:

$test = 28;

{demo_field} = ‘<a class=“scButton_twitter” href= ‘.$l_link1.’ role=“button” target="_blank">My number = ‘.$test.’ <i class=“fas fa-file-pdf”></i></a>’;

[ATTACH=JSON]{“data-align”:“none”,“data-size”:“large”,“data-attachmentid”:89701}[/ATTACH]

demo_field.png

thats’s great and it works! thx. i see a new class that is not bootstrap but sc. is there any documentation for these buttons, can’t find it anywhere.

Check it out here - news

I don’t think there are any documentation

https://www.scriptcase.net/lp/scriptcase-94/

https://www.scriptcase.net/sistemas/v9/exemplos/menu_94/?nmgp_opcao=force_lang&nmgp_idioma=en_us