Render Portal Style Sheet in New Page

I created a PL/SQL Portlet that displays a list of users. When you click on a person, a new window pops up and displays information about that user.
That works find. However, I would like the window to have the same look and feel as the portal page. I need to bring the page style sheet (css) over to the next window. Do you know if a PL/SQL Portal API that can generate the style sheet in the header area of the new page that I opened?
Should I use a template to display my information in? If so, how do I pass the results to this template?
Thanks

OK, I think I got it.
I created a structure user interface template called My_Template. In the template I set up everything. I set up the look and feel, colors, images, etc.
Now, in my code, I use the following API.
PORTAL30.wwv_headings.show_header(
p_template => 'PUBLIC.MY_TEMPLATE',
p_heading => 'The Title',
p_help_link => '');     
htp.p('</BODY></HTML>');
Which will translate into the following HTML
<HTML>
<TITLE>My Title</TITLE>
<BODY bgcolor="#B5B591">
<TABLE width="100%" height="40" cellpadding=0 cellspacing=0 border=0 bgcolor="#B5B591" >
<TR>
<TD width="1%" align="LEFT"><IMG SRC="/images/cantrac2.gif" ALT="Return to the CANTRAC MENU(Application Home)" border="0"></TD>
<TD width="97%" align="LEFT"><FONT STYLE="font-family:Helvetica;color:black;font-size:16pt;"><B><NOBR>My Title</NOBR></B></FONT></TD>
<!-- frame_link = -->
<TD width="24" height="24"><IMG SRC="/images/cantrac_menu.gif" valign=top ALT="Application Home" border=" 0"></TD>
</TR>
</TABLE>
</BODY></HTML>
I still don't get the STYLE sheet but it looks close enough.
When I create a unstructure UI template and use the #PAGE.STYLE# command, the style is null when I call a new browser window. Need to look into what portal API to use to get this information.

