Create Page that programmatically displays an iview

I'm trying to design a page that will contain to iViews.  One would have an announcement text at the top of the page and the other would be a related iView.  I would like the announcement header to only display if there's content to be loaded.  I've thought of two methods of this.
One would be to create a JSPDyn page that loads both iviews and partner that with some Javascript that hides the top if there's no relevant content.  However, I can't seem to find any examples of JSPDyn pages loading other iViews.  Where would I look for examples on this?
The other method would be using a property of the iView API called
pageSupport.ivuRemove that appears to do what I want, but again, I haven't found any example code on how to use this.
If anyone has any ideas, example code, or even a better method for optionally displaying an iView, please let me know.  I'll be sure to award points for answers that lead me on the right track.
Thank you.
- Craig

Hi Praveen,
My requirement is somewhat similar. I have a JSPDynpage application which gets data from the KM.
If no data is available the iView should be hidden. The iView should be visible again only when there is relevant data available in the KM for the iView.
I tried using the above code that you provided. However i am not able to figure out why the doOnNodeReady() is not getting called.
Here is an example code that i am trying to get it work :
package com.test;
import com.sapportals.portal.prt.component.AbstractPortalComponent;
import com.sapportals.portal.prt.component.IPortalComponentProfile;
import com.sapportals.portal.prt.component.IPortalComponentRequest;
import com.sapportals.portal.prt.component.IPortalComponentResponse;
import com.sapportals.portal.prt.pom.IEvent;
import com.sapportals.portal.prt.pom.NodeMode;
public class JSPPortalComp extends AbstractPortalComponent
    String text = null;
    public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
          IPortalComponentProfile  profile = request.getComponentContext().getProfile();
          text = profile.getProperty("TextValue");
          response.write("Hello" + text);
     protected void doOnNodeReady(IPortalComponentRequest request, IEvent event){
       if(text != "X") {
               request.getNode().setNodeMode(NodeMode.DEFAULT_MODE);
          } else {
               request.getNode().setNodeMode(new NodeMode("HideMode"));
               return;
If i set the TextValue iView property value to X then the iView should be hidden else shown.
If i place a response .write() statement in the doOnNodeReady(), the response doesn't print.
Can you please provide some insights into this.
I have posted a thread for the same kind of requirement : https://forums.sdn.sap.com/thread.jspa?forumID=41&threadID=1130403
Regards,
Melwyn.

Similar Messages

  • Acrobat only converts the page that is displayed.  How do I export/convert an entire PDF to word or exel?

    I have some huge reports that need to be converted.  This is not a one time thing.
    When I try to export PDF to word, excel, or any format offered, it:
    only saves the headers/footers.
    If I select all; it only saves the page(s) displayed on screen
    How can I convert an entire PDF to word or excel?
    Auto-scrolling is on and that made sadly no difference.
    There are too many pages to put it on 10% and view them all on one screen
    Please help

    Hi, sorry I should have put that in my original post.
    Version: Acrobat XI
    I tried multiple things which included:
    Tools --> Content Editing --> Export File To... [ This saves a blank file ]
    Select All --> Tools --> Content Editing --> Export File To... [ Saves only the page that is displayed on the monitor, the rest is all blank except header and footer ]
    Select All --> File --> Save As --> Excel or Word [ Saves only the page displayed on monitor ]
    File --> Save As --> Excel or Word [ Saves only the page displayed on monitor ]
    Select All --> File --> Save As Other --> Excel or Word [ Saves only the page displayed on monitor ]
    File --> Save As Other --> Excel or Word [ Saves only the page displayed on monitor ]
    Tools --> Edit Text & Images --> Cannot Select All --> Export File To... [ Saves only what is displayed on the monitor ]
    I'll edit and add to my original post if it lets me.

  • Create page that contains buttons

    I need to create page that contains many buttons each one is used for opening a specific page.
    Can anybody help me to give the steps?

    Hi,
    I think you need help for HTML DB.
    - Go and create page (could be HTML)
    - Then add region (form region)
    - Create buttons. Every button has ability to redirect to Page in this Application or URL. Just choose any page in the application.
    - On each step you can hit help to learn details.
    - There is a function “Create Multiple Buttons”
    Konstantin
    [email protected]

  • Can I create pages that only authorized users can access?

    I need to create pages that only authorized users can access, is that possible to be done with Muse? 

    Hi Natalia,
    If you are using Business Catalyst as a host , then "Yes" you need to publish a website to use Secure zone of Business Catalyst.
    If you are using a different host or BC then you may use third party widgets like
    Adobe Muse Password Protection Widget | MuseThemes.com
    Thanks
    Prabhakar Kumar

  • Getting the ID of the page that is running an iView in EP5

    Hello,
    As stated in the topic, I'm using EP5.
    How can I get the ID of the page that is currently running an iView from within the iView code?
    Thanks ahead for any help,
    Yoav.

    Anyone?

  • HOW DO I FIND WHICH PLUGINS ARE NEEDED on pages that dont display?

    Question
    when i loginto my.t-mobile.com i get a circle of moving dots in a white screen over top of some of pages, and some pages have a moving circle like the QuickTime circle in place of the curser. i know its because ff needs a plugin or something installed but dont get info from ff as to what is needed. this site works perfect in IE8 (after IE8 loaded unknown to me which ones) some plugin.have upgraded to FF8, same problem. had same type problem on IRS free file website where pages wont show, but worked perfect in IE8. problem has to be that a plugin or addin needs to be installed but i can't get any info about which to work on.

    Very few apps actually run in the background, so, if you're talking about removing apps from the recently used list, that's unlikely to have any significant affect on your data usage. You should go to Settings>General>Background App Refresh and turn off background app refresh for those apps that you don't need to have using data in the background.
    You can go to Settings>Cellular and scroll down to see which apps are set to be able to use cellular data. Under each app name is the amount of data they've been using.

  • Is there a URL portlet that will display a site in a sub frame (iFrame) ?

    Applogies in advance if the terminology is wrong or I am in the wrong forum.
    Basically I want to set up a portlet on a page that will display the contents of another web site. So you define a URL and the website that you pointed at is displayed in a sub frame (iFrame) on a page in out web site.
    I know this has been done as I have seen it on oracles test portal site. Is this a standard function in portal or do I have to create a specific provider/portlet using the PDK.
    Any advise will be appreciated.

    Hi Dave,
    I have done something similar, I think that you have to create an HTML Portlet that contains the IFRAME.
    then you can set [IFRAME_name].location from Javascript.
    Regards Michael

  • Creating pages fro list Items

    Hi
    Wondering if anyone can steer me in the right direction;
    I have a list containing event details, title, venue speaker, speaker into etc;
    I have entered these into the list, maybe 10-20 venues with details;
    I can create a page in designer to display a list of the venues, which I've done, but I now want the titles to be hyperlinks to a page thats created automatically that just displays all the details for that venue from the list, almost like a page layout
    but I'm not getting if this is possible and how does the link get generated;
    Is it that the title links to the entry in the list and that view is somehow formatted or arranged?
    Thanks for the help

    Hi,
    I assuming you using two list "Event List" and "Venue List" right.
    And on Click of "Event Title" you want to redirect to Venue details page.
    Let me know, the senario is correct or not.
    If yes, you can achieve this using SP designer and dispform.aspx.
    Ankur Agrawal

  • Photo page doesn't display photos????

    my first attempt at updating my site in iWeb 09 and I'm stumped.
    I added new photos to my photo page - but the page comes up blank in my website.
    (I published to my local folder and then uploaded to my server with Fetch)
    Curiously, when I click the "visit" safari icon INSIDE of the iWeb app, I'm taken to a page that DOES display the photos... but the page has a slightly different url.
    The functioning page's url has: my domain/THE "LOCAL"NAME OF MY SITE/selected page.
    My old site url only contained my domain followed by the selected page of the site.
    Somehow iWeb 09 has altered the url????
    Any suggestions/thoughts?
    thanks in advance

    nevermind - it seems to working properly now?????

  • Dynamic Page that calls DB procedure to update data gets PLS222 or PLS306

    This seems a bit odd to me: I'm getting either "procedure no in scope" (when I call a procedure with the right args) or "wrong # or type of arguments" (when I call it with the wrong ones, so it is checking the procedure) in a dynamic page.<P>
    I'm trying to build a dynamic page that will display data and checkboxes (basically to get around the multi-select limitations -- management has told me that the "fake" md form is not acceptable)<P>
    So I build the page, it displays the data just fine exactly as we want it to:<P>
    <HTML><FORM><ORACLE>declare
    p_mdoc_user portal.wwv_utl_api_types.vc_arr;
    p_mdoc_user_seq portal.wwv_utl_api_types.vc_arr;
    p_seg_id portal.wwv_utl_api_types.vc_arr;
    p_cb portal.wwv_utl_api_types.vc_arr;
    p_action varchar2(20):='Save Changes';
    begin
    htp.p('Select your segments');
    htp.p('< p>');
    htp.p('<table border=2 cellpadding=2 cellspacing=0>');
    htp.tablerowopen;
    htp.tableheader('Seg#');
    htp.tableheader('Included');
    htp.tablerowclose;
    for r1 in (select seg_id, build_seg
    from web.mdoc_create_seg
    where mdoc_user = :mdoc_user
    and mdoc_user_seq = :mdoc_user_seq)
    loop
    htp.p('<input_type="hidden" name="p_mdoc_user" value='||:mdoc_user||'>');
    htp.p('<input_type="hidden" name="p_mdoc_user_seq" value='||:mdoc_user_seq||'>');
    htp.p('<input_type="hidden" name="p_seg_id" value='||to_char(r1.seg_id)||'>');
    htp.p('<tr><td>');
    htp.p(r1.seg_id);
    htp.p('</td><td>');
    if r1.build_seg='TRUE' then
    htp.p('<input type="checkbox" name="p_cb" value="Y" checked>');
    else
    htp.p('<input type="checkbox" name="p_cb" value="Y">');
    end if;
    htp.p('</td></tr>');
    end loop;
    htp.p('</table>');
    htp.p('< p>');
    /*note, this is where I'm putting in a procedure call to update*/
    end;
    </ORACLE></FORM></HTML><P>
    so then I try to add the procedure call (where the sql*plus comment is above)<P>
    htp.p('<input type="button" value="Save Changes" onclick='||
    mdoc_seg_create_choice_p(
    p_mdoc_user,
    p_mdoc_user_seq,
    p_seg_id,
    p_cb)
    ||'>');<P>
    When I try to run as portlet, I get pls 222 not in scope. <but>
    When I take a value out (say remove the last ",p_cb") - I get pls 306 wrong number or type of args to call.<P>
    I've granted the procedure and its underlying tables to portal/public/and portal_public, even though I'm building the dynamic page under a DB provider that is the same as the schema I wrote the procedure in.<P>
    I've tried specifying the schema, using a public synonym, and putting it in a package: same thing occurs, either I get pls 00222 not in scope when I call it with the right columns, or if I purposefully leave one out I get PLS 00306 wrong # or type of args.<P>
    Any ideas?
    -Mike

    Hi guys
    Check out the last 2 posts in this thread for ideas on how to implement 1.
    Report on user data from LDAP
    Varad

  • As a graphic designer, I am creating ePubs that will be seen on iPads running, ios5, ios6 and ios7.  Each version displays the page differently.  Is there a way to make the display consistent on all systems?

    As a graphic designer, I am creating ePubs that will be seen on iPads running, ios5, ios6 and ios7.  Each version displays the page differently.  Is there a way to make the display consistent on all systems?

    As a graphic designer, I am creating ePubs that will be seen on iPads running, ios5, ios6 and ios7.  Each version displays the page differently.  Is there a way to make the display consistent on all systems?

  • How to get the page layouts programmatically and create a page for that pagelayout

    how get the page layouts programmatically and create a page for that pagelayout and add webpart
    please help me with da code.Thanks
    adityadugyala

    Hi if your page layouts alreday created then create new page programaticaaly  and apply your page ayouts to that page by coding you can do something like following
    PublishingWeb publishingWeb =
    PublishingWeb.GetPublishingWeb(web);
    PageLayout[] layouts = publishingWeb.GetAvailablePageLayouts();
    PageLayout layout = layouts[0];
    string pageName =
    "MyPublishingPage5.aspx";
    PublishingPage newPage = publishingWeb.GetPublishingPages().Add(newFolder.Folder.ServerRelativeUrl +
    "/"+ pageName, layout); 
    newPageUrl = web.Url +"/" + newPage.Url;
    newPage.Description = "This my sample publishing page";
    newPage.Title = "My Publishing Page";
    newPage.Update();
    Please follow link
    http://blogs.msdn.com/b/sowmyancs/archive/2008/03/15/create-publishing-pages-in-portal-sites-programmatically.aspx
    Please mark answer , if you think answer is helpful or correct.

  • Ho do I create a SharePoint page that displays employees?

    In WSS 3.0, how do I go about creating a page of employees, phone list, etc. I just want to create a page that is synced with active directory, and displays employees, their title, phone number, etc. 
    Are there any step by step samples out there? I would appreciate any help I can get. 
    My thoughts so far...maybe creating a stored proc that can be used to pull the info. But then, am not so sure how I can get this into SharePoint.
    I would appreciate any help...whatever way is best to get this done. Thanks 

    You'll most likely need to get into coding and build it yourself or buy a third party solution. Search online about LDAP sync or employee directory with WSS 3.0.
    Here's another forum on the same topic
    http://social.technet.microsoft.com/Forums/pl-PL/sharepointgeneral/thread/42333efc-543e-4176-8ca4-dd65b86a2d8c
    http://community.spiceworks.com/topic/220394-telephone-directory-using-ad-wss-3-0
    Also, take a look at the following. This might help too.
    http://www.amrein.com/apps/page.asp?Q=5785
    Hope that helps...
    Pman
    http://www.pmansLab.com/

  • Creating an iWeb page that is NOT displayed in tabs

    I am trying to build a website for my church. But after getting all the info wanted on the site, I discovered that there would be way too many tabs to keep the site nice looking. So how do you create a page that doesn't have a tab on the top of the page but rather just a link from another one?
    Hope that made sense.
    Any help would be appreciated
    Thanks
    Intel 1.83 iMac, 2.0 G5 Powermac   Mac OS X (10.4.9)  

    Click on the inspector icon (the blue circle with an i) at the bottom of the iWeb window. Click on the page icon and uncheck "include page in navigation menu."
    Kabing

  • Making a web page created with WPC available in an iView

    Hi all,
    is it possible to display a web page which was created with the WPC in an Iview?
    Every guide I found explains how to make it available via Entry Point but I need it in an iView.
    Regards,
    Bastian Jäschke

    Hi,
    1. create a new iView with Portal Component as source
    2. choose portal archive: com.sap.nw.wpc.runtime
    3. choose default on next screen
    4. Afterwards choose the category Web Page Composer in the Property Editor.
    5. Insert the Path of the Web Page in the property : RID of Compound Document
    (you can copy it by clicking on 'Copy Path' in the context menu of the web page)
    example: /wpccontent/Sites/MyWebSite/Web Pages/MyWebPage
    I translated it from german documentation. Hope, you understand it.
    That's the way i did it too nad it worked for me.
    Best Regards,
    Marcus

Maybe you are looking for

  • Container management in workflow

    Hi, I am VERY NEW to workflows and am trying to create my first workflow. I initially set up all of my steps with myself as the responsible agent. I am now trying to identify the responsible agent via a method. (We determine approving agents by certa

  • Memory problems in internal table

    Hi, I am facing an issue with the internal table memory. I am selecting something from the database and putting it in internal table but the load is so much that it is giving me memory errors as the data may go into millions. So what we have decided

  • How to automate an oracle 8i database startup

    I have an Oracle 8i database with the SID = MUKREC and installed on C:\ Whenever the computer is restarted, the database doesnot startup automatically But has to be started manually. What could be the cause of this issue and how can I resolve it. So

  • Mkisofs: Value too large for defined data type too large

    Hi: Does anyone meet the problem when use mkisofs command? <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Warning: creating filesystem that does not conform to ISO-9660. mkisofs 2.01 (sparc-sun-solaris2.10) Scanning iso Scanning iso/ra

  • Importing photos from iPhoto 6 to iPhoto11.

    My beloved Quicksilver Desktop died and am buying new iMac. Any problems encountered with transferring photos stored in iPhoto 6. to iPhoto 11.