I cannot able to sort it out I am passing id that but id is not having degree certificate document but still the document download link is showing for all other documents

Certified Senior Developer

I cannot able to sort it out  I am passing id that id is not having degree certificate document but still the document download link is showing

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Your query is not clear . what i understand is , are you trying to show and hide document link on the basis of a column id. could you please also put your code here. to identify the issue 

  • 0
    Certified Senior Developer
    in reply to balajib2642

    Are you saying the id what you are holding is not the correct document Id . the document id is not available or not holding the degree document in it .

  • 0
    Certified Senior Developer
    in reply to Komal Jain

    is the document name upload a common name or it can be any random name

  • 0
    Certified Senior Developer
    in reply to Komal Jain

    a!localVariables(

    /*local!data:rule!GHR_GetPersonalDetails(resourceId:ri!rid ),*/
    local!document:{
    aadhaarPic:46
    },
    /*local!education:rule!GHR_GET_EDUCATION_DETAILS_QE(resourceId: ri!rid),*/
    /*local!account:rule!GHR_GET_ACCOUNT_DETAILS_QE(rid: ri!rid),*/
    /* The selected navigation section */
    local!activeLightweightNavSection: 1,
    /* The navigation sections */
    local!lightweightNavSections: {
    "Address",
    "Qualification",
    "Previous Employment",
    "Accounts & Statutory",
    "Photo",
    "Resume",
    "Bank Statements",
    "LOA",
    "Education"
    },
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {

    a!richTextDisplayField(
    value: {

    a!richTextItem(
    text: "Present Address",

    link: a!documentDownloadLink(
    document:index(local!document,"aadhaarPic",null)

    )

    ),
    a!richTextItem(
    text: " "
    ),
    a!richTextIcon(
    icon:"download",
    showWhen: if(a!isNotNullOrEmpty(index(local!document,"aadhaarPic",{})),true(),"Not uploaded")
    )
    },

    showWhen: and(
    if(
    a!isNotNullOrEmpty(index(local!document, "aadhaarPic", {})),
    true(),
    false()
    ),
    if(
    document(todocument(index(local!document, "aadhaarPic", {})),"name")<>"Adhar card",
    false(),
    true()
    ),
    if(
    a!isNotNullOrEmpty(local!document),
    true(),
    false()
    )
    )
    ),

    a!richTextDisplayField(
    value: {
    a!richTextItem(
    text: "Permanent Address",
    link: a!documentDownloadLink(
    document:index(local!document,"panPic",null)


    ),
    showWhen: if(a!isNotNullOrEmpty(index(local!document,"panPic",{})),true(),false())
    ),
    a!richTextItem(
    text: " "
    ),
    a!richTextIcon(
    icon:"download",
    showWhen: if(a!isNotNullOrEmpty(index(local!document,"panPic",{})),true(),false())
    )

    }

    )

    }
    /*showWhen: if(a!isNullOrEmpty(local!document),true(),"Not uploaded")*/
    ),
    a!columnLayout(
    contents: {}
    )
    }
    ))

  • 0
    Certified Senior Developer
    in reply to Komal Jain

    actuualy for the particular id there is no document in database it is showing null,... but the document download link is showing ,

    I also kept showwhen conditions 

  • 0
    Certified Senior Developer
    in reply to balajib2642

    could you please provide the data you have for the display purpose . I would like to see the data structure for more clarification . Please print the data in the UI using a textfield() and see what actually you are receiving and also share so that i can try with same data in your UI code

Reply Children
No Data