How to auto adjust layout in bsp page

hi
i have created a bsp page , in diffrent resolution screen its displaying siffrent every time
is there any techniue by which my layout autoadjust with any resolution.
thanks

hye prasanth,
  you can always use html commands in your bsp layout.
<table>
<tr>             -- new row
<td>
-htmlb coding
</td>
</tr>
use attributes in <td> like --  width , valing etc..
hope this is helpful
thanks,
Imran.

Similar Messages

  • How to return values from a BSP page to Javascript

    Hi All,
    I want to call a BSP page which reads a single value from a table and returns that value I want the Javascript in the HTML code to get the value from the BSP page.
    Can you kindly let me know how I can return the value from the BSP page to JavaScript.
    Kindly please provide me a simple code of a BSP page and the Javascript
    Thanks
    Karen

    Hi,
    you need 3 elements to make the javascript code read the value in any field in the table: table´s name, line and column. This is how your code could look like:
    script language="javascript>
       var row = 0;
       function display(){
          row = row + 1;
          campo = 'tabla1_' + row + '_4';                 " <-- table, line, column
          valor = document.getElementById(campo).value;
    </script>
    ROW works as a counter. You have in variable valor the value of the field and can do with it what you want, perhaps display it with ALERT. I am reading the values from field 1 to n in column 4 in table TABLA1. Pay attention to the '_' in the concatenation of field´s name. The table in my BSP is very simple:
    <htmlb:tableView id                = "tabla1"
                           table             = "<%= mytable %>"
                           width             = "100%"
                           allRowsEditable   = "X"/>
    and somewhere I must call function display in my javascript code:
    <htmlb:button  id="boton" text="Texto aqui" onClientClick="display()" />
    So, give it a try.

  • How to auto adjust the height of my div tag?

    This is my website www.whistleandlisten.com
    The white background is a div tag and whenever I add new content within the div tag I want it to auto adjust to extend the white div tag down as the page gets longer. I have tried css and set my height to auto but that makes it disappear. Right now I have to set it to a certain amount of pixels which gets annoying and sometimes I forget to after adding lots of content. PLEASE HELP.

    To have an extensible height element, you should not apply the height property as you have done starting at line 9 of songcss.css
    #whitediv
      position: absolute;
      left: 50%;
      margin-left: -490px;
      top: 0px;
      width: 950px;
      height: 2900px;
      z-index: 1;
      background-color: #ffffff;
      background-image: none;
      background-repeat: repeat;
      background-attachment: scroll;
      background-position: 0% 0%;
      background-clip: border-box;
      background-origin: padding-box;
      background-size: auto auto;
      color: #ffffff;
      box-shadow: #ffffff;
      overflow-x: visible;
      overflow-y: visible;

  • How to send/set parameter from BSP page to iview

    Dear Expert,
    Can advise me how to send or set parameter from BSP page to iview ?
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/bsppage.htm?lv_param=xxx
    I want to view my bsp page in portal but with parameter value.
    I can open my bsp page without parameter value like link below :
    http://xxx.xxx.com/irj/portal?navigationtarget=roles://pcd:portal_content/FLD.ObjetLibrary/FLD.Iviews/FLD.CRM/ET/
    Thnx & Regards,
    Pieter

    Hi,
    your BSP page get's integrated via an iFrame. So, simply speaking, it's not possible to pass an parameter back.
    But what you can try is to use the Portal DataBag component. In the BSP page, store the information you want to pass in the browser. The iView/Portal than has to check if there is a new parameter / value stored.
    SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/frameset.htm
    br,
    Tobias

  • How to auto adjust images in imageJ?

    Hello,
    I would like to know How can I adjust the contrast and brightness in imageJ using a Java application?
    imageJ has ContrastAdjuster.java and inside it an autoAdjust function which is not public, so I cannot call it? any one has experience with this?
    Best Regards,

    Your calling class needs to be at that access modifier allowance ,
    since your caller probably isn't,
    you can make a small class with that access level(no specifier - is between protected and private) to join it that you can reference with your caller package level,
    or probably better, a nested class of that access level in your caller class with global scope instantiation in your caller.
    *// not all syntax is here - This just to give you a guide of the type of access specifier shuffling and reprocessing to obtain the methods variables at the same level as obtaining the ability to call the method , it may be more practical to target the class in imageJ that instantiates the ContrastAdjuster class and simply obtain its reference to ContrastAdjuster*
    *//ContrastAdjuster adj - should be passed from wherever it is instantiated , presumably its in a higher level class frame in the application*
    public class IwasCalling{
    CallAutoAdjuster callAUTContraster;
    public IwasCalling(ContrastAdjuster adj){
    callAUTContraster = new CallAutoAdjuster();
    //start nested class
    class CallAutoAdjuster{
    void callAutoAdjuster(){
    autoAdjust(imp,ip); // ImagePlus imp , ImageProcessor ip
    }//end method
    }//end nested
    }//end iwascalling
    Edited by: 893871 on Nov 3, 2011 6:53 PM
    After taking a good look at the .java files
    --i find the doAutoAdjust variable requires to be set in the public class ContrastAdjuster and call notify()--
    ..and i have no idea how i lost the plot there... it was the contrast slider value you wanted
    so a method would be from some class you create
    // contr is the reference to the ij plugin frame extended from JFrame that ContrastAdjuster.java extends from
    public int adJustContrast(int slideVal){ // this listener method sets an int in  ContrastAdjuster public synchronized void adjustmentValueChanged(AdjustmentEvent e)
    // with the line contrastValue = contrastSlider.getValue();
    // int sliderRange = 256; this global int is divided by two appears to be the Max for contrast and the or a scrollbar appears to be a make-shift slider value changer
    contr.contrastValue = slideVal; // global accessible int in ContrastAdjuster
    return contr.contrastValue;
    public boolean adjAuto(){
    contr.doAutoAdjust = true;
    return contr.doAutoAdjust;
    public void updateNotifyComm(){ // now update the app
    contr.notify();
    //............... so you would call from somewhere to do it by this after making those methods
    adJustContrast(contr.contrastSlider.getValue());
    updateNotifyComm(); // or just running code of contr.notify();
    // i have no idea how that became boolean  doAutoAdjust in my mind
    // for auto adjust
    adjAuto();
    updateNotifyComm();Edited by: 893871 on Nov 3, 2011 8:15 PM
    Edited by: 893871 on Nov 3, 2011 8:17 PM
    Edited by: 893871 on Nov 3, 2011 8:23 PM

  • How to create an url for bsp page to access in IE?

    hi friends,
    I am new to BSP topic.
    I have created 4 BSP pages. and 1 Main BSP page. Now in Main BSP page i attached all the 4 BSP pages links.
    Now when i test the Main BSP page it will show all the 4 BSP page links. All are working fine.
    But the end user has to access this through IE by typing Main BSP page full path. It's some what becoming critical to enter full path. It will be access in internally(intranet) only not outside.
    For this i want create an URL like http://empess.
    When the user type this URL http://empess in IE and press enters then my main BSP page has to open.
    How to do this. any helps will appreciate...
    Regards,
    Shree.

    hi,
    As u said i created External Alias as /ITCESS to my BSP application.
    And i select my BSP application name from the Target Element tab. Then i selected the alias name i right clicked on it, i selected TestExt. Alis option. It's working fine.
    But now the problem is, i want this to display in IE direclty, when user type the /ITCESS in Internet Explorer addres bar.
    Regards,
    shankar.

  • How to auto adjust container dimensions

    Is there a property I can set on Canvases, Panels, or other containers that would make them auto-adjust their height/width dimensions based on the child components.  Basically, I would like for this to happen at load AND during run time.  So if you update a Text control in a Canvas container it will resize itself so you can see everything.
    Or do I have to write some complicated function to do this?

    Sorry, I answered my own question about 2 minutes after asking it.  When I got rid of the "width = 100%" attributes from the Text controls it worked.  You also have to make sure you dont initially set the width and height values for the container.

  • How to Print 2 layouts in One Page

    Hi Experts!
    As a customer requirement, I defined an half page Invoice Layout but when I printing it, it gets the hole page to print it.
    What the customer needs is to print 2 invoices in only one page. It is possible to do that?
    Advice me please!!
    Thanks
    Claudia P. Gutiérrez

    Hi,
    I think it's more of a printer setting, but probably it's not possible to set a normal laser printer to do this but could be possible with a dot matrix printer.
    Anyway, you could try to change the printer settings and the page settings from SAP, for example changing the paper size and then changing how many pages to print on one page - this setting usually offers printing two pages on one paper next to each other only but not below each other, but it's worth to give a try.
    Regards,
    Nat

  • How to repeat template layout in new pages?

    I want to make a very simple storyboard layout with three rows dividing the page horizontally and one vertical line a third of the way from the left margin.
    I did this and saved it as a template but the layout only shows up on the first page.  If I add a page before or after the page with the layout, Pages gives me a blank page.
    I would like the layout to repeat each time I add a page.  Is this possible? If so how?
    Cheers,

    Section Masters have static uneditable items on every page, really just watermarks.
    I take this back. It won't work in Layout mode documents but in Word Processor documents:
    1. Add a vertical rule with the Shapes tool.
    2. Add either 3 text boxes or a 3 row table
    3. Select all the above: Menu > Arrange > Section Master > Move Objects to Section Master/Make Master Objects Selectable
    4. Insert a Section Break on each page. It has to be a Section break otherwise editing the Master Objects will repeat on previous pages.
    This has been always the absolute worst part of Pages 5 and I really can't figure out how anyone at Apple thought this was good design.
    This was all resolved 30 years ago in PageMaker, Ready-Set-Go, and several other DTP Apps. Not to mention it worked very effectively in Pages '09.
    I admit the Captured Pages implementation in Pages '09 is less than obvious, but its function once set up is way faster than anything else I know.
    Peter

  • How to auto adjust the size of a drop-down

    I used to have a table inserted in all of my drop-downs and then I had all of my text and images inside of this table.  The table would automatically resize based on the width of the largest image in that drop-down.  The text would adjust accordingly as well.  Unfortunately, I have to remove the table from all of my drop-downs because Adobe has not fixed the bug that I reported in RoboHelp 8.  If I have a bulleted or numbered-list in a table that is in a drop-down then when I generate to Word RoboHelp adds an extra bullet before and/or after the drop-down.  Since they did not fix this in RoboHelp 9 either, I'm having to remove all of my tables in my drop-downs.  Peter Grainge gave me some changes for my style sheet to make a border appear in my drop-downs so that I don't have to use the table for this part anymore.  The only problem is that when I generate WebHelp the border is staying a defined width and the text is staying within that width, but the image is much larger.  This is a problem in IE and Firefox.  Is there a way to get my border in my drop-downs to resize to the size of my image, just as I got the tables to do?  I would just set my table size to 95%, and that did the trick.  I do not know how to do this with the style sheet for a drop-down.
    Here is the text Peter gave me for my style sheet back in December of 2010:
    DIV.droptext {
    font-size: 10pt;
    border-left-style: Solid;
    border-right-style: Solid;
    border-top-style: Solid;
    border-bottom-style: Solid;
    border-left-color: #656598;
    border-right-color: #656598;
    border-top-color: #656598;
    border-bottom-color: #656598;
    padding-left: 10px;
    padding-right: 10px;
    border-left-width: 2px;
    border-right-width: 2px;
    border-top-width: 2px;
    border-bottom-width: 2px;
    padding-top: 10px;
    padding-bottom: 10px;

    Hi,
    Try to add "display: inline" to the css:
    div.droptext {
        font-size: 10pt;
        border: 2px solid #656598;
        padding: 10px;
        display: inline;
    This will force the dropdown to render as a 'normal' text element instead of a block.
    Greet,
    Willam

  • How to auto adjust number of rows in DataGrid

    Hi,
    Is there any way using which the number of rows displayed in DataGrid can be adjusted automatically?
    I have an application in which initially the DataGrid  is populated with just 2-3 records, and in the course of running of the application, more records are added.
    Initially, I do not wish to have the additional blank rows. How can this be done?
    Thanks

    If I understand you correctly, you can probably work with the .rowCount property of your datagrid. Default is 4 including the header.
    See http://www.adobe.com/livedocs/flex/3/langref/mx/controls/listClasses/ListBase.html#rowCoun t

  • How to delare function module in BSP page

    hi
    i m using FM in bsp psge
    CALL FUNCTION 'TB_DOMAINVALUES_GET'
                                EXPORTING
                                  DOMAIN        =
    *                             LANGU         = SY-LANGU
                                TABLES
                                  T_DD07V       = gtab
    which is giving error massage
    Fields "Tables" is unknown .It is nither one of the specific tables nor defined by "Data" Statement .
    how to solve it
    thanks

    Hi Prashant,
    FMs are used in BSP as we do in ABAP.
    In your code thers no value for exporting parameter DOMAIN , probably that is the reason of this error.
    Search the forum before posting a question.
    Appreciate all helpful asnwers.
    Regards,
    Anubhav

  • How to change default layout of "personal pages"?

    Hello everybody,
    I configured my portal instance to automatically create new "personal pages" for new portal users. This works fine.
    However...
    can anyone give me a hint whether it is possible to change the initial layout of (i.e. locate and edit the template for) these new "personal pages"?
    And, in addition, is there a place to configure that users are redirected to a custom start page after logging in?
    Thank you very much for any help,
    Eckhard

    Hi Eckhard -
    To change the template used for Personal pages, follow the path
    Page Groups > Shared Objects > Templates
    and edit the "Template for Personal Pages" template.
    Hope this helps,
    Candace

  • How to Auto Select some RadioButton on page load using ADF/JSF

    Hi,
    I am learning ADF and need some help. I have multiple radio buttons and couple of text boxes on my page. How can I make some radio button be selected based on some value from a database table and also populate the text boxes with the corrosponding value when a page loads. Any tips on how it can be done using ADF. Any sample tutorial will be helpful.
    Thanks

    Hi,
    when you e.g. use ADF BC then the radio button should be selected automatically based on the value of the attribute. If the row is new then you can have a default value specified in the ADF BC ViewObject attribute.
    However, if you just dragged the radio button and checkboxes onto the page - not using any ADF binding - then you will have to create a managed bean with a field variable (incl. setter/getter methods) to link the radio button's value property to it using Expression Language
    Frank

  • How to auto format text with new Pages?

    I lost my 'auto format' of fractions with the new version of Pages.  Before I would type "1/2" and it would appear as "½".  Where is that feature located in the new version of Pages?

    You can load these manually through System Preferences>Keyboard>Text in conjunction with the relevant characters that can be found using Character Viewer (use the search window in Character Viewer to find "half" etc.)  Cumbersome I know but it is a one time set up.

Maybe you are looking for