Help - Creating a Custom Layout

Hy, I'm creating a Grphical Programming Language,
where user draw flowcharts by linking buttons.
My problem is:
After adding some buttons on the panel,
the scrollBars does not appear.
(I have set layout to be NULL so that I can add the buttons
at specific position on the pane).
I think I need to create a custom layout, but with a layout,
after adding buttons on the panel and position them to specific
location, when I maximize/restore the window, the buttons return
to their initial position.
Can anyone please send me the code for creating a custom layout (imagine
that you are drawing a flowchart by adding buttons).
NOTE: The buttons should stay at their position while maximizing/restoring
the window.
thanks in advance

Hi,
I'm currently working in a project that for what I understood is quite similar to yours...
The way I solved the problem, was creating a virtual-grid. When the user adds the button, I have to methods (getRow() and getColumn())
that convert the mouse coordinates to row and grid numbers. Then knowing the row and the column, I multiply this values for the row
width and column height, and have the X and Y position where to add the button in the JPanel.
Here is some of the code:
public int getColumn(int x)//mouse coordinate x
        column=(int)(x/COL_WIDTH+1);
        if(maxColumn<column)
            maxColumn=column;
        return column;
    public int getRow(int y)//mouse coordinate y
        row=(int)(y/COL_HEIGHT+1);
        if(maxRow<row)
            maxRow=row;
        return row;
    }And then I add the component,
jPanelContainer.add(component,
                    new org.netbeans.lib.awtextra.AbsoluteConstraints((col-1)*COL_WIDTH, (row-1)*COL_HEIGHT, -1, -1));This is only an ideia. Since I have a lot of constraints with the blocks that I have to add, I first add the components to an array[][],
treat all the things in this array (like user deleted component, moves rows and columns, user added component, user moved component, etc...)
and then "send it to the sreen"...
Maybe I was a little bit confusing...
Hope it helps!
Regards,
ANeto

