Need to display pdf file coming from a S3 bucket. i am using local database to display the value but some issues with the if statement.Could anyone help
You need to use data conversions or you need to change the data type of the variable you are comparing with.
Example, if they are all integers, you could pass the data type to long integer. And then you can use a data conversion, like this:
If (TestCurrentClaimRecord.TestClaimId =LongIntegerToIdentifier(TestClaimtext),TestPdf, If(TestCurrentClaimRecord.TestClaimId=LongIntegerToIdentifier(TestClaimText_2),TestPdf_2,TestPdf_3))
Or you can still use text and do this
If (TestCurrentClaimRecord.TestClaimId =LongIntegerToIdentifier( TextToLongInteger(TestClaimtext)),TestPdf, If(TestCurrentClaimRecord.TestClaimId=LongIntegerToIdentifier( TextToLongInteger(TestClaimText_2)),TestPdf_2,TestPdf_3))
HI saif ,
Check the files are available or not I can see the pdf files please see below link
https://dbaghel.outsystemscloud.com/TestModuleV2_/TestReviewScreen?id=3
IF not available then change the below property and publish
Also In the below IF statement the TestClaimText is never assigned
If (TestCurrentClaimRecord.TestClaimId =TestClaimtext,TestPdf, If(TestCurrentClaimRecord.TestClaimId=TestClaimText_2,TestPdf_2,TestPdf_3))
Best Regards
Devendra
It's missing, another statement
In a if you should always do this
If(condition==true,"","")
Right now, you have:
If(condition==true,"")
Completed the if condition but receiving a warning for comparing id with a text and 404 error receiving inside iframe
Also attaching .oml file for reference
UI Error-