Hide a page at run time

Hello,
I'm new to LifeCycle Designer. I'm developing a form which is structured as follows-
Body page 1 -> Place: on Master Page 1, After : Continue Filling parent
Body Page 2 -> Place: on Master Page 2, After : Continue Filling parent
For a certain condition I don't want Body Page 1 to be displayed at all. But still the Body Page 2 should be on Master Page 2 (and should be the 1st page to be displayed).
I tried following in the form:ready event of Body page 1 (formcalc @ client) -
if (coverpage_type eq "without_coverpage")
then
$.presence = "hidden"
endif
But it shows up the 1st page as blank page (does not hide it completely).
Can you please suggest what should I do to make this happen? Please send me the script code snippet if possible.
Any help would be appreciated as I've already wasted 2 days trying to find a solution :-(.
Thanks,
Vimukta

An external page break can be triggered by using the Edit button in the Pagination Tab of the Object palette.
        Click on the Edit button, press the PLUS symbol to add the script.
    Below that select the Break radio button either before or after depending on the requirement and then in TO: select the “Top of Next Page”. If you want to display header and footer of the table in the next page s also select the Trailer and Leader sub forms.
<a href="http://img216.imageshack.us/img216/1807/image002lu3.jpg">screen shot</a>
or
To trigger External Page Break:
   Depending on some condition, if you want to trigger a Page break, add the below script to the table subform where the page break has to be trigger. If the hierarchy is as below, then add the below code on the table subform.
           Table
                Table_Header
                 Table_Data
    Var   recnt  =   $.data.all.length
     For  I  =  0  upto  (  recnt   -  1  )   step 1 do
     If   (  Condition )  then
          $.data<i>.break.after  =  “pageArea”
          $.data<i>.break.startNew  =  “1”
     endif
    endfor
    if you are getting an empty page at the end, add the below script to the table subform.
$.data[recnt-1].break.after =  “”
$.data[recnt-1].break.startNew  =  “0”
          This will suppress the blank page, which is generating because of external page break coding.

