10g TableLayout no height?

If, as the documentation says, <tableLayout> "is a thin wrapper around the HTML<table> element", why doesn't it have a 'height' attribute? I gave up on getting it to work how I wanted using <spacer> as I saw in the examples, and just replaced my attempts to use <tableLayout> and <rowLayout> with <html:table>, <html:tr>, and <html:td>. What could I do with <tableLayout> that I can't do with <html:table>? That is, what would make it worth trying to figure out how to get along without a 'height' attribute?

I generally use HomeSite, which does have the height attribute in the properties sheet for table. But, let's go with the standards thing and see how we can do this with the tableLayout tags. If I try the following, neither renders to the full height of the browser window:
<table width="100%" border=1 >
     <tr>
          <td width="100%" height="100%">
          </td>
     </tr>
</table>
<tableLayout borderWidth="1" width="100%" >
    <contents>
        <rowLayout>
            <contents>
                <cellFormat width="100%" height="100%">
                    <contents>
                    </contents>
                </cellFormat>
            </contents>
        </rowLayout>
    </contents>
</tableLayout>In the HTML sample, I can use the non-standard height attribute on the table tag to make this fill the browser both horizontally and vertically. How do I do this with tableLayout -- or, for that matter, in HTML without using the table height attribute?

Similar Messages

  • Unable to vertically align a amx:inputText inside amx:cellFormat

    Hi,
    Below is my amx code:
    I've 2 cell formats ,valign="top" is set for both. but the result is only outputText(2nd cell format) is vertically aligned correctly but not <amx:inputText (1st cellformat)
    Any idea?
    <amx:panelLabelAndMessage label="B\P" showRequired="true"
                                                                      inlineStyle="vertical-align:top;">
    <amx:tableLayout inlineStyle="height:25px; vertical-align:top;" width="100%">
                                                    <amx:rowLayout>
                                                       <amx:cellFormat valign="top" inlineStyle="vertical-align:top;"
                                                                        halign="end">
                                                            <amx:inputText value="#{bindings.branchPlant.inputValue}"
                                                                           maximumLength="12" id="it2218" simple="true"
                                                                          />
                                                    </amx:cellFormat>
                                                        <amx:cellFormat valign="top" >
                                                            <amx:outputText value="EMC" id="ot519"
                                                                            rendered="true"
                                                                            inlineStyle="color:Silver; font-size:small;"/>
                                                        </amx:cellFormat>
                                                    </amx:rowLayout>
    </amx:tableLayout>
    </amx:panelLabelAndMessage>

    Hi,
    this is a known behavior handled in bug 9830307 and 9768470. It is the intended behavior for table rows that are selectable. FF and Chrome may behave differently, which is considered to be the wrong behavior and is subject to fixing
    Frank

  • Page Skipping with Orarrp.

    Hi all,
    I have migrated a character mode report from 2.5 to 10g.
    In 2.5 the report runs twice and prints the output on the same page.
    E.g It is a voucher generating report and they are generating two vouchers on the same page. Everytime first report runs and prints and then second report runs and prints on the same page.
    But in 10g first report runs and prints and then skips the remaining space on the page and prints second report output on next page instead of printing on the same page as in 2.5.
    I have generated the o/p in text format for comparison in both 4.5 and 10g. o/p is same but printing is not happening as mentioned above.
    Following prt file code we are using for both 4.5 and 10g :
    printer "NEWFDDFLT"
    height 36
    width 240
    before report 27 67 0 6
    after report 27 67 0 6
    code "01" esc 15
    code "18" 18
    code "10" esc 80
    code "12" esc 77
    code "15" esc "g"
    after page control(L)
    return control(M)
    linefeed control(J)

    Hi,
    Thanks for your reply.
    Yes i am facing the same problem
    E.g As it is a voucher the first o/p occupies half of the page and the second o/p should print on the remaining half of the page.Instead it is skipping half page and the o/p is printed on second page.
    I tried by giving type command from the command prompt of a system to which printer is attached directly(not a network printer) then it is not skipping .The printer head is stopping after the first o/p is printed on the page and next prints the second o/p on the remaining page(now using orarrp).
    If i use orarrp it is not happening.If i use type command and give print to a network printer it is not working.
    Any other way to achieve this....

  • Report height problem from 6i to 10g migration

    Hi,
    We have a 6i report and now try to migrate to 10g. When the report is printed, the report is shinked and printed in half upper part of page because of the height of main section we defined is 22" instead of 11". We don't have problem in 6i environment.
    The reason is we have two different layouts and each occupies 11". Only one of this will be printed at one time but we don't want to create two report for this.
    is there any way to solve this problem in 10g?
    Thanks in advance

    Hy Jeffrey
    We have the same problem...
    Have you solved?
    Davide

  • Change the width and height of Landscape Layout for a report in 10G

    Hi,
    I'm new to reports and when i built the report in report builder 10g, the layout orientation was 'Landscape', hence I assumed that it'll be a landscape layout.
    However, the width and height fields of the main section are 11 and 20 respectively. However, the height should ideally be 8.5. When i try to change it I get the following error message :
    Layout canvas must remain large enough to fit layout objects.
    Could you please tell me how to change the height of this landscape layout to 8.5 from 20.
    The report has several main frames within a repeating frame, since the same report has to run multiple times.
    Is it possible to have a repeating page across pages (crossing the horizontal margin) and hence have some of the main frames move down to the next page. I'm trying to do this to then be able to reduce the height of the main section of the report to 8.5. Its not working though because I'm getting the following error :
    REP 1814 : Report cannot be formatted. Object "vertically" can never fit R_Main (the name of the repeating frame enclosing all objects)
    Thanks,
    Priyanka

    To reduce the Hieght, first make the layout design fit into the new value..

  • Retrieving Applet width/height in Forms 10g

    Dear Members :
    Is there any way I could capture width & height of applet, which was set in formsweb.cfg at runtime - appreciate your suggestion.
    Thanks.
    Atanu

    Hi Francois :
    Thanks for your reply. This is what I am working with. Could you please tell which utility I may use to sign the bean, whether "Jarsigner" or "sign_webutil" ? I am not using webutil features in my Forms 10g and my form runs using JRE 1.6.0 (the latest JRE version being installed in system).
    I find a whitepaper from Oracle "Jar File signing for Jini 1.3" - which is quite old, considering what I am using (JRE 1.6.0_xx) - isn't it ?
    Regards.
    Atanu

  • Converting Uix 9.0.3 application to 10g

    Just wondering if anyone successfully convert a fully functioning UIX 9.0.3 application to 10g? My 9.0.3 application (which is currently deployed fine) seems to put 9.0.5 in deadlock. This happens after I dismiss the dialog stating it wants to convert my 9.0.3 application to 10g.
    Tks

    Here a UIX page after conversion
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
          xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
          xmlns:html="http://www.w3.org/TR/REC-html40"
          xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j"
          xmlns:pcs="http://www.proconcept.ch/ui/templates" expressionLanguage="el" xmlns:ui="http://xmlns.oracle.com/uix/ui">
      <bc4j:registryDef>
      <bc4j:rootAppModuleDef name="WebCategArrayDescrViewAppModule"
                             definition="ShopConcept.ShopModule"
                             releaseMode="stateful" >
        <bc4j:viewObjectDef name="ViewWebCategLevel1"
                            rangeSize="5" />
        <bc4j:viewObjectDef name="ViewGcoGoodNew"
                            rangeSize="3" />                       
      </bc4j:rootAppModuleDef>
      </bc4j:registryDef>     
      <templates xmlns="http://xmlns.oracle.com/uix/ui">
        <templateImport source="template/library.uit"/>
      </templates>
      <!--<include node="template/pcsTemplate.uix"/>-->
      <content>
        <try xmlns="http://xmlns.oracle.com/uix/ui"
             xmlns:data="http://xmlns.oracle.com/uix/ui" >
         <catch>
           <displayException />
         </catch>
           <contents>
            <bc4j:rootAppModuleScope name="WebCategArrayDescrViewAppModule">
              <contents>      
               <dataScope>
               <contents>
                <pcs:pcsPageLayout xmlns="http://xmlns.oracle.com/uix/ui"
                            xmlns:data="http://xmlns.oracle.com/uix/ui"
                            title="" >
                  <contents>
                    <script>
                      <contents>
                        function DetailProd(UrlName)
                          openWindow(window,
                                     UrlName,
                                     'DetailWindow',
                                     {width:550, height:500},
                                     false,
                                     'dialog',
                                     null);                        
                          return false;
                      </contents>
                    </script>             
                    <borderLayout>
                      <right>
                      </right>
                      <contents>
                      <header>
                        <contents>
                          <stackLayout>
                            <contents>
                              <styledText data:text="Bienvenue dans le@text" styleClass="OraLightHeader"/>
                              <rowLayout>
                                <contents>
                                  <spacer width="40"/>
                                  <cellFormat>
                                    <contents>
                                      <image source="pictures/welcome.png" hAlign="center"/>
                                    </contents>
                                  </cellFormat>
                                </contents>
                              </rowLayout>
                              <spacer width="1" height="20"/>
                            </contents>
                          </stackLayout>
                        </contents>
                      </header>
                      </contents>
                      <innerBottom>
                        <bc4j:viewObjectScope name="ViewWebCategLevel1">
                          <contents>
                            <dataScope>
                              <provider>
                                <data name="fromWebCategLevel1View">
                                  <method class="ch.proconcept.ui.env.bc4j.ViewHook" method="getList"/>
                                </data>
                              </provider>
                              <contents>
                                <pcs:link word="Bienvenue dans le" destination="aaa">
                                </pcs:link>
                                <pcs:label readOnly="true"/>
                                <tableLayout hAlign="center" width="100%" borderWidth="0">
                                  <contents>
                                    <rowLayout hAlign="center">
                                      <contents childData="${uix.data.fromWebCategLevel1View.breadCrumbs}">
                                        <image data:destination="__link#WebCateg#WebCategArrayId#choisecat#viewCatDirectAdd2Cart" source="${uix.current.WcdPictureUrl}" text="${uix.current.WcdLongDescr}"/>
                                      </contents>
                                    </rowLayout>
                                  </contents>
                                </tableLayout>
                              </contents>
                            </dataScope>                       
                          </contents>                             
                        </bc4j:viewObjectScope>
                      </innerBottom>
                    </borderLayout>               
                  </contents>
                </pcs:pcsPageLayout>
                </contents>
                 <provider>
                  <data name="text">
                    <method class="ch.proconcept.ui.env.engine.servlet.PcsPageFlowEngine" method="getText"/>
                  </data>
                 </provider>
                </dataScope>
              </contents>
            </bc4j:rootAppModuleScope>
          </contents>
        </try>
      </content>
      <handlers>
        <!-- Add EventHandlers (<event> elements) here  -->
      </handlers>
    </page>JDev change the binding -> expressionLanguage="el". It's OK.
    But why this code
      <bc4j:registryDef>
      <bc4j:rootAppModuleDef name="WebCategArrayDescrViewAppModule"
                             definition="ShopConcept.ShopModule"
                             releaseMode="stateful" >
        <bc4j:viewObjectDef name="ViewWebCategLevel1"
                            rangeSize="5" />
        <bc4j:viewObjectDef name="ViewGcoGoodNew"
                            rangeSize="3" />                       
      </bc4j:rootAppModuleDef>
      </bc4j:registryDef>      always exist ?
    In JDev doc you say "Don't mix EL and old databinding"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j" always here ????
    This
    <contents childData="${uix.data.fromWebCategLevel1View.breadCrumbs}"> good change, but not this
    <image data:destination="__link#WebCateg#WebCategArrayId#choisecat#viewCatDirectAdd2Cart"With my application I have not successfully converted.
    Maybe I have wrong use UIX version 9.0.3 however with JDev 9.0.3 my application work fine.
    Currently I am evaluating the change induces by JDev 10g in my application to know if I will make the change.
    Nathanael

  • Dflt report in 6i and 10g

    Hi
    I am trying to get a tillslip to print correctly after converting from reports 6i to 10g. The problem i think is that the outputfile generated in the 6i version is diffrent from the output file in 10g. The 10g version looks similar to postscript while the 6i output file does not mean anything to me.
    If i open the 6i test.dflt file it looks something like: =c0c1c32R
    If i open the 10g test.dflt file it looks something like:
    %!PS-Adobe-3.0 %
    %Creator: Oracle Toolkit 2 for Motif 10.1.2.0.2 PRODUCTION
    Using the 6i output file i can print the tillslip correctly in both the 6i and 10g environments. Using the 10g output file all the char in the output file prints including the comments (the %!PS-Adobe-3.0 % bit also)
    Any ideas how to get the output file the same. All report settings (DESFOTMAT, DESTYPE, ...) are the same. The dflt.prt file only differs as follows:
    printer "dflt"
    height 66
    width 80
    after page control(L)
    return        ""  (this line in 6i file is: return        "M" )
    linefeed control(J)
    Any ideas will be helpfull. I have tried creating the report as a .rtf, .pdf and .ps file and all of them print with the code inside and not just the tillslip info.
    Thanks

    Hi
    I afound that the problem is that the app server does not know about the printer as it is connected to a users PC. Thus when using the dflt desformat it selects the default printer language of the App Server printer. This is the reason why the files are diffrent.
    If I understand everything the process should be:
    1 - Run the report from forms (on app server).
    2 - Write the report to a file on App Server and then transfer the file to the user PC.
    3 - Send file correct printer on the user PC.
    The problem still remains on how to create the correct file which can be send to the printer connected to the users PC as the driver of the correct printer is not known too the App Server. The printer still prints the file incorrectly as the file is not created using its drive as what the case was when running it in 6i.
    Setting the MODE to character (which will enable you to provide a .prt file if you had one to give) will not work as the report contains an image.
    Regards
    Edited by: hfp843 on Sep 17, 2008 2:28 AM

  • SRW.Run_Report is not working in Reports from 6i to 10g

    Hi,
    I have a report .rdf file that submits another .rdf report using the SRW.Run_Report. This code was working fine in Reports 6i version. We are upgrading the Reports 6i to Reports 10g, and did a small change in the call i.e., Removed the server parameter, and it is not working. This is in Oracle E-Business Suite environment. The first report is called as a Concurrent Program. Here is the call that was working fine in Reports 6i (i.e., Oracle Apps 11i environment)
    srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
    ' p_user_id='||l_user_id||
    ' p_resp_id='||l_resp_id||
    ' p_appl_id='||l_appl_id||
    ' p_conc_request_id='||
    ' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
    ' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
    ' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
    ' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
    ' p_period_name='||l_period_name ||                                                                      
    ' server='||l_server
    It has been modified to the following for Reports 10g (i.e., Oracle Apps R12 environment)
    srw.run_report('report='||l_source_dir||l_parent_shortname||'.rdf'||
    ' p_user_id='||l_user_id||
    ' p_resp_id='||l_resp_id||
    ' p_appl_id='||l_appl_id||
    ' p_conc_request_id='||
    ' batch=yes mode=character destype=file desname='||l_destination_dir||l_filename||
    ' desformat=verp_i012 p_vendor_id='||dealer_list_rec.vendor_id||
    ' p_trx_date_from='||to_char(l_date_from, 'DD-MON-RRRR') ||
    ' p_trx_date_to='||to_char(l_date_to,'DD-MON-RRRR') ||
    ' p_period_name='||l_period_name
    );

    Thank you for your reply.
    Yes, it's done using MOD-PLSQL version 10.1.2.0.2.
    I did as you said: compared the 2 generated HTML files. It's not that it doesn't generate all tags. It generates all tags but some of them are different, that is it screws them up.
    Here it is some example code.
    For example, in 9i I have the following code:
    div id=div_plus_GENERALE style="cursor:hand; display:none;"
    <td> width=8 </td>
    <td id=butt align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';
    "onClick="if (butt_clicked) butt_clicked.style.cssText=restore_butt_style;
    butt_clicked=this; restore_butt_style=butt_off_lit;
    this.style.cssText=butt_on_lit;
    var x = document.getElementById('Freccia_' + freccia_old);
    x.style.display = 'none';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.style.display='block';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    In 10g the HTML code looks like this:
    div id=div_plus_GENERALE style="cursor:hand;"
    <td width=8> </td>
    <td align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';">
    <a href="sitointer.anagrafica.anagrafica_cliente_punto target="frameCenter"
    onClick="var x = document.getElementById('Freccia_' + freccia_old);
    x.Style.visibility='hidden';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.Style.visibility='visible';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</a></td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    At this point I don't know what should I investigate next.
    Thank you very much.
    Daniela

  • How to set up database for form application in app. server 10g r2

    Hi Friends and Bgrant.
    I get user compiled fmb file.
    I did not find componant in app. server.
    However, I can see form server ment with 3 subitem : form compiler, formmigration and run form on the web.
    The form application is supported by database. Other person already configured server for application .
    I put a URL in URL field in run form on the web. I can see install ed successfully! Oracle application Server. Forme server. Oracle application server 10g. title: welcome oracle application server
    after clicked OK button, the page is grey blank without any inforamtion to be displayed. No error message. status bottome as done. the page title as Oracle application server form server.
    SO I think that i need to creade a datasource in app. server.
    But I do not know how to fill field.
    I can log into database from SQL*plus in server PC.
    In datasource page in app. server: i copy a default ORCALEDS information
    with new ID and password. it does not work
    hereData Source Class:
    JDBC URL :
    JDBC Driver:
    Location
    Transactional(XA) Location      
    EJB Location
    Thanks for any help!!
    jim

    Thanks for help!
    I fixed issue of database connection with new issue.
    Only display first form setting (first URL) for 4 different URL
    URL:
    http://salerpt.com/forms/frmservlet?config=emis-srmenu
    fmx file Location as C:\OraMid\forms\salerpt-Forms fmx name as srmenu.fmx in same directory
    fmb file location as C:\OraMid\forms\salerpt-Forms_source fmx name as srmenu.fmb in same directory
    # Single Sign-On OID configuration parameter
    oracle_home=C:\OraMid
    in formweb.cfg file
    baseHTMLjinitiator=basejini.htm
    workingDirector : workingDirectory= blank. but C:\OraMid\forms\salerpt-Forms right now
    # Forms runtime argument: which form module to run
    ##form=test.fmx
    ## i moved bottom section of form section in here and before
    line as Forms runtime argument: database connection details
    comment two line
    #jinit_exename=jinit.exe
    #jinit_mimetype=application/x-jinit-applet;version=1.3.1.22
    I create 4 sections as
    form=srmenu.fmx
    width=1200
    height=700
    pageTitle=Sale Information System (SIS)
    form=xxxx
    net 3 form setting
    However it only display one form interface that i put in( 4 different URL. only display first URL)
    It seems that one formsweb.cfg, it doesn not support multip form application.
    I have 4 small forms application with 4 URL for one formsweb.cfg.
    What should I need to do?
    I am waiting for your help!
    JIm
    Edited by: user589812 on Nov 24, 2008 1:49 PM

  • HTML generated by PLSQL not working when migrating from 9i to 10g

    Hello everybody,
    We migrated a 9i database (web+application server on Windows) to 10gR2 (web+application server on Linux). The database contains a package that dynamically generates HTML and JSP tags .
    Problem: the HTML code generated in 10g by the package is different by the HTML code generated in 9i. The package generating the html in 10g is identic, equal with the package generating html in 9i. We also receive a the following message error in 10g when loading the web page in 10g:
    " 'Style' is null or undefined". It seems there is a problem with the Style object.
    Anybody has seen something similar, because I am not very familiar with HTML and JSP.
    Any help will be appreciated.
    Thank you, Daniela.

    Thank you for your reply.
    Yes, it's done using MOD-PLSQL version 10.1.2.0.2.
    I did as you said: compared the 2 generated HTML files. It's not that it doesn't generate all tags. It generates all tags but some of them are different, that is it screws them up.
    Here it is some example code.
    For example, in 9i I have the following code:
    div id=div_plus_GENERALE style="cursor:hand; display:none;"
    <td> width=8 </td>
    <td id=butt align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';
    "onClick="if (butt_clicked) butt_clicked.style.cssText=restore_butt_style;
    butt_clicked=this; restore_butt_style=butt_off_lit;
    this.style.cssText=butt_on_lit;
    var x = document.getElementById('Freccia_' + freccia_old);
    x.style.display = 'none';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.style.display='block';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    In 10g the HTML code looks like this:
    div id=div_plus_GENERALE style="cursor:hand;"
    <td width=8> </td>
    <td align=left style="font-family:Verdana,Tahoma;
    font-size: 10px; font-weight: 400; color: '#ffffff';
    background-color: '';">
    <a href="sitointer.anagrafica.anagrafica_cliente_punto target="frameCenter"
    onClick="var x = document.getElementById('Freccia_' + freccia_old);
    x.Style.visibility='hidden';
    Freccia_sitointer_anagrafica_anagrafica_cliente_punto.Style.visibility='visible';
    freccia_old='sitointer_anagrafica_anagrafica_cliente_punto';"
    onMouseOver="this.style.cssText=butt_on_lit;"
    onMouseOut="if (butt_clicked != this) this.style.cssText=butt_off_lit;">Anagrafica Fornitura</a></td></tr>
    <tr>
    <td height=2></td>
    </tr>
    </table>
    At this point I don't know what should I investigate next.
    Thank you very much.
    Daniela

  • Help desiging a 10g Oracle Report with Matrix and Lexical Parameters - Long

    Hello all:
    I apologize in advance for this long post.... I'm using Oracle Reports 10g (9.0.4.0.33). First -- the question:
    I need to create a Matrix where the rows come from one database table
    (TABLE1) and the columns and cell contents come from a linked query (pulled from TABLE2) that is generated with lexical parameters based on the current TABLE1 row. The lexical parameters contain a WHERE clause for the TABLE2 query. Basically, I have a linked query between TABLE1 and TABLE2. I need to generate a Matrix around it.
    Does anyone know if this is even possible?
    Here's the background on the application, if that is helpful...
    I have an application where I maintain database tables containing names/addresses along with information pertaining to them. As part of the processing, I need to produce reports that contain statistics based on values in the table. For example, each row has a field RTYPE that identifies the Record Type (1-Suppress, 2-Buyer, 3-Inquirer). Each row also has a last purchase date field. The statistics produced for this field would look like this:
              2001     2002     2003     11/03     12/03 01/04     02/04 03/04     04/04     05/04 ...
    Buyer      100 150 250 30 25 15 8 9 22 83
    Inquirer     1000 800 493 ...
    Suppress ... ...
    Totals ... ...
    Each cell contains the count of the number of records that have the corresponding RTYPE and Last Purchase date. The dates across the top are determined by the most recent purchase date in the file. We count the last 12 months, month by month, and then anything older than that is grouped by
    year of purchase. So, the column headings are variable.
    The SQL query for this example looks like this:
    SELECT CASE WHEN rtype = '2' THEN 'Buyers'
    WHEN rtype = '3' THEN 'Inquirers'
    WHEN rtype = '1' THEN 'Suppress'
    END HLDESC,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END YYMM_8,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'MM/YY')
    ELSE TO_CHAR(T.HOTLINE, 'YYYY')
    END FmtDate_8,
    COUNT(*) HLCOUNT
    FROM &TABLENAME T
    GROUP BY CASE WHEN rtype = '2' THEN 'Buyers'
    WHEN rtype = '3' THEN 'Inquirers'
    WHEN rtype = '1' THEN 'Suppress'
    END,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END,
    CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'MM/YY')
    ELSE TO_CHAR(T.HOTLINE, 'YYYY')
    END
    ORDER BY CASE WHEN MONTHS_BETWEEN(trunc(:MAXHLDATE,'MONTH'),
    TRUNC(T.HOTLINE,'MONTH')) < 12
    THEN TO_CHAR(T.HOTLINE,'YYYYMM')
    ELSE TO_CHAR(T.HOTLINE,'YYYY') || '00'
    END
    There might be a better way to write this, but that isn't the issue at the moment.
    I have many different tables, each with different fields. I need to produce counts on each of those fields. Some of those fields have a limited number of values where I need to count the occurrences and attach a description (like the RTYPE counts above). Others, like Last Purchase Amount, require counts within ranges (between 0 and 9.99, 10 and 19.99, etc.). Still others are "multiple choice"-style fields (such as products purchased), where we have multiple single-char flags that are not null when the corresponding products are purchased. In this case, we need to produce statistics that look like this:
              2001     2002     2003     11/03     12/03 01/04     02/04 03/04     04/04     05/04 ...
    Product 1 .........
    Product 2 .........
    The worst of the bunch is a field where I need to count the occurrence of each value within it (hundreds of values) without entering descriptions, so I don't know how many rows will appear ahead of time. This is used for "source codes" that identify where the name/address came from. They look similar to the RTYPE above, but the leftmost column contains each value from the field rather than a description. There are so many possible values and they change so often that it isn't feasible to enter a description for each one.
    Right now, I manually create an Oracle Report for each table when I design/load it. This is becoming difficult to manage, since I have over 150 of them now. Each of these reports can have any number of matrices to display (the largest right now has about 25).
    The new table structure to generate these reports consists of two tables: A COUNTHDR table and a COUNTROW table. The COUNTHDR table represents a single Matrix within the report. It contains info such as a heading for the Matrix and whether column totals should be calculated or not. The COUNTROW table contains a description for each row and an SQL Fragment that contains an appropriate WHERE clause to match the description. In the event of a "source code" style count, COUNTHDR has the name of the field to count. COUNTROWs won't exist, so I'll be handling those counts differently. But, ignoring that issue for now, the report structure looks like this:
    + Q1 +
    |
    + COUNTHDR +
    |
    + COUNTROW +
    | linked query
    + Q2 +
    |
    + COUNTDTL +
    Q2 is the query with lexical parameters for the table and "where clause" that identifies the actual statistic I need counted. I need fields from COUNTROW and COUNTDTL to form a Matrix.
    Can this be done? How?
    Of course, if anyone out there has a better idea on how to achieve my goal of not writing a report per table, please let me know!! :-)
    TIA
    Eric Raskin
    PS. This structure does not exactly duplicate my original query, since multiple Matrix rows are created by the single SQL query given in the example. Instead, I'll end up executing an SQL query for each row, which is less than desirable. The design will need some tweaking...
    PPS. I have tried handling this problem by pre-counting the target table and storing the results in a COUNTCOL table, containing the details of the matrix. This actually does work, but the performance is terrible. I have one "source code"-style count that generated over 20,000 detail cells, including all the "0" cells needed to fill out the matrix. If you don't generate the "0" cells, you get holes in the matrix presentation and/or error messages (which I can explain if you wish). I never did get Oracle Reports to print this one -- I gave up after an hour of runtime on a P4 3GHz machine connected via Gigabit Ethernet to the server. Hence the attempt to push the SQL Queries back into the Oracle Report itself.
    Eric H. Raskin Voice: 914-765-0500
    Professional Advertising Systems Inc. Fax: 914-765-0503
    200 Business Park Dr Suite 107 [email protected]
    Armonk, NY 10504

    Hi there
    here's example of my code
    Html header of the page :
    <script language="JavaScript" type="text/javascript">
    function callMyPopup (formItem1,formItem2) {
    var formVal1 = document.getElementById(formItem1).value;
    var formVal2 = document.getElementById(formItem2).value;
    var url;
    url = 'f?p=&APP_ID.:8:&APP_SESSION.::::P8_PROJECT,P8_PDRL_NO:' + formVal1 + ',' + formVal2;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=800,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    troubleshooting
    1.Test each parameter separate first - each work ?
    2.Use code above, rerig it, create multiple parameter
    3.try again...
    hope this helps...
    check your orginial source (page where items are) - what data

  • Error when update from 10g (9.0.4) to 10g(10.1.2.0.2)

    hi
    I developed forms using Oracle Developer Suite 10g (9.0.4) and it is work correctly
    then I install Oracle Developer Suite 10g(10.1.2.0.2) and I compile it their is no error
    when I run it the browser a bear as gray screen and in the states bar write applet started and their is nothing a bear after that

    You are welcome,
    Therefore, check in formsweb.cfg parameter
    # Forms applet parameter
    width=1
    # Forms applet parameter
    height=1
    SeperateFrame=True
    I had set to 1
    When using SeperateFrame=True (in formsweb.cfg) a black area is shown in the
    browser where normally the forms-applet resides and the forms will be opened as
    an seperate applet window
    In this case background of the applet will be reduced
    Setting width and height during runtime
    =======================================
    In this case where "SeperateFrame=True" ,it's possible to specify the
    exact size using the following command:
    SET_WINDOW_PROPERTY('window_name', WINDOW_SIZE, <width>, <height>);
    or
    This is mine and work
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);
    Regards

  • Screen resolution in 10G and converison from 6i

    Scenario is something like this:
    We are converting forms from 6i to 10G.
    We have designed forms in 6i for 1024x768 screen resolution. We don't have any issues in 6i for screen resolution of 1024x768.
    We converted the form to 10G. Screen resolution is still 1024x768 in 10G. We are using separateFrame=true in formsweb.cfg to make sure we don't show the Applet in browser window. separateFrame=true opens the application in new window and this new window can use entire screen resolution.
    Applet in new window is bigger than the screen resolution and we see scroll bars in main window when we open a child window. Obviously the applet is showing bigger footprint than client server form.
    Why is this so? Is there a way to fix this?

    If you will bring up a client-server form and a Web separate-frame form and compare them side-by-side, you can easily see the difference.
    The height and width of the actual space used by the form is identical. In fact, in my comparison, both window widths are exactly the same number of pixels. I used snagit to compare the sizes.
    However, if you compare the heights, you will see the difference. The web forms window has three bands above the actual Form canvas:
    1. The main window bar with the java icon on the left, window title, and the three windows icons for minimize, maximize and close.
    2. The pull-down menu choices on the left and the "Oracle" logo on the right. (Look-and-feel generic removes the Oracle logo, I believe.)
    3. The Window0 bar, blank except an icon on the left (right click shows Restore, Move, Size,... CLose) and an icon on the right, which clicking causes the inside window to maximize or restore.
    The Client/Server window has two bands:
    1. Main window bar, similar to 1 above, except the icon on the left is a Forms icon instead of java.
    2. Combination of 2 and 3 above: Contains both the icons in 3 above plus the pull-down menu choices. It is also about 8 pixels shorter than the web forms bar 2.
    In addition, comparing the bar with the message and status lines at the bottom of both versions, you can see that the web forms bar is about 9 more pixels higher.
    It is possible to position the Window0 at a y_pos of about -20 to regain some of the lost height (this causes the third bar described above to be hidden behind the second). But you cannot get all the height back, because of the additional height taken by Web Forms for the second bar and the bottom area.
    So what is left is to reduce the height of the canvas area used by your forms by about 20 pixels.
    I believe these heights are determined by the java runtime used by web forms rather than Oracle, so there is nothing Oracle can do about it.

  • I need a code to run a report from a forms on 10G...

    Hi!! I´m migrating from 6i to 10G and i cant run a report... can someone send me a sample code to run a report from a form in 10G??
    Thanks!!
    Regards!

    iam using Javabean in oracle 10g forms to tun the report....
    First create a block with a name control and add an bean to it with a name
    userid_bean.click the proerty of the bean and changes its width and height
    so that u cannot see it when u run the particular form.
    now use the below code where u are coding to run the report.
    Declare
    rep_url varchar2(2000);
    begin
    rep_url := '/reports/rwservlet?report=filepath\rep1.RDF' ||
    '&desformat=htmlcss&destype=cache&userid=sample/sample@oracle' || '&paramform=yes';
    -- Write Log messages to the Forms JInitiator console.The Next line must
    -- be disabled before running this code in any production environment.
    set_custom_property('control.userid_bean',1,'ADD_USERID',
    get_application_property(username)||'/'||
              get_application_property(password)||'@'||
              get_application_property(connect_string));
    -- writing the cookie
    set_custom_property('control.userid_bean',1,'WRITE_USERID_COOKIE','10g');
    web.show_document(rep_url,'_blank');
    end;

Maybe you are looking for