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

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (1)

Answers (1)

rakesh_m2
Contributor
0 Kudos

Hello Aparna,

Check what data is being printed, when no data is present.  Is it the data, which is present in the default value .

Thanks,

Rakesh.

Former Member
0 Kudos

Hi Rakesh,

Even there is no default value assigned to this? As we do not have scanners from our end it is not possible to check what is exactly being captured in the barcode..

Former Member
0 Kudos

Hi,

Just write a simple Form Calc Script to Hide and Visible the Bar code based on the Binded variable.

if the binded variable has value

visible the barcode UI element

else.

Hide the Bar code UI Element.

endif.

rakesh_m2
Contributor
0 Kudos

Aparna,

Bind the same variable which you bind to the barcode to a text field and check what value is being printed over there...  so that based on the value being captured, during null value, you could write the hidden logic code

Thanks,

Rakesh.