Similar Messages

  • Create the pages at run time in smartforms

    How to create the pages at run time in smartforms????

    Hi..
    You cannot create pages at run time, however you can decide based upon conditions and using commands in Smartforms, which page needs to be displayed next.
    Those pages should be created beforehand.
    Regards,
    Karthik

  • Hide radio button in run time

    Hi expert,
    kindly help me for hide radio button in run time for web dynpro kindly give me on example .
    thank's and regard's
    Vikash

    hi.
    For Visibility :
    ->  bind its Visible Property to the context of type WDUI_VISIBILITY.
    -> Now make it visible or invisible according to your requirement.
    using Code Wizard ( Control + F7) , Set the particular context.
    For visible Set as 02.
    For invisible Set as 01.
    code for your ref ( Generated using Code Wizard- Set the particular context attribute. )
    In below code : radiobutton is binded with CA_VIS of type WDUI_VISIBILITY
    DATA lo_el_context TYPE REF TO if_wd_context_element.
    DATA ls_context TYPE wd_this->element_context.
    DATA lv_ca_vis TYPE wd_this->element_context-ca_vis.
    get element via lead selection
    lo_el_context = wd_context->get_element( ).
    @TODO handle not set lead selection
    IF lo_el_context IS INITIAL.
    ENDIF.
    @TODO fill attribute
    lv_ca_vis = 1.
    set single attribute
    lo_el_context->set_attribute(
    name = `CA_VIS`
    value = 02 ).
    I hope it helps.
    Check the sample Wedbynpro Component WDR_TEST_events . This is having the complete UI element functionalities in WDA.
    Thanx.
    Edited by: Saurav Mago on May 1, 2009 1:53 PM

  • Insert new page at run time to pull in images

    Hello ,
    I'm using Adobe LC Designer 8.2, and wondering if there is a way to insert a new page - not in design view but at run time since I have a dynamic plot as image (jpg) to bring into a form (1 image per page).  How would l load the image in & create those pages for these plots - it's going to be different amount of images/plot each time when the form run.  I know that I have to use script some how, but I'm new at this. Greatly appreciate all the help!
    Thanks,
    Trang

    One idea would be.....housing the image alone in a subform and set the subform to use "Top of the next Page" under "Object>>Pagination>>Place:". Also you may have to play with "Object>>Pagination>>After:" option to get things in your favor.

  • Custom error Page when Run time Occurs in SharePoint

    Hi Guys In my SharePoint application in case if any Run time error occurs in my code, It should not come Server error \ ..instead it needs to redirect to Custom error Page But its not working Can you plz help out? I made changes in web.Config file but its
    not working..Can you guys plz help me out how to redirect to custom error Page if any run time error occurs in Sharepoint??
       <customErrors mode="RemoteOnly" defaultRedirect="~/GeneralError.htm" redirectMode="ResponseRedirect"></customErrors>
     [[ Web.config file in Virtual Directory C:/inetpub/wwwroot/vd/port/web.config
    Is there any changes in addition to this web.config file??
    Reddy

    Hi Reddy,
    Here you go. pls follow the tutorials
    http://www.fixthisbug.com/post/creating-a-custom-error-page-for-sharepoint-2010-web-application
    http://blog.incworx.com/blog/sharepoint-tips-and-tricks/implementing-sharepoint-2010-custom-error-pages-v3
    http://www.spdeveloper.co.in/articles/pages/custom-error-pages-for-sharepoint2010-sites.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error while running a jsp page : "jasper run time error"

    hii
    I'm facing trouble while running some jsp page . the error is as follows:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    Unable to find a javac compiler;
    com.sun.tools.javac.Main is not on the classpath.
    Perhaps JAVA_HOME does not point to the JDK
         org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
         org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
         org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
    Apache Tomcat/5.0.28
    The set up in my system (path set up is as follows):
    Catalina home: C:\ apache software foundation\Tomcat 5.0
    Classpath: %java_home%;C:\j2sdk1.4.2_03\bin;
    Javahome: C:\ j2sdk1.4.2_03\jre;
    path: C:\ j2sdk1.4.2_03\bin
    <there are other variables available in path, along with that I have added the j2sdk1.4.2_03\bin in path".
    So if u have any way out for it please let me know.

    I think you only need to add: c:\j2sdk1.4.2_01
    you have specified jre on the end of your path, it is not the jre that is required, but the jdk.
    If you are using startup.bat and shutdown.bat (or .sh on Linux) you can amend the files with a text editor (open the startup.bat in notepad), like so:
    @echo off
    set JAVA_HOME=c:\j2sdk1.4.2_01
    if "%OS%" == "Windows_NT" setlocal
    I this will start Tomcat with the correct settings, regardless of your environment settings.

  • Hide Text Field at run time

    Hi,
    I am trying to hide a text field  when it is empty in Adobe form .
    The code for this
    if( hasValue($record.LOCAT) )
    LOCAT.presence eq 'visible'
    else LOCAT.presence eq 'hidden'
    endif.
    I have written this code in the initialise event for the text field.
    As far as I know this is possible for interactive forms. Is there a possible way to implement it in for static adobe form.
    I am very new to both Adobe form and java scrpit.
    Please help me .
    Rashi

    Hi,
    I tried both ur suggestions but no luck.
    I also went through the document and implemented the following changes to my form
    Created a script object  with a function in it trying to make the text field hidden in all cases
    function emptyCheck(oField){
    if ((oField.rawValue == null) || (oField.rawValue == "")) {
    oFieild.presence = "hidden";
    else{
    oFieild.presence = "hidden";
    and then applied to my text field  in the initialize event
    script_obj.emptyCheck(this);
    While testing (print preview) it is not showing any error but when I am running my form it still shows the text field.
    My requirement is this that if the field is empty it should be hidden and I would like to be able to move the lines below it upward on the form to fill in the space left by the data field so that no empty space is displayed.
    Am I doiing anything wrong ?
    Please suggest.
    Rashi

  • How to Load a Panel during run time from a CVI dll

    Hi,
    I want to execute/load a panel during runtime, from a CVI dll function.
    my CVI dll "test.dll" has "READ_PAN" function. while executing this function from a Test Stand Action step i want Configure Panel (from FR_GUI.uir) to pop up.
    can you please suggest me how can i do this from my "test" project of CVI.
    int __stdcall __export RunFRConfig (CAObjHandle step,CAObjHandle thisContext)
        ERRORINFO errorInfo;
        char errMsg[1024];
        int pan;
        pan = LoadPanelEx (0, "FR_GUI.uir", READ_PAN, __CVIUserHInst);
        DisplayPanel (pan);
        RunUserInterface();
        DiscardPanel (pan);
        return 0;
            Error:
       // sprintf(FinalErrMsg,"Configure Error: %s",errMsg);  
        return -1;

    Thanks for ur reply.
    Hello Asad,
    It is possible to maximize the run time previewer when calling reports from forms. U need to set a parameter named 'MAXIMIZE' to do that.
    I m attaching a code sample for u. This is working in my production environment.
    DECLARE
    pl_id ParamList;
    BEGIN
         pl_id := Get_Parameter_List('setProposal');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('setProposal');
    // This parameter is set to hide parameter form at run time     
         Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    // This parameter is used to maximize previewer window at run // time
         Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    Run_Product(REPORTS, 'sample.rep', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Feel free to contact me if u need anymore assistance.
    Take care and bye

  • How to Maximize a report in run time previewer

    Hi all,
    I want to maximize my report automatically during run time in the report previewer (I am calling this report from a form).
    Thanks
    Asad.

    Thanks for ur reply.
    Hello Asad,
    It is possible to maximize the run time previewer when calling reports from forms. U need to set a parameter named 'MAXIMIZE' to do that.
    I m attaching a code sample for u. This is working in my production environment.
    DECLARE
    pl_id ParamList;
    BEGIN
         pl_id := Get_Parameter_List('setProposal');
         IF NOT Id_Null(pl_id) THEN
              Destroy_Parameter_List( pl_id );
         END IF;
         pl_id := Create_Parameter_List('setProposal');
    // This parameter is set to hide parameter form at run time     
         Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    // This parameter is used to maximize previewer window at run // time
         Add_Parameter(pl_id, 'MAXIMIZE', TEXT_PARAMETER, 'YES');
    Run_Product(REPORTS, 'sample.rep', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Feel free to contact me if u need anymore assistance.
    Take care and bye

  • How to get Page Path in Webcenter at run time

    Hi All ,
    I want to get the page path of the current page that is being accessed by the user at run time (Rather , in the method activity of a TF).. This page path will be used to get the page def and do some operations on it.
    We tried to get it from the Navigation Context but node.path returns null .
    Any pointers on how i can get the it ?
    Kind Regards,
    Siddharth

    Using #{pageDocBean.pagePath} then you can get the page path
    using #{navigationContext.defaultNavigationModel.node[navigationContext.defaultNavigationModel.currentSelection.prettyUrl].goLinkPrettyUrl} - you will get required url for a particular page.
    See more information on http://docs.oracle.com/cd/E29542_01/webcenter.1111/e27739/jpsdg_app_els.htm#BEIBIEEF

  • Running a page takes long time

    Hi,
    Running in page takes a long time in JDeveloper.
    I see that, every time I run a page, the tool archives/loads the following
    Tutalii: C:\jdevbin\jdev\appslibrt\iasjoc.zip
    Tutalii: C:\jdevbin\jdev\appslibrt\fwk.zip
    It seems that this process itself takes a lot of time - nearly 5 minutes.
    This adds to the page rendering time of nearly 10 minutes.
    We are doing remote development as we don't have an option. Can we prevent the loading of above zip files again and again ?
    Any other way to make the pages run faster ?
    Thanks,
    Amit

    I believe that link doesn't help much.
    The Tutali seems to only happen on the initial startup of a page the first time. If you keep the J2EE running then the next page load isn't so bad. There is no need to restart the J2EE as redeployment clears the classloader cache, etc..
    I've also found that if I have a lot of projects built in "myclasses", this "Tutali" thing takes longer. So when I finish with one project, I clear my directory under "myclasses".
    This might help.

  • How We Can Change Page Size During Report Run Time

    Hello !
    How We Can Change Page Size During Report Run Time .
    How can we stop to change the column name when we amend a sql in report data model.
    Thanks !
    null

    hello sohail
    1. question - i'm afraid this cannot be done ... bit in report 6 and newer you have posibility to divide your report in 3 parts (former header, body, trailor) and each part can have diferent page siz, orientation , ...
    2. question - best is give each column in your statements in one report diferent alias. when you have to chnge something, alias will remain same ...
    try this: select 1 as fist_column, 1 as second_column from dual
    hope this helsp

  • How to Hide the Parameter field at run time....

    Hi,
    I have a parameter field which behaves differently depending on the User logged in.
    It has the LOV coming from following SQL.
    SELECT customer_name FROM Cust_mast;
    If the user = 'INTERNAL' then the Where clause will be
    WHERE cust_id in('DELL', 'SBC', 'BANK')
    Else there will be no WHERE clause or the parameter field
    should be hidden in the parameter form.
    So my questions are:
    1) How to hide the Parameter field during Run time?
    OR OR OR
    2) How to change the LOV select statement during Run time?
    Thanks.
    Ram.

    Hi Ram,
    Is there any way to play with the sql query SELECT using DECODE ?I'm not sure of this part, maybe someone else can suggest a way.
    However, what you want can be done in 2 other ways:
    1. Build 2 reports. Both reports will just be duplicates of each other, only difference being that the 'LoV where clause' will be different. Now you can fire the appropriate report in many ways. For example, if the customer is alreay logged inside your custom application, and therefore you already know whether the user is internal of external, you can design your button or link which launches the report to contain logic such that one of the 2 reports is fired depending on who the user is.
    1. Use a JSP parameter form, not a paper parameter form In this case, just build an HTML parameter form in the web source of your report. Use Java logic to populate the LoV drop-down list. When you have to launch the final report, just launch the paper-layout of the report. For example (you will have to modify this):
    <form action="http://machine:port/reports/rwservlet?report=ParamForm.jsp+..." name="First" method="post">
    <select name="selected_customer" onChange="First.submit()" >
    <option value="">Choose a Customer Name
    <rw:foreach id="G_cust_id" src="G_cust_id">
         <rw:getValue id="myCustId" src="CUSTOMER_ID"/>
    <rw:getValue id="myCustName" src="CUSTOMER_NAME"/>
    <option value="<%=myCustId%>"><%=myCustName%>
    </rw:foreach>
    </select>
    </form>
    In the code above, you will have to make sure that your report's data model defines 2 CUSTOMER_ID's (like CUSTOMER_ID_INT and CUSTOMER_ID_EXT). These 2 will be internal and external Cust ID's. Use Java logic to show one of them.
    Navneet.

  • How to hide the Parameter field during Run time?

    Hi,
    How to hide the Parameter field during Run time?
    I have a parameter field which behaves differently depending on the User logged in.
    I am using reports 10G
    For ex: I have 3 field created in JSP
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user = 'SUPER show all the parameter
    CUSTOMER
    PROVIDER
    FROM DATE
    END DATE
    If the user is 'GATEKEEPER" Just show
    PROVIDER
    FROM DATE
    END DATE
    Can I do that?
    Please help
    Thanks.
    KK

    hi, i'm not familiar much with JSP. but i think workaround is to create two window one which have 4 fields and the other which have 3. if user is SUPER then call the first screen otherwise if user is GATEKEEPER then call the second screen.

  • Hide run-time prompt in composite data form in 11.1.2

    Hi, I am using Planning 11.1.2, and the rule with run-time prompt I attached to a composite data from can't execute successfully when I selected "Hide Prompt" and "Use Members on data form". It says "An error occurred while attempting to run the following business rule on save". But if I set this rule to be run on save in a single data form, not a composite one, the rule could be run successfully. Is this a bug or does anyone know how to solve this? Thank you.
    Regards,
    Jerry

    Hi, I had the same problem and I did a Service Request to Oracle. This is a bug. Unfortunatly, I do not think there is a solution to fix this problem.
    The 11.1.2.1 version fixes this bug.
    Virgile.

Maybe you are looking for

  • Can't drag mp3 into GB '08

    Whenever I mention this, I seem to get answers from folks who can't understand why I'm having this problem, but I am unable to import mp3 files into GB '08, just the same issue I had with GB '06. I drag the file, I drop it, I see that striped progres

  • Downpayments scenerio Billing Plans

    Dear SAP Experts In simulation of the downpaymnets from the Customers We have created a order document and a Material with Item category group 0005 and the Item category in the sales order is TAo. As a Matter of Order realted billing Copy control is

  • What is VPN and How To Get Rid of?

    So to the left of the airport symbol on the upper right area of my macbook another symbol is now there. i click it and says VPN: idle. I dont even know what this is. I'm completely oblivious to this. What is it and should i keep it there or what? Tha

  • CUPC 8 and Meetingplace express 2.1.1.2 no video

    We don't get any video when calling in to Meetingplace 2.1.1.2 from a phone using Cupc 8 and not VT Advantage. Video between phones work and video for phones calling in to meetingplace using VT Advantage for video also works. Any suggestions?

  • IDOC INBOUND ERROR ( STATUS - 51 )

    hi all, when procssing the inbound idoc's i am getting an error ststing that " No status record was passed to ALE by the application " what may be the problem . helpfull answers will be rewarded with points. regards, murali.