Similar Messages

  • How to apply style sheet to design page

    hi all,
    i have a discussion,
    how to apply a style sheet to design page in webdynpro.
    thanks
    vikash

    Hi Vikash,
    Check the below links which will you idea on the same.
    Stylesheet for WDA without integrating in SAP Portal
    Apply custom css to WebDynpro application
    Thanks
    KH

  • How to update table styles in the new Pages?

    Anyone found out how to update table styles in the new Pages? I see it's done in some of the templates that Apple provided, but I can't find it. Also, the Copy table style command is gone, so I can't make my tables look in a uniform way, unless I use one of the built-in styles.
    Thanks.

    I'm having the same trouble. Looks like no way to create an overal 'table' style and I cannot access the table paragraph styles either.

  • Why do I have two of the same CSS style sheets on my page?

    I created my index page using a 3 column layout, and I brought in one of the sample css style sheets.  Now I have 3 css style sheets for my page:
    1)  thrcolfxdhdr.css
    2)  samplegreenyellow.css (I changed the name of the sample)
    3)  level3_3.css
    The last two have all the same .header .footer, etc.
    When I make a change in #2 it doesn not change anything on the page.
    When I make a change in #3, it does make a change.
    Do I need both.  Right now I am making every change twice!  Can I delete one?  If so, which one?
    Thanks.

    To see if you can do without one of the stylesheets, go to the head of your document (not the stylesheet) in Code View.
    Find one of the link statements (<link href=...etc.) and 'comment it out'. If your page functions without it, you can safely remove the link from your page. If you lose some styles but not all, you will need to spend a little more time with it.
    If your two stylesheets are actually identical, you can remove one with no harm done. Also remove the link and delete the stylesheet itself.
    If there are slight differences (you can find them by viewing them both in Code View, Tile Vertically in the Window menu), add the differences to one of the stylesheets and then delete the other.
    You might be able to compare the two stylesheets quickly in the CSS Styles Panel (but not with either link commented out) while your html page is open, but you won't see details side-by-side there.
    To answer your question (in passing!), the reason you did not see changes in your page when you changed Stylesheet #2 is because Stylesheet #3...called after Stylesheet #2...cancelled out all the changes you had made in Stylesheet #2. Then when you made changes in #3, they were NOT cancelled out by #2 because #3 came AFTER #2 in being called. Precedence is what the Cascade is all about.
    Beth
    Message was edited by: Zabeth69

  • Automatically attaching CSS style sheets to new documents

    I wanted to alert everyone to a great new Community article published by Adobe Community Expert David Powers. The article details how to attach CSS style sheets automatically when you create new documents.
    Here's the article:
    http://kb2.adobe.com/community/publishing/505/cpsid_50564.html
    This handy option is easy to miss, especially if you don't use the New Document Dialog box to create documents, so big thanks to David for highlighting this.
    Furthermore, the appearance of such an article is a great example of how Community content can interact and live symbiotically with Adobe Help. We've linked directly to David's piece from our documentation, and this is indeed a great thing because David is able to go into much more detail about the process of automatically attaching style sheets than we are able to do in Help:
    Create a blank page
    Create a page with a CSS layout
    If you're interested in publishing Community articles of your own, you can download the Community Publishing AIR application and get right to work!

    Jon Michael Varese wrote:
    We've linked directly to David's piece from our documentation, and this is indeed a great thing because David is able to go into much more detail about the process of automatically attaching style sheets than we are able to do in Help:
    Can I ask why?
    David's excellent standard should be the minimum standard for Help files.
    The quality of software manufacturers' Help (not just Adobe) has deteriorated greatly over the past decade - to the point where it's now my last resort for learning.
    Software manufacturers seem to tacitly rely on 3rd party book authors (such as David's brilliant material), bloggers and online tutorials to explain their products these days.
    I'm happy not to have a printed book with my software any more because they were always out-of-date and hard to update. However the quality of PDF and online Help docs is so poor and sparse for my use that I prefer to get my answers by Googling, visiting forums or buying the occasional book.

  • What happened to styles in the new Pages?

    I "upgraded" to the new Pages and now all my styles in my older Pages documents are gone. What happened? I cannot work without styles. Pages also informs me that it can no longer show facing pages. Is this supposed to be an improvement?

    In answer to the last question, Yes: "Supposed to be".
    In practice: No it isn't. Apple has removed 100 features and added a nest of bugs from irritating to serious.
    Styles have moved to the side Format panel.
    Facing pages are gone along with a lot of other features:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=424&sid=2f0e359c436e cc2d9a9d0e450954dd70&mforum=iworktipsntrick
    Peter

  • Regd Style Sheets in Portal

    Hi,
    I am trying to change the Style of my Portal pages.I found that procedure named wwpob_app_style.render_css renders the style sheet for a page.Is there any way to tell my portal page to use my own style sheet.(like we give a css in HTML files)
    and one more thing i want to know is where all the HTML classes are stored.is that stored in the database or in any css file in the server.
    Regds
    Rajesh Kanna.V

    Hi Rajesh/Pernille,
    You can use your own stylesheets for a page by using user interface templates. Create a unstructured user interface template that
    uses your own stylesheet (by using the <LINK> tag in your head or by directly using the <STYLE> tag - see code snippet given below)
    and use this template for your page. The following code snippet for a UI Template uses a custom stylesheet in addition to the stylesheet
    generated by Portal:
    <HTML dir=#DIRECTION#>
    <HEAD>
    <TITLE>#TITLE#</TITLE>
    <SCRIPT LANGUAGE="JavaScript1.1" SRC="/pls/portal30/PORTAL30.wwv_javascript.fetch_script?p_name=popUpWindow">
    </SCRIPT>
    #PAGE.STYLE#
    <link rel="stylesheet" type="text/css" href="/images/css/my.css">
    <style type="text/css">
    body {
    scrollbar-arrow-color: white;
    scrollbar-base-color: black;
    scrollbar-dark-shadow-color: yellow;
    scrollbar-track-color: #F1F1F1;
    scrollbar-face-color: #93B5DE;
    scrollbar-shadow-color: white;
    scrollbar-highlight-color: silver;
    scrollbar-3d-light-color: black;
    </style>
    #PAGE.BASE#
    </HEAD>
    <BODY>
    #BODY#
    </BODY>
    </HTML>
    And Rajesh, the CSS generated by Portal for a page is generated during Page rendering from the database..
    Regards,
    Rupesh

  • Loop Page Style Sheet to set file name.

    I am exporting pages to jpgs and pngs using a script that pulls the name from an applied style sheet.
    http://forums.adobe.com/message/5913479#5913479
    the above works perfectly if I only want to specify one style sheet as the file name.
    the challenge may need to use different style sheets on each page to create the name.
    I am not sure how to loop through each page and grab the style in play.
    or if I need to loop at all.
    This is where I am...
    function MakePNGfile()
         for(var myCounter = 0; myCounter < myDoc.pages.length; myCounter++)
              if (myDoc.pages.item(myCounter).appliedSection.name != "")
                   myDoc.pages.item(myCounter).appliedSection.name = "";
          var myStyle1 = "sheetlabel-text";
          var myStyle2 = "sheetlabel-text-2";
          var myParagraphs = myDoc.pages.item(0).textFrames.item(0).parentStory.paragraphs; 
              var myPageName = myDoc.pages.item(myCounter).name;
          var myPNGPrefix = "";
         for( i = 0; i < myParagraphs.length; i++)
             var paragraph = myParagraphs.item(i);
    if (paragraph = myStyle1)
        (myPNGPrefix = getParagraphContent(myDoc.paragraphStyles.item("sheetlabel-text"),  myDoc.pages.item(myCounter))+ '-0' + myPageName)
    else
        (myPNGPrefix = getParagraphContent(myDoc.paragraphStyles.item("sheetlabel-text-2"),  myDoc.pages.item(myCounter))+ '-0' + myPageName)
    Thanks for your help!

    Good to hear .
    Find attached the next version. You can now insert in 'paraStyleNames' as many style names as you want. The script will check from left to right, if there is one found on the page. If this is true, the script will ignore the other styles.
    Removing leading zero should work now.
    Maybe one problem: If one page contains no style, this page will be exported nevertheless with it’s correct page number, but with the founded text of the previous page. If this can never happen, we are done and you should mark the answer as correct. If this is a real problem for you, please let me know, what should happen in this case and I will try to fix that too.
    // Export pages as JPG with additional info by Kai Rübsamen
    // http://forums.adobe.com/message/6326425#6326425
    main ();
    function main() {
    var curDoc = app.activeDocument;
    // Array of paragraph Style names
    var paraStyleNames = ["h1", "h2"]; // insert here your para names !
    var missingParaStyles = [];
    // check, if the styles are valid
    for ( var p = 0; p < paraStyleNames.length; p++ ) {
        var curName = paraStyleNames[p];
        // if the style is missing, push it to the array
        if ( !curDoc.paragraphStyles.itemByName(curName).isValid ) {
            missingParaStyles.push( curName );
    // if some styles are missing, give an alert
    var nMiss = missingParaStyles.length;
    if ( nMiss > 0 ) {
        var display = missingParaStyles.join( "\r" );
        alert ( "Missing para(s):\r" + display );
        exit();
    // loop through all pages
    for ( var i = 0; i < curDoc.pages.length; i++ ) {
        // the current page
        var curPage = curDoc.pages[i];
        // the current pages name
        var pName = curPage.name;
        // controls the loop
        var controller = true;
        // all paragraphs on the current page
        var allPageParas = curPage.textFrames.everyItem().paragraphs.everyItem().getElements();
        // loop through all paragraphs and check, if one has the para style applied
        for ( var p = 0; p < allPageParas.length; p++ ) {
            if ( !controller ) break;
            // the current para
            var curPara = allPageParas[p];
            // loop through the styles
            for ( var n = 0; n < paraStyleNames.length; n++ ) {
                if ( curPara.appliedParagraphStyle.name == paraStyleNames[n] ) {
                    var paraContents = curPara.contents;
                    var paraString = "-" + paraContents.replace( /\s+$/ , "" ).replace( /\s+/g , "-" ).toLowerCase();
                    controller = false;
                    break;
                } // end if
            } // end for paraStyleNames
        } // end for allPageParas
        //~ var folderPath = "~/-client/JOYS - Just Organize Your Stuff/-Art/-art-book-kindle/";
        var folderPath = Folder.desktop;
        if ( pName < 10 ) {
            var appendix = "-0" + pName + paraString;
        else {
            var appendix = "-" + pName + paraString;
        var filePath = folderPath + "/" + curDoc.name.replace(/\.indd$/,"") + appendix + ".jpg";
        var myFile = File( filePath );
        with ( app.jpegExportPreferences ) {
            jpegQuality = JPEGOptionsQuality.high; // low medium high maximum
            exportResolution = 72;
            jpegExportRange = ExportRangeOrAllPages.exportRange;
            pageString = pName;
        curDoc.exportFile( ExportFormat.jpg, myFile, false );
      } // end for pages
    } // end main
    –Kai

  • Display Text Items in New Page

    I am currently designing a Content Area for our new site and have come across a problem which I really need to find a way round.
    I am adding HTML articles as text items into the Content Area. For the interface, I am using a Portal page and publishing the Content Area as a portlet onto this page. I need to do it this way rather than exposing the actual Content Area page as our organisation needs to use an external style sheet on the page for accessibility purposes.
    What I need to be able to do is when a user clicks on the link for the item, it will open up inside a blank page inside the same browser window, preferably with a template added to it. I know there is actually an option to set the item to display inside a blank page but this 'blank' page is actually the Content Area page and this uses the internal Portal style.
    There doesn't seem to be any way of specifying your own template for a Content Area page which is pretty much what I need to do.
    Thanks in advance for any help!
    Richard

    Erik:
    Very good to know! I ended up logging an SR after all, and included your post to help guide the support rep.
    I'm pretty sure it's a server side problem, because the MIME type is served up incorrectly. IE seems to handle text/plain encoded that are actually HTML more gracefully than Firefox.
    (As for handling anything else gracefully, well... that's another story :-) )
    Thanks!
    -John

  • RH 11 v11.0.2.240:  Cleaning up an External Style Sheet (CSS)

    Hello,
    I am in the process of trying to clean up a CSS for an "old" RoboHelp project.  I believe the CSS contains many unused styles that were probably "trial & error" styles, but were never deleted when they failed to produce the correct format.  I know it doesn't do any harm to leave them in the CSS, but I really don't want them around! 
    I did not see a report in RoboHelp that would provide this information, but before doing a search for each individual style using a program like Agent Ransack, I wanted to see if anyone in the Community had any clever ideas as to how to accomplish this task.
    Thanks for  your input/suggestions!

    I can't say I've had this issue.  But then again, I never use the CSS property inspector to create an external style sheet.  I just hit File > New > CSS.  I add my CSS rules and Save it to the local site folder.
    Link style sheet to HTML pages.
    http://alt-web.com/DEMOS/DW-Link-Stylesheet.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Css style sheet through ASP CMS not displaying in Safari only

    Seeing a quirk in Safari 5 Mac OSX only where it won't pull the CSS file. IE, Opera, Firefox, Chrome don't seem to be having the issue. It is intermittent though, and I know it isn't the server connection.
    Wondering if it may be the way the css path is written. It is a dynamic ASP CMS custom built site. There is a ton of javascript and backend ASP scripting that pulls a bunch of css files via an extended URL with the filenames separated by commas. The path is relative to the CSS file, but the path does start with / not just the folder/file.
    I thought I remembered seeing an issue years ago with another php/mysql CMS site because the url of the relative path had or did not have a / beginning the path, but I couldn't remember what exactly was the resolution on it. Maybe it is the way the css files are being pulled dynamically appending several css filenames with the format:
    css.ashx?file=filename1,filename2,filename3
    ...Or maybe it's just Microsoft ASP doesn't like Safari and vice versa

    JimH430 wrote:
    > I'm new to DW - always used GoLive - making the
    transition. I've
    > created styles in an internal style sheet and moved them
    over to an
    > external style sheet. The page works just fine on my
    computer with
    > the external style sheet in each browser I check it in
    but... When I
    > upload the page with the external style sheet to the
    server- it only
    > works on in Safari, Opera, Windows IE-6. It will not
    work in FireFox
    > 2 and Netscape 9. It acts as if there is no style sheet
    connected to
    > the document. Can someone explain what is going on? I've
    tried
    > everything but can't figure it out. Don't know enough to
    ask the
    > right questions in google.
    http://www.summitcom.net/pii/index5.html
    > Any and all help really appreciated. Thanks, Jim
    You have validation errors on your page - see
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.summitcom.net%2Fpii%2Findex5. html
    Fix them, and then see if you still have the problem.
    HTH,
    Pete.
    Peter Connolly
    http://www.kpdirection.com
    Utah

  • Attaching style sheets to whole website?

    My question about attaching CSS style sheets remains unanswered as far as globally having them appear in the panel for the whole site. David Powers did answer me about how to add them to new sheets, but I have a site I imported from GoLive and what it looks like if I'm correct is that I have to attach it to each page individually to have it appear in the panel each time. Of course once I've done that to each page they will 'stick', but what I would like is if I create a style sheet and save it to the root, that it appear for any page that exists in the root level. Am I wrong? Or is there a way to make it appear for all pages without individually attaching?
    Thanks
    bob

    bobfharris wrote:
    what I would like is if I create a style sheet and save it to the root, that it appear for any page that exists in the root level. Am I wrong? Or is there a way to make it appear for all pages without individually attaching?
    Style sheets must be attached to each page. One simple way of adding the style sheet to existing pages is to to a Find and Replace operation.
    Find:
    </head>
    Replace with:
    <link href="styles/mystylesheet.css" rel="stylesheet" type="text/css" />
    </head>
    This uses a document-relative path to the stylesheet, so you would need to use a site-root relative link or do it separately for each level of the site hierarchy.

  • Getting a style sheet nxt to nav bar

    I'm trying to get a css sheet next to the green nav bar. The
    brown box is a layer and when you move the browser it does not move
    with the rest of the sheet. The problem is I had a sheet there but
    everytime I changed the float point to anything other than right it
    ends up on top of the nav bar on the left. All I need is to create
    a css text box that runs down to the lower css sheet. First thing
    is how do I get a css sheet to the right of the nav bar and second
    I need it so the orange background is on both sides, the last sheet
    was flush to the right.
    page
    is here

    You can't mean that you're trying to put a CSS style sheet on
    your page,
    when you talk about "a css sheet". But it sure is confusing
    that you use
    "css sheet" to mean something else entirely. And what it
    means to you, I
    haven't figured out yet. So tell us what it means! :-)
    Patty Ayers | www.WebDevBiz.com
    Free Articles on the Business of Web Development
    Web Design Contract, Estimate Request Form, Estimate
    Worksheet
    "mentlity" <[email protected]> wrote in
    message
    news:g5gvrt$89l$[email protected]..
    > I'm trying to get a css sheet next to the green nav bar.
    The brown box is
    > a
    > layer and when you move the browser it does not move
    with the rest of the
    > sheet. The problem is I had a sheet there but everytime
    I changed the
    > float
    > point to anything other than right it ends up on top of
    the nav bar on the
    > left. All I need is to create a css text box that runs
    down to the lower
    > css
    > sheet. First thing is how do I get a css sheet to the
    right of the nav bar
    > and
    > second I need it so the orange background is on both
    sides, the last sheet
    > was
    > flush to the right.
    >
    > thx[ L=page is
    here]http://www.goodgreenbiodiesel.com/goodgreenindex.html
    >

  • Double cascading styles sheets

    Current having a duplication problem in Dreamweaver, relating to linking external style sheets, which is clearly seen in the html only one is linked. But next to the source code it duplicates(same file) but during live preview changes will only occur if done on the "CSS.css" location on the right side. And one I have edited and saved the one on the right Dreamweaver will display that it has been edited outside of Dreamweaver and prompts me if i want to save, but only happens when I link new style sheets to html pages. If anyone knows how to get rid of this bug/problem please help, I only know that I've fiddled with it at some point and it fixed itself to only display one "CSS.css".

    Looks like the OP is talking about the dependent files toolbar, it's dropping in CSS.css twice, even though it's only linked once in the HTML.
    This may have something to do with the file not being saved yet, or possibly not being saved in a Defined Site.
    GS-01: Defining a new site | Learn Dreamweaver CS5 & CS5.5 | Adobe TV

  • Safari 5.0.3 not loading CSS style sheets 1st time through

    When I go to my ecommerce site's https payment screen, the page HTML loads OK but the formatting is missing (so the screen is really messed up). If I hit the page re-load function the page re-loads with all the formatting corrected. It behaves the same with both the Mac and Widows versions of Safari 5.0.3. The problem did not occur on earlier versions of Safari (i.e., the Mac I use for testing the site worked perfectly on the now problematic page until I upgraded to the latest version of Safari).
    The problematic page works fine with all the other browsers that I have tried (IE7, IE8, Firefox, Chrome)
    My guess is that it has something to do with some @import url("css style sheet") directives that are imbedded at the beginning of the master style sheet for the page.
    This problem will stop all Safari 5.0.3 users from navigating our site so it is quite serious.
    Any help on this issues would be greatly appreciated.

    Further investigation has revealed that the following error message is being generated within Safari during the first time the that the page is loading,
    "Refused to load from document base URL. URL found within request."
    The <base> directive in the HTML, in this instance, is referring to a different URL than the one that the page is running from. The page with the problem is running on a remote server and back referencing to the home server for the <base> reference. This fails when the page first loads but seems to be accepted if a page-reload is done. It also works on all other browsers that have been tested.
    Is this related to a security setting in the browser?

Maybe you are looking for