Skip to Content
avatar image
Former Member

how to hide page if data is not available

Hi ,

I have one requirement in which I need to hide a page if data is not available.

I will run standard report F.27, with 3 company code and details will be displayed via custom form in 3 pages , pag1 page 2 and page3.

If some information not available for 1st company code then I need to display only page2 and page3 with page no 1 & 2

How to achieve this ?

Regards

Sandeep

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 12, 2014 at 08:00 AM

    You can achieve your requirement by writing FormCalc on page1.

    select page1 and write the below code in script edotor:

    if($.company code1 == null) then

    $.page1.presence = "hidden"

    else

    $.page1.presence = "visible"

    endif

    ---

    Naveen

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 12, 2014 at 08:05 AM


    hi Sandeep singh  


    first you read your context data  and based on value of context data set visibility

    ex .write this  javascript code initialized event of page


    if(xfa.resolveNode("xfa.reocord.VAR[0]").item(0).value==null)

    {

         page1.presence = "hidden";

    }


    her VAR is your Context Data


    hope it will work.

    Regards Jitendra

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 13, 2014 at 07:25 PM

    Hi Sandeep,

    I think the two option above will work at all, but I don't think your inital value will be null. Check what the initial value is in your interface and deactivate the value with the Conditiontab. Then you will be able, to copy the statement from one of these suggestions.

    Regards

    Florian

    Add comment
    10|10000 characters needed characters exceeded