JS CS3 ScriptUI layout options

I've been working through the examples and docs and found there are a few ways you can lay out components in the dialog.
Here is the first example of a simple dialog with 2 drop menus and static text for each. I've aligned them to the right but it just does not look correct.
var myDialog = new Window('dialog', ' Details');
myDialog.fDetails = myDialog.add('panel',undefined,'File details');
myDialog.fDetails.alignChildren = 'right';
    myDialog.fDetails.fPath = myDialog.fDetails.add('group');
    myDialog.fDetails.fTitle = myDialog.fDetails.add('group');
    myDialog.fDetails.fPages = myDialog.fDetails.add('group');
    with (myDialog.fDetails){
    fPath.st  = fPath.add('statictext',undefined,'Path:');
    fPath.dd = fPath.add('dropdownlist', undefined, undefined, {items:["C:", "D:","E:", "F:", "G", "H", "I"]})
    fTitle.st  = fTitle.add('statictext',undefined,'Current Doc Title:');
    fTitle.dd = fTitle.add('dropdownlist', undefined, undefined, {items:["Product1", "Product2","Product3"]})
myDialog.show();
In the second example I've used the coordinates to lay out the dialog and achieve the look I want but it took some playing around to get there. The static text and drop menus line up nicely.
var myDialog = new Window('dialog', ' Details');
myDialog.fDetails = myDialog.add('panel',[0,100,200,190],'File details');
    myDialog.fDetails.pathName  = myDialog.fDetails.add('statictext',[70,15,100,35],'Path:');
    myDialog.fDetails.pathNameDrop = myDialog.fDetails.add('dropdownlist', [105,12,145,32], undefined, {items:["C:", "D:","E:", "F:", "G", "H", "I"]});
    myDialog.fDetails.docName = myDialog.fDetails.add('statictext',[10,45,100,60], 'Current Doc Title:');
    myDialog.fDetails.docNameDrop = myDialog.fDetails.add('dropdownlist',[105,42,180,62], undefined, {items:["Product1", "Product2","Product3"]});
myDialog.show();
To achieve the look of the second option using the first method (not coordinates) is it possible to set the static test in one column and align it to the right and set the dropmenus in a second column and align them to the left? This would be easier but is it possible?
Cheers, John.

Here's my Code created with RapidScriptUI application
var rapidDlg = new Window('dialog',"<Replace Me>",undefined);
buildWindow();
rapidDlg.show();
function buildWindow(){
rapidDlg.orientation = "row";
// Properties for rapidDlg.Group1
rapidDlg.Group1 = rapidDlg.add('group',undefined);
rapidDlg.Group1.alignment = [' ','fill'];
rapidDlg.Group1.alignChildren = ['right','fill'];
rapidDlg.Group1.orientation = "column";
// Properties for rapidDlg.Group1.StaticText2
rapidDlg.Group1.StaticText2 = rapidDlg.Group1.add('statictext',undefined,"short");
// Properties for rapidDlg.Group1.StaticText3
rapidDlg.Group1.StaticText3 = rapidDlg.Group1.add('statictext',undefined,"this is medium");
// Properties for rapidDlg.Group1.StaticText4
rapidDlg.Group1.StaticText4 = rapidDlg.Group1.add('statictext',undefined,"this is a very long string");
// Properties for rapidDlg.Group2
rapidDlg.Group2 = rapidDlg.add('group',undefined);
rapidDlg.Group2.alignment = [' ','fill'];
rapidDlg.Group2.alignChildren = ['fill',' '];
rapidDlg.Group2.orientation = "column";
// Properties for rapidDlg.Group2.DropDownList1
rapidDlg.Group2.DropDownList1 = rapidDlg.Group2.add('dropdownlist',undefined,undefined, {items:['this contains very long strings']});
// Properties for rapidDlg.Group2.DropDownList2
rapidDlg.Group2.DropDownList2 = rapidDlg.Group2.add('dropdownlist',undefined,undefined, {items:['short']});
// Properties for rapidDlg.Group2.DropDownList3
rapidDlg.Group2.DropDownList3 = rapidDlg.Group2.add('dropdownlist',undefined,undefined, {items:['This contains medium']});
or you can try
'rapidDlg.Group2.alignChildren = ['left',' '];
if you want left aligned not justified
Steven
http://scriptui.com

Similar Messages

  • IN ALV Report 'SAVE LAYOUT' option missing

    Dear All,
                 I have created one report in ALV GRID using ABAP OBJECTS(Using class CL_GUI_CUSTOM_CONTAINER and
    CL_GUI_ALV_GRID).But in output when i click on change layout option i am not getting SAVE layout option.
    I have already passed I_SAVE parameter = 'A' while calling metod SET_TABLE_FOR_FIRST_DISPLAY. But i didnt worked.
               Please do needful.
    Regards,
    Mayank

    Hi,
    You can manage display variants by using parameters, “is_variant” and “i_save” of “set_table_for_first_display”. Here are options for variant handling. <structure_name> is the variant-defining structure of type “DISVARIANT”. The field “report” in this structure should contain the value of “sy-repid.”
    Hope this helps. Reward points if helpful.
    Thanks,
    Balaji

  • Error While selecting Layout option in tcode SFP

    Hi
    I am getting the below error when i select the layout option in tcode SFP.
    Could not start Layout Designer (see long text)
    Message no. FPUIFB086
    Diagnosis
    The forms design tool for developing the form layout could not be started; either it is not installed or there are errors in the installation.
    Procedure
    Make sure that you have the forms design tool installed on your desktop (the tool is part of the SAPGUI installation).
    Also read SAP Note 801524.
    How to resolve this error?
    Regards,
    Abdul Hakim

    Hi Hakim,
    See the sap note below:
    Symptom
    Presentation CD 1 "SAP GUI for Windows 6.40" Compilation 3 references this note for additional components.
    For information about where to find the successive version of the installation component
    "Forms Design Tool" - "Adobe Forms Designer"
    refer to Note 962763.
    Reason and Prerequisites
    This note describes two possible installation procedures:
    Direct installation on the workstation
    Update installation server (for administrators)
    Solution
    Direct installation on the workstation
    Product: "SAP Interactive Forms" - "Adobe LiveCycle Designer"
                  Start "ALDsetup. exe" directly on your workstation. If you had already installed an older version of "Adobe Designer 6.0" using "SAP GUI" or "SAP NetWeaver Development Studio", you first need to delete the older "Forms Design Tool" version in the corresponding installation.
    Update installation server:
    If you have integrated an SAP GUI installation server with
    6.40 Compilation 3
    6.40 Compilation 2
    6.20 Compilation 6
    you can add the following product:
    Product: "SAP Interactive Forms" - "Adobe LiveCycle Designer":
                  To do this, start the program
                  "..\setup\ALDtoGUIServer.exe"
                  and specify the network path for an existing SAP GUI installation server. After this procedure, you can see the new "Interactive Forms" component in the component selection dialog box of the SAP GUI installation when you attach a new installation package with SAPAdmin. The installation on the workstation is then started as usual using "setup.exe" or "netsetup.exe".
    Caution:
    Some files on your existing installation server may still be write-protected (read-only).
    Make sure that all files in the two directories
    "...\Adobe\"
    "...\Common Files\"
    are not write-protected.
    To do this, open a DOS box (input request) and switch to the directory of the installation server and set
    attrib -r /s "Common Files\*.*"
    attrib -r /s "Adobe\*.*"
    before you start "..\setup\ALDtoGUIServer.exe".
    Otherwise, you may receive the following error message:
    "... .cab cannot be extracted. It may be corrupt."
    Regards,
    Md Ziauddin

  • The layout options in the newest version of iPhoto the menu are grayed out.

    Can anyone tell me how the layout options work in the new iPhoto version.

    Layout options for what?  Which iPhoto are you referring to?  iPhoto 2 for iOS or iPhoto 9.5 on the Mac? 
    OT

  • Standard Report not Displaying 'SAVE LAYOUT' Option

    Dear All,
    Using Tcode VF44, i am getting output list.But in that list when i click on select layout option from toolbar its not displaying 'save layout' Option. can anybody give me soln for the same.How can i get that option?
    Regards,
    Mayank

    hi ,
    it depends on the user parameters.
    U have to identify the parameter id and u have to activate it in user maintainance partameters .
    su01 -> parameters.
    ex .  parameter id ->  SD_VARIANT_MAINTAIN -> X
    so u can save layout now.
    regards,
    manikandan

  • How can we create save layout option in grid tool bar

    hi,
    how can we create select layout option in grid tool bar to save my own layout. if any one knows tell me immediately
    thanks

    Hi again,
    1. We need to do 1 additional thing.
    data : GS_variant TYPE DISVARIANT.
    GS_variant-REPORT = sy-repid.
    2.  while calling pass this parameter also.
         IS_VARIANT                    = GS_variant
    It will work now.
    3. Moreover, I_SAVE has 3 options.
    I_SAVE = SPACE
    Layouts cannot be saved.
    I_SAVE = 'U'
    Only user-defined layouts can be saved.
    I_SAVE = 'X'
    Only global layouts can be saved.
    I_SAVE = 'A'
    Both user-defined and global layouts can be saved.
    regards,
    amit m.
    Message was edited by: Amit Mittal

  • HOW TO ACTIVATE SAVE LAYOUT OPTION IN VA05 T CODE

    Dear Genios,
    i am facing probel to activate the save layout option in any sap standard reports.
    I want to create & save a layout in standard report va05.
    please help me for the same.
    Regards
    Rabin Nayak

    Go to SU01/SU3 ( to ur ID) select parameters tab and then scrol down and press F4 select SD_VARIANT_MAINTAIN and in the next field select A or X then try it will allow u to save ur own variant.(the save icon come to screen variant selection screen)
    More on this:
    By default, SAP user can't save report layout in some SAP SD t-code such as: VA05 and SDO1. The 'save' menu will be grey. But, you actually can save the layout by adding a parameter in your SAP user profile. You do that with t-code: SU3. Go to 'parameters' tab and add new parameter id, which is: SD_VARIANT_MAINTAIN'. The parameter value for that is 'A'. Then save your user profile and try again to save layout in VA05 or SDO1 t-code.
    Regards,
    Sanjeev

  • Alv drilldown-fields are hiding in secondary list-when layout option used

    hey guys,
    i displayed alv grid using fms.
    the basic list has default layout option.
    but when user gives a deault layout,and try to see secondary list,the fields appear as hidden.
    one has to unhide them manualy to see.

    Kumar,
      Check the Field catalog Before displaying Secondary list, If NO_OUT is set for Hidden fields.
    Thanks,
    Kishore

  • SAVE Layout Option in ALV list Report

    Hi Experts,
    Is it possible to SAVE the layout option for Block ALV list Reports?
    Thanks in Advance,
    Sivak.

    Hi,
    It is not possible to save layout in BLock ALV display but possible to change layout. There is no parameter to save. It is not possible to store the layout as it has several structure.
    Thanks & Regards
    Rocky

  • Layout option doesn't work in Easy Print VI panel, controls on tabs don't appear

    Found two problems with the Report Generation VIs:
    1) In the (Report Generation) Easy Print VI Panel or Documentation.vi, the Layout options don't work (dug down into the sub-VI's and found that they are not connected to anything).
    2) If you have controls or indicators on a Tab Control, and try to use the Easy Print VI Panel or Documentation.vi with the option to include controls in the report, they don't appear. The only controls/indicators that do appear are the ones that are displayed on all of the tabs (ie, create an control and move it on top of the tab control so that it appears on every page).  There is a sub-VI (Expand_control_ref_with_nested_controls.vi) that is called to handle nested controls (ie, clusters, arrays,etc...) but it should have a case to handle tab controls.
    Solved!
    Go to Solution.

    Hey Sajosie,
    Digging into the Sub-VI's you are correct in saying that the Layout Options user input is not connected to anything for most cases. However, In the default case of "Quick Print" the Layout Options are used to modify the layout of the report. In the help for this VI, it mentions that this input is ignored for "Standard Reports" and "HTML" report options. However, it does not mention that this ignoring of the Layout Options is expected for "Word" or "Excel" reports.
    In terms of including controls and indicators in the report that appear on tab controls, I can make a product suggestion to make this sort of front panel design more compatible with the Easy Print VI Panel or Documentation.
    Hope this helps.
    -Ben
    WaterlooLabs

  • "Layout" option in iPhoto 09 - multiple photos per page

    I am trying to printing several different photos on a single page. While I can achieve this by selecting a smaller image size and letting iPhoto arrange them automatically I would like to adjust the layout. When I selected "Layout" (under "customize") earlier I was offered layouts for One, Two, Three etc. images per page but now I can't find how to get iPhoto to offer more than One image per page. Am I doing something wrong? With several pictured selected, how do I customize the layout?
    Thanks
    Duncan

    Thanks - That is what I figured but the strange thing is that when I clicked on "Layout" 20 minutes before I posted this question it offered me page layout options for "One", "Two" "Three" and "Four" images per page with different configurations for each......but now I can't get those options - frustrating! And thinking about it, why would it say "One" under layout if there were no other options available?
    Has anyone else experienced this? Do other iPhoto 09 users get multiple images per page options under "Layout"?
    Thanks
    Duncan

  • Layout Options - Page Order Does Not Work Correctly

    I have a Photosmart C7280 All-in-One printer.  The Layout Option - Page Order does not work as expected.  The User Guide (page 95) states that the default for a multiple page document is to print first page first.  The manual states that to print last page first requires one to change the Page Order to "Back to Front".  For my Excel, Word, Internet Explorer and PDF pages, I need to leave the Page Order as "Front to Back" if I want the last page to print first.  This makes no sense.  In addition, I can't get my Quicken reports to print last page first no matter what I try.  Does anyone no why the Page Order does not work as expected for Excel, Word, IE and PDF, and does not work at all for Quicken?

    Keisha,
    If you uncheck the "show" option, then the corresponding HTML for that item is not rendered on the page. Thus, when you try to inspect that item via APEX_APPLICATION.G_F02, it simply doesn't exist.
    One trick that I use when I want to have hidden items on the page, but not make them take up any space, is to concatenate them to items that will be visible.
    Using your query as an example, I would re-write it like this:
    SELECT APEX_ITEM.CHECKBOX(1,ROWNUM,'CHECKED')ATTENDED,
    APEX_ITEM.HIDDEN(2,C.PARTY_ID)
      || APEX_ITEM.HIDDEN(3,C.PARTY_TYPE_CODE)
      || C.PARTY_TYPE_CODE PARTY_TYPE_CODE,
    S.PERSON_ID,
    S.PERSON_FIRST_NAME AS NAME,
    C.PARTY_CASE_ID
    FROM CASE.PARTY C
    INNER JOIN DN.PERSON S
    ON C.PARTY_ID = S.PERSON_ID
    WHERE C.PARTY_CASE_ID = :P18_CDBCASE_ID
    AND C.PARTY_SEQ_NO = :P18_SEQThus, the second APEX report column will contain the HTML for the hidden items PARTY_ID & PARTY_TYPE_CODE, as well as the value for PARTY_TYPE_CODE. When you submit the page, you should not encounter any issues.
    Thanks,
    - Scott -
    http://sumnertechnologies.com/
    http://spendolini.blogspot.com/

  • Layout Option on Selection Screen For Zreport

    Hi All,
           Plz explain how to do coding for using Layout option  on selection screen of
    report. Also i should be able to save and create new layout on selection screen.
           Thnaks in advance.
    Aniket Dayama

    hi,
    creation of sub-screens.
    selection-screen begin of tabbed block <name of the tab> for < height of the tab in no's> lines.
    eg;
    selection-screen tab(20) l1 <data element> user-comand <name of the funcion code>
    selection-screen end of block <name of the tab strip>.
    eg;
    selection-screen begin of tabbed block mytab for 10 lines.
    selection-screen tab(20) l1 user-command tab1.
    selection-screen tab (20) l2 user-command tab2..
    selection-screen end of block mytab.
    Under initialization.
    data element = text-01.
    data element = text=02.
    How to initialize the tab with default screen.
    <name of the tab> - prog = sy-repid.
    <name of the tab>- dynnr = '<subscreen no>'.
    <nane of the tab>-activetab = '<user-command for the strip>
    if this has solved ur problem then dont forget to reward with points.
    with regards,
    madhuri.

  • Standard Report's Layout not displaying 'SAVE LAYOUT' Option

    Dear All,
                Using Tcode VF44, i am getting output list.But in that list when i click on select layout option from toolbar its not displaying 'save layout' Option. can anybody give me soln for the same.How can i get that option?
    Regards,
    Mayank

    HI,
        No yaar, This one is standard report and  i am getting 'SAVE LAYOUT'  option in 300 but not in Production Server.There must be settings for this.  If u hv any idea ?
    Regards,
    Mayank

  • F-28 Line Layout option

    Hi Gurus
    I am encountering a case where one user is not able to see a field in line layout. User donot have access to change the layout anf configuration has already been checked that field is set for that layout.
    I understand that line layout is not user specific in SAP. Could you advise something for this?
    Suitable answer would be rewarded.
    Thanks
    Jhanvi

    Hi,
    it is like an excel sheet. Select the edge of the coloumn that u want to hide, (+ sign cursor will appear)
    Use it to close the coloumn. If this is to be done permanently and for all users, select edit layout option(right hand top) and select administrator , to edit layout and save it in a variant name
    H Krishnan
    I am not able to send you print screen. if u have email ID i can mail it

Maybe you are looking for