cancel
Showing results for 
Search instead for 
Did you mean: 

2D barcodes visible in ADOBE FORMS layout even though no data is present

Former Member
0 Kudos

Hi GURUS,

I am trying to use 2D barcodes PDF147 or QR code in one of my Adobe form for production order.

For one of the fields the data may or may not be present every time.

Even though it does not have data the barcode is visible in the layout preview and on printed paper?

Can anyone suggest me how to protect this in order not to display the Barcode when no data?

Thanks

Aparna

View Entire Topic
Former Member

Hello Aparna,

Simply hide that element when there is no value assigned to it.

Example :

if( hasValue($) ) then

StaticText1.presence eq ‘visible’

Else

StaticText1.presence eq ‘hidden’

Endif.

Thanks

~Raj

Former Member
0 Kudos

Hi,

I tried the above logic then issue not resolved. Even i tried with javascript with the below code.but its in vain.

if (($record.GD_ASSMBL_INFO.rawValue == " ") or ($record.GD_ASSMBL_INFO.rawValue == "NULL"))

{

  GD_ASSMBL_INFO.presence = "hidden";

}

else

{

  GD_ASSMBL_INFO.presence = "visible";

}

Former Member
0 Kudos

Hi Aparna,

Let's go step by step ,

Can you try to create a text field and map the value of the interface attribute which you were mapping with the barcode ( just to see what is the rawvalue )

In your case i meant " $record.GD_ASSMBL_INFO.rawValue "

I want you to check by replacing the same in the if condition.

Let's say you got the value as "0.00"

if (($record.GD_ASSMBL_INFO.rawValue == "0.00") or ($record.GD_ASSMBL_INFO.rawValue == "NULL"))

{

  GD_ASSMBL_INFO.presence = "hidden";

}

else

{

  GD_ASSMBL_INFO.presence = "visible";

}

**It sound little strange but i have passed through the same issues in past.

Hope it works.

thanks

~Raj

Former Member
0 Kudos

Hi Raju,

For the first time I got a requirement for a 2D barcode. I need to display a 2D barcode for a Production order data. It has got around 15 fields.

I am not sure how to do it. If you have a sample program / tutorial on how to extract data and use 2D barcode will be useful.

Kindly help.

Regards

Anand