Similar Messages

  • How to create a custom layout set to display the KM folders...

    Could someone please tell me how to create a custom layout set to display the KM folders?
    Thanks,
    Sudha.

    Hi Sudha,
    Please check the following blogs whick will guide you step by step.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4123
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3071
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/c91b5610b65b4aa8204d09384d156b/frameset.htm
    If helps reward points
    cheers
    dev

  • Trying to create a custom layout.

    Hello. I am trying to create a custom layout. The
    format I'm going for is three rows, with the top and
    bottom row being comprised of three columns each. IE:
    | X | X | X |
    |     X     |
    | X | X | X |
    -------------I have written a corresponding .html.txt file for my
    intended layout and it looks correct. However, the
    actual layout file's end results looks like a horizontal
    flow layout with line wrapping after every third column.
    IE:
    |     X     | X | X |
    |     X     | X | X |
    |     X     |
    -------------The code I have created is as follows. Thanks for your
    time and assistance.
    <?xml version="1.0" encoding="UTF-8"?>
    <netuix:markupDefinition
    xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0 markup-netuix-1_0_0.xsd">
        <netuix:locale language="en"/>
        <netuix:markup>
        <netuix:borderLayout columns="3"
           title="Seven Layout" description="This layout has seven positions." rows="3"
                               htmlLayoutUri="/framework/markup/layout/seven.html.txt" layoutStrategy="title"
                               markupType="Layout" markupName="seven">
                <!--// Row One //-->
                <netuix:placeholder title="west" description="The left column in the first row."
                                    width="33%" flow="horizontal" usingFlow="true"
                                    markupType="Placeholder" markupName="rowOneColumn_left">
                </netuix:placeholder>
                <netuix:placeholder title="center" description="The middle column in the first row."
                                    width="34%" flow="horizontal" usingFlow="true"
                                    markupType="Placeholder" markupName="rowOneColumn_center">
                </netuix:placeholder>
                <netuix:placeholder title="east" description="The right column in the first row."
                                    width="33%" flow="horizontal" usingFlow="true"
                                    markupType="Placeholder" markupName="rowOneColumn_right">
                </netuix:placeholder>
                <!--// Row Two //-->
                <netuix:placeholder title="center" description="The only column in the second row."
                                    width="100%" flow="horizontal" usingFlow="true"
                                    markupType="Placeholder" markupName="rowTwoColumn_single">
                </netuix:placeholder>
                <!--// Row Three //-->
                <netuix:placeholder title="west" description="The left column in the third row."
                                    width="33%" flow="horizontal"
                                    markupType="Placeholder" markupName="rowThreeColumn_left">
                </netuix:placeholder>
                <netuix:placeholder title="center" description="The middle column in the third row."
                                    width="34%" flow="horizontal"
                                    markupType="Placeholder" markupName="rowThreeColumn_center">
                </netuix:placeholder>
                <netuix:placeholder title="east" description="The right column in the third row."
                                    width="33%" flow="horizontal" usingFlow="true"
                                    markupType="Placeholder" markupName="rowThreeColumn_right">
                </netuix:placeholder>
            </netuix:borderLayout>
        </netuix:markup>
    </netuix:markupDefinition>

    Have you created a custom skeleton file to render this particular layout ??
    If not, create a skeleton file with cutom prepended to the layout name. And here , just go with any HTML-Table based layout you want. The portal designer may not pick it up , but when its rendered, the layout turns up fine.
    HOpe this helps.
    If u need more help , lemme know,
    i will send over some files.

  • Need help creating a custom formula in a form

    I'm trying to create a custom formula for for our Order entry. I want to be able to put in the quantity, list price, and discount percent and have it calculate what the extended price will be? The formula I came up with was (ListPrice * Discount1/100)* Quantity1 but that didn't work.
    Here is what the spreadsheet looks like
    [IMG]http://i.imgur.com/JTV5QUW.png[/IMG]
    Does that make sense?

    Only if your discount percent field is formatted as "Number" and not as a 'Percentage".
    Images do not provide enough detail about the form, scripts, fields, field formats, etc to be much help.
    Are you getting any error messages in the JavaScript console?
    Change the format for the result field to "None" and observe the result.
    Your code is definitely not JavaScript that would work in an Acrobat form field.
    Are you using LiveCycle Designer to make your form?
    Are you using the "Simplified Field Notation" option?

  • Create a Custom Layout for page

    I'm trying following the example -> Example 7-4 Sample Code for the example.layout File
    [ http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14243/develop_ui_lookfeel.htm#i1045018 ]
    and in this way I create new Layout for my page
    <skeleton:control name="*table*" presentationContext="${layoutpc}" class="wlp-bighorn-layout"
    cellspacing="0" cellpadding="0" width="100%" >
    <c:set var="ph" value="${layoutpc.placeholders}"/>
    <c:set var="left" value="${ph[0]}"/>
    <c:set var="upper" value="${ph[1]}"/>
    <c:set var="lowerLeft" value="${ph[2]}"/>
    <c:set var="lowerRight" value="${ph[3]}"/>
    my problem now is that I'd like create new Layout with div without table
    because the requirement of my project is I can't use table for positioning portlet
    I can't foud document or example about it
    I'm looking forward to yearing from you soon, many thanks in advice

    I've found it's worthwhile spending time fiddling and adjusting Lightroom's templates and saving to Custom Pages but I haven't found a way of removing a custom page layout once I've finished using it or tweaked it some more. Can you say how to remove one, please, johnbeardy? I can put them in and out of Favourites but the Custom Pages list just gets too long.

  • How to create a custom layout with two rows

    hi ,
       i have a requirement of creating the portal page layout with two rows. First row has one container with 100% width and second row has 3 columns (30:40:30).
    How to create the layout?
    what are the modification in portapp.xml?
    Thanks and regards,
    Saravanan

    Hi,
    Check this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/efa44d27a21a7de10000000a422035/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/efbac120711a71e10000000a422035/content.htm
    Here is example portalapp.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <!THIS FILE IS A COPY OF THE ORIGINAL VERSION STORED IN THE PCD. PLEASE DO NOT CHANGE IT!>
      <application-config>
        <property name="Vendor" value="sap.com"/>
        <property name="SecurityArea" value="NetWeaver.Portal"/>
        <property name="SharingReference" value="com.sap.portal.htmlb,com.sap.portal.useragent,com.sap.portal.pagebuilder"/>
      </application-config>
      <components>
        <component name="fullWidth">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="1 Column (Full Width)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying one full-width column"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="fullWidth.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConF"/>
            </property>
          </component-profile>
        </component>
        <component name="light_fullWidth">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 1 Column (Full Width)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying one full-width column"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_fullWidth.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConF"/>
            </property>
          </component-profile>
        </component>
        <component name="narrowWide">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="2 Columns (Narrow:Wide)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the left"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="narrowWide.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_narrowWide">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 2 Columns (Narrow:Wide)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the left"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_narrowWide.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="wideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="2 Columns (Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the right"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="wideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_wideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 2 Columns (Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Two-column layout displaying the narrow column on the right"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_wideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="equalWidths">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="2 Columns (Equal Widths)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying two equal-width columns"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="equalWidths.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_equalWidths">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 2 Columns (Equal Widths)"/>
            <property name="com.sap.portal.pcm.Description" value="Layout displaying two equal-width columns"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_equalWidths.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="narrowWideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="3 Columns (Narrow:Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Three columns displayed in a narrow:wide:narrow layout"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld "/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="narrowWideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConM"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont3" value="column3">
              <property name="plainDescription" value="Column 3"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
        <component name="light_narrowWideNarrow">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="EPCFLevel" value="0"/>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Light 3 Columns (Narrow:Wide:Narrow)"/>
            <property name="com.sap.portal.pcm.Description" value="Three columns displayed in a narrow:wide:narrow layout"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="light_narrowWideNarrow.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="column1">
              <property name="plainDescription" value="Column 1"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConL"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="column2">
              <property name="plainDescription" value="Column 2"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConM"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont3" value="column3">
              <property name="plainDescription" value="Column 3"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlPageConR"/>
            </property>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    Greetings,
    Praveen Gudapati

  • Help creating a custom action

    I have a series of steps that I need to do for a large amount of PDFs. I figure the most efficient way to do this is to make a custom action so that I can just do it all in 1-2 presses of a button. However, Im having trouble figuring out how to do certain steps.
    1. OCR the document - done
    2. Add a drag and droppable signiture to the document  - Seems this cant be done via actions
    3. Flatten the document - done
    4. Send this document as an email to an address listed on the document and BCC a to a constant email.
    It seems like step 2 cant be done using actions, which sucks but no choice I guess, so that can be done manually. Step 4 though seems to be givng me some trouble and I think it should be doable. Ideally what I would like is for the user to select a string on the document, and that selected string would be copied to the to field of an email, concated with a domain name, and then a BCC field would be added. Because of this, I figure I would need to make 2 seperate actions. One for steps 1 and 2, then have the user select the email, then one for steps 3 and 4. But Im not sure how to get the email stuff working. Do anyone know how?

    You can use the JavaScript method this.mailDoc() to attach a copy of the currently-active PDF to your mail client. Getting the email address depends on where it is - form field contents are easy to extract with JavaScript but text on the page itself is next-to-impossible.
    See the SDK for details on how mailDoc() works - http://bit.ly/AXISDKH

  • Help creating a custom tag from a scriplet

    I am trying to make a cusom tag to replace this peice of code:
    <TABLE >
    <% 
    out.println("<TABLE >\n" +
                    "<TR BGCOLOR=\"#FFDDAA\">\n" +
                    "  <TH>ID Number\n" +
                    "  <TH>Artist\n"
    Iterator it = pricePassed.getpricePassed().iterator();
    while( it.hasNext() ){
       MySite.VideoBean vids = (MySite.VideoBean) it.next();
       out.println( "<TR>\n" +
                   "<TD><Center><B>" + vids.getRecId() + "</TD>" +
                    "<TD><Center><B>" + vids.getArtist() + "</TD>"
    </TD></TR>\n" );
    %></TABLE>The following is no where near perfect i just want to post it so i can get opinions to see if i am going about it the right way:
    import java.io.*;
    import java.util.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class TableTag extends BodyTagSupport {
    private List passedIn;
    public void setItems(List workon) {
      passedIn = workon;
    public int doAfterBody() throws JspException {
      BodyContent body = getBodyContent();
      String body1 = body.getString();
       body.clearBody();
      List list = body1.length() >0 ? text2List(body1) : passedIn;
      if (list == null) return SKIP_BODY;
      try {
        JspWriter out = body.getEnclosingWriter();
        out.println("<TABLE BORDER=1 ALIGN=\"CENTER\">\n" +
                    "<TR BGCOLOR=\"#AADDFF\">\n" +
                    "  <TH>Artist\n" +     
    Iterator it = passedIn.setItems().iterator();
    while( it.hasNext() ){
       MySite.videoBean vids = (MySite.videoBean) it.next();
       out.println( "<TR BGCOLOR=\"#FFAD00\">\n" +
                    "<TD><Center><B>" + vids.getArtist() + "</TD>"
    </TD></TR>\n" );
      } catch (IOException ex) {
        throw new JspTagException(ex.getMessage());
      } // try
      return SKIP_BODY;
    }

    If you go to the page where it lists all the forums and scroll way, way, down you will find there's a JSP forum. That is really where you should post this kind of question.

  • Creating customized Layout

    Hi Experts,
    My requirement is to create a customized layout.
    How can i create a layout and integrate it in portal.
    points will b awarded for answers
    Thanks in Advance
    Suba

    hai suba,
    i have given some sample code for creating custome layout.
    sample.jsp
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibHtmlb" prefix="hbj" %>
    <%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
    <%@ page import="com.sapportals.portal.pb.layout.taglib.variabledef.RunMode" %>
    <lyt:template>
        <hbj:content id="myContext" >
            <hbj:page title="Portal Page">
            <table width="100%" height="*" border="2">
               <TR>
                  <TD width="50%" valign="top" align="center" ><lyt:container id="search" /></TD>
                   <TD valign="top"  width="50%" align="center"><lyt:container id="contentarea" /></TD>
                  </TR>
              <TR>
              <TD width="100%" valign="top" align="center" colspan="2"><lyt:container id="result" /></TD>
                  </TR>     
               </table>
         </hbj:page>
        </hbj:content>
    </lyt:template>
    portlapp.xml
    <?xml version="1.0" encoding="utf-8"?>
    <application>
      <application-config>
        <property name="Vendor" value="sap.com"/>
        <property name="SecurityArea" value="NetWeaver.Portal"/>
        <property name="SharingReference" value="com.sap.portal.htmlb,com.sap.portal.pagebuilder"/>
      </application-config>
      <components>
        <component name="AddBooksLayout">
          <component-config>
            <property name="ClassName" value="com.sapportals.portal.pb.layout.PageLayout"/>
            <property name="ResourceBundleName" value="pagebuilder_nls"/>
            <property name="SafetyLevel" value="no_safety"/>
          </component-config>
          <component-profile>
            <property name="ComponentType" value="com.sapportals.portal.layout"/>
            <property name="com.sap.portal.pcm.Title" value="Custom Layout"/>
            <property name="com.sap.portal.pcm.Description" value="Layout of two rows where the second column has been merged"/>
            <property name="com.sap.portal.reserved.layout.TagLibLayout" value="/SERVICE/com.sap.portal.pagebuilder/taglib/layout.tld"/>
            <property name="com.sap.portal.reserved.layout.TagLibHtmlb" value="/SERVICE/com.sap.portal.htmlb/taglib/htmlb.tld"/>
            <property name="com.sap.portal.reserved.layout.TemplateFile" value="AddBookLayout.jsp"/>
            <property name="AuthScheme" value="anonymous"/>
            <property name="com.sap.portal.reserved.layout.Cont1" value="search">
              <property name="title" value="Search Area"/>
              <property name="orientation" value="vertical"/>
              <property name="designClass" value="prtlHeaderCon"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont2" value="result">
              <property name="title" value="Results to Display"/>
              <property name="orientation" value="vertical"/>
            </property>
            <property name="com.sap.portal.reserved.layout.Cont3" value="contentarea">
              <property name="title" value="Content to Display"/>
              <property name="orientation" value="vertical"/>
            </property>
          </component-profile>
        </component>
      </components>
      <services/>
    </application>
    use the above code as sample and create ur own layout as per ur wish.this is a simple one.if u want more customization refer the following link.
    http://help.sap.com/saphelp_nw04s/helpdata/en/42/efe25b0d301aa2e10000000a422035/frameset.htm
    after creating par file upload it to portal and create a new layout using it.
    for uploading par file refer the following blog
    Tag Libraries: Creating a new SAP NetWeaver Portal framework page

  • How to force a Custom Layout in the links sent by e-mail ?

    Hi everyone,
    For customizing the final user´s view for Discussion Groups,
    I created a custom Layout Set "myDiscussionGroupsContributor"
    that references a custom Collection List Renderer
    "myDiscussionGroupWithoutTopicsContributorCollectionListRenderer"
    that references a custom Command "my_join_discussion_thread_contributor"
    that has a custom Layout Set assigned "mySingleDiscExplorerContributor".
    When accessing the discussions via the final users it works fine
    (I´ve already corrected the "Back" link problem acording thread
    problem with discussion group contributor iview)
    The problem is that when I send a discussion via e-mail
    to another user using the "send to" command,
    the received link opens the discussion using the default
    "DiscussionGroupsContributor", in fact, the e-mail´s HTML code
    contains the property "rndLayoutSet=SingleDiscExplorerContributor"
    as noted in the following href element:
    href="http://myportal:50000/irj/servlet/prt/portal/prtroot/
    com.sap.km.cm.navigation/discussiongroups/
    80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc?
    StartUri=/discussiongroups/80b935d9-90a8-2810-17a6-c88c15fd350b/
    324e1175-98a8-2810-16a2-ee1c1f9c54bc.dsc&
    rndLayoutSet=SingleDiscExplorerContributor&scHeight=300&
    scWidth=220&scPostListWidth=500" target=_blank
    The same happens with the link in the subscriptions list.
    Does anybody know how to set the layout in these links ?

    Hi all,
    I solved the problem, so here I post the steps for the solution I found.
    1) Modify the Object Type Definitions:
    In the CM Repository there is a folder root > etc > oth.
    There you have to change the LayoutSet settings in the following files
    (I don´t know if it is necessary to modify all of them):
         - discussion_post.oth
         - discussion_topic.oth
         - discussion.oth
         - discussiongroups_items.oth
         - discussionPostType.oth
         - discussionType.oth
         - dscGroupsCollType.oth
         - dscGroupsItemsType.oth
    2) Then you have to reload de OTH settings:
    In the Content Management configuration (System Administration >
    System Configuration > Content Management)
    go to User Interface > Debugging Settings and edit the configuration.
    Add your user id to "UI Superusers" then enable
    "Enable Rendering Information" and save.
    Then go to a KM and clic on "Rendering Information"
    (If the link doesn´t appear, refresh your window).
    A new window opens, clic in "OTH-Overview"
    and then in the new window click on "Reload".
    Finally close all popup windows and go to the
    Debugging Settings again to disable the checkbox
    "Enable Rendering Information"
    For further information you can read:
    http://help.sap.com/saphelp_nw04/helpdata/en/02/e4e25538f7274eb08b317751f2f04b/frameset.htm
    and
    http://help.sap.com/saphelp_nw04/helpdata/en/f4/2c6b2089cc784bb384a7ea058de50d/frameset.htm
    I hope someone find this thread useful.
    Daniel Sacco

  • Custom Layout for FBL1N (Open Vendor Items)

    Hi All,
    I would like to create a custom layout for the List Output.  Currently there is only options as to display the Standard Local currency, I would like to include the value for the Document Currency (Transaction Currency) as well.  Does anyone have come across this before?  Thanks.
    Thanks.

    Hi,
    Creating a layout for any report is very easy.
    Go to TCODE FBL1N, in the output screen, below the menu options, you will find few buttons. you will find the button select layout, click on any one layout, and then click on the button select fields and copy the hidden fields from the select fields option,  add the fields you wish to add and then save the layout with a new name. Or you can also go through menu options - Settings ==> Special Fields - Include your special fields from the available tables. (This is cross client configuraiton)
    hope this helps
    regards,
    radhika

  • KM Folders options setting (Custom Layout Set) ???

    Hi All,
             We are working on EP 7.0 (NW04s SP10).
    We have a KM repository. (As a File system).
    It has some default options as:
    Content Management > KM content > Documents > right click & go to details.
    And we will get the default options as View Actions Collaboration Settings & few more sub-options under that.
    <b>Now My Question is: How to disable some of these options?</b>
    Do we have to create separate Custom layout?
    (e.g:- I would like to disable the option of <b>Send To</b>)
    Regards
    Sunil Kulkarni

    Hi,
    The Details screen's menu contains several command groups. You just have to remove the command from the appropriate command group.
    It is better if you create your own layoutset for that.
    check this out:
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/9d/233f989a5ba64fa44ed6e0823286ee/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/9d/233f989a5ba64fa44ed6e0823286ee/frameset.htm</a>
    Best Regards,
    Avishai Zamir

  • Customized Layout

    Hi,
    i have created one customized layout.
    i created a .layout and .txt files for the layout.
    for a page when i selected the new layout its coming correctly.
    The problem is, when i put the portlets in side the layout, all the portlets are coming in a single row.
    herewith i have attached the files.
    pls help me to resolve this problem.
    <b>.txt file</b>
    <table class="portalLayout" id="digitalLibrary3" width="100%" height="100%">
    <tr>
    <td class="placeholderTD" valign="top" width="100%" colspan="3">
    <placeholder number="0"/>
    </td>
    </tr>
    <tr>
    <td class="placeholderTD" valign="top" width="30%" rowspan="2">
    <placeholder number="1"/>
    </td>
    <td class="placeholderTD" valign="top" width="70%" colspan="2">
    <placeholder number="2"/>
    </td>
    </tr>
    <tr>
         <td class="placeholderTD" valign="top" width="50%">
    <placeholder number="3"/>
    </td>
         <td class="placeholderTD" valign="top" width="20%">
    <placeholder number="4"/>
    </td>
    </tr>
    </table>
    <b>.layout file</b>
    <?xml version="1.0" encoding="UTF-8"?>
    <netuix:markupDefinition xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0 markup-netuix-1_0_0.xsd">
    <netuix:locale language="en"/>
    <netuix:markup>
    <netuix:borderLayout
    title="digitalLibrary_layout4" description="This layout has 4 border placeholders and 1 center placeholder. The north and south
    placeholders span the length of the table. The west, center, and east placeholders comprise the middle row and have
    respective widths of 30 and 70. The north and south portlets flow horizontally in the placeholders, and the others
    flow vertically."
    layoutStrategy="order" htmlLayoutUri="/framework/markup/layout/digitalLibrary_layout4.html.txt"
    markupType="Layout" markupName="digitalLibrary_layout4">
    <netuix:placeholder title="north" description="The north border placeholder in this layout."
    flow="horizontal" usingFlow="true" width="100%"
    markupType="Placeholder" markupName="layout4_north">
    </netuix:placeholder>
    <netuix:placeholder title="west" description="The west border placeholder in this layout."
    flow="vertical" usingFlow="true" width="30%"
    markupType="Placeholder" markupName="layout4_west">
    </netuix:placeholder>
    <netuix:placeholder title="center" description="The center placeholder in this layout."
    flow="horizontal" usingFlow="true" width="70%"
    markupType="Placeholder" markupName="layout4_center">
    </netuix:placeholder>
    <netuix:placeholder title="east" description="The center placeholder in this layout."
    flow="vertical" usingFlow="true" width="50%"
    markupType="Placeholder" markupName="layout4_east">
    </netuix:placeholder>
    <netuix:placeholder title="south" description="The center placeholder in this layout."
    flow="vertical" usingFlow="true" width="20%"
    markupType="Placeholder" markupName="layout4_south">
    </netuix:placeholder>
    </netuix:borderLayout>
    </netuix:markup>
    </netuix:markupDefinition>

    In the previously exising portlets remove <netui:html>, <head> and <body> tags from respective jsps. Actually it is best practice to remove these tags in a JSPs that are created in workshop. Since individual portlets' <head> and <body> tags conflict with the portal's tags, you get unwanted behavior. I dont think there is anything wrong with your .layout and .txt files.
    --SJ                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Custom Layout Template

    Hi, created a custom layout par file base on the com.sap.portal.layouts.default.par which uses two tabs.
    Each of the tabs has a title e.g. my details or my reports.  Example of the HTMLB code is below
    <hbj:textView id="mytabText1" encode="false">
    <% mytabText1.setText(tabText1);%>
    </hbj:textView>
    The portalapp.xml has also been created as such with a reference to the tab title
    <property name="tabText1" value="Tab 1">
    <property name="personalization" value="dialog"/>
    <property name="inheritance" value="non-final"/>
    <property name="type" value="String"/>
    <property name="plainDescription" value="Tab 1"/>
    <property name="longDescription" value="The first tab text"/>
    </property>
    To display the custom page layout, I create a new page template and base my page on that template, which works.  However to change the title of the tab requires me to change the template.  What I would like to do is inherit the title or description of the iViews which populate the page into the tab titles.  Thanks for any help in advance.  Brian

    You can write a liitle javascript. Look at the generated html code. Find Tab's name id.
    document.getElementById('Tabsid').value = document.title;

  • Uccx 7 custom layout - outbound campaigns

    hi, i created a custom layout, now how do i make for the outbound campaings use my custom layaout? by default the outbound campaigns are using de OODefault. i  can not modify the default because i need this for another outbound campaign also.
    thanks

    Glenn,
        Are all of the contacts and the UCCX server in the US or overseas?  I'm not completely sure what you are asking about presenting the call.  The dialer in UCCX is not a predictive dialer but instead a presentation based dialer where the agent is presented with the call and then has to disposition it.  There isn't a way to change this in UCCX, only in the UCCE product line.  Can you elaborate a bit on what you are doing?  Also, can you either upload the MIVR logs from the period when you were trying to dial or read through them and see what errors are being presented?  These logs are usually pretty easy to read through and you should be able to figure out the exact failure cause.
    Regards,
    Robert W. Rogier

Maybe you are looking for

  • How to restore image after Set Text of Container behavior

    Hi there, I'm not sure how to apply the Set Text of Container behavior. Basically, when I mouse over an image, I want a larger version of the image with decription text to appear.  I also want to restore the original image without text on mouse out.

  • Can't get pdf to open in mac

    i am working from a vista machine, acrobat pro 9. my files can't be read in a mac? any solutions?

  • Fonts not appearing in Classic

    When I open up a program in Classic, only a few fonts appear. I have my fonts in the fonts folder in System 9. Help!

  • Some purchases not displaying on Mac

    Hi. I have bought Logic Pro 9 in 2012. I have reinstalled my Macbook-Pro. I have gone to the MAC App store and clicked on "Purchases" Everything is displaying except Logic Pro 9 Support tried to help me 3 times previously but it seems to be a technic

  • Cannot download JDev  10g (10.1.3) - Developer Preview

    I go through all the pages : login / privacy / yara...yara...yara and on: http://www.oracle.com/technology/software/products/jdev/htdocs/soft1013java.html I try to click on http://download.oracle.com/otn/java/jdeveloper/1013/jdevjavabase1013.zip but