[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: roesch  XML
Profile for roesch -> Messages posted by roesch [9]
Author Message
I don't understand the last phrase: "This information then is available when the user selects an item, or if you iterate through all items."

There is no item selected. Should all items selected? I don't know the word iterate.
At the moment i write a managementprogram. In the entrancemask there must be made some informations. After this you could search for entries (filter). The results are listed in a FixgridList. If you click double on an entry, it opens all details about. This data i export in a Jasper Report.
The overview (the FixgridList) should be exported in an excel sheet with all details, but there are only 5 details in the overview. How can i get all details in every row (in excel)?

In every row should be one data set. In the columns should be the details. In my matter there are over 40 details/columns.

Code:
 public void onExcelListe(ActionEvent event) {
       
       HSSFWorkbook arbeitsmappe = new HSSFWorkbook();
       HSSFSheet datenblatt = arbeitsmappe.createSheet("Schadensverwaltung");
       
       HSSFRow ueberschrift1 = datenblatt.createRow(0);
       HSSFCell ueberschriftA = ueberschrift1.createCell( (short) 0);      ueberschriftA.setCellValue("Sachbearbeiter");
       ...
 
       for (int i = 0; i < schadenListe.getRows().size(); i++) {
          
          HSSFRow inhalt = datenblatt.createRow(i+1);
          HSSFCell inhaltA = inhalt.createCell( (short) 0);      inhaltA.setCellValue(?????);
       ...
 


The question is, how can i get all details above the FixgridList? The site in which all details are displayed, is a separate class. I can't write so:
FixgridList.getSelectedItem().SeparateClass.getDetail
because there is nothing marked. I hope it is understandable what i mean.
Is there no chance to change this?
that's what i mean:
http://www.java-forum.org/de/viewtopic.php?t=16010&highlight=jtextarea+tab
First: The meeting yesterday was great. I work with cc not so long, but i learned something about it.

My problem: Can the tab function in a textarea disabled? So when i press the tab key, the cursor goes to the next textarea beside the first?

I tried it with textfield with height und width, but the cursor is vertical in the middle, not on top.
OK, thanks!
Code:
 <%@page contentType="text/html"%>
 <%@page pageEncoding="UTF-8"%>
 
 <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
 <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
 
 <%@taglib prefix="t" uri="/WEB-INF/eclnt"%>
 
 
 <!-- ========== CONTENT BEGIN ========== -->
 <f:view>
 <h:form>
 <f:subview id="gcc_schaden_listeg_72">
 <t:row id="g_1" >
 <t:pane id="g_2" background="#F0F0F0C0" border="bottom:1;color:#C0C0C0" height="60" rowalignmenty="center" >
 <t:rowdistance id="g_3" height="50%" />
 <t:row id="g_4" >
 <t:button id="g_5" actionListener="#{d.SchadenBean.onNeuerSchaden}" contentareafilled="false" horizontaltextposition="center" iconrollover="true" image="/images/24px_add.png" text="Neuer Schaden" verticaltextposition="bottom" />
 <t:button id="g_6" actionListener="#{d.SchadenBean.onOeffneSchaden}" contentareafilled="false" horizontaltextposition="center" iconrollover="true" image="/images/24px_edit.png" text="Bearbeiten" verticaltextposition="bottom" />
 </t:row>
 <t:rowdistance id="g_7" height="50%" />
 </t:pane>
 <t:pane id="g_8" background="#F0F0F0C0" border="bottom:1;color:#C0C0C0" height="60" rowdistance="5" width="100%" >
 <t:rowdistance id="g_9" height="80%" />
 <t:row id="g_10" >
 <t:coldistance id="g_11" width="20" />
 <t:label id="g_12" text="Umgebung" width="60" />
 <t:combobox id="g_13" width="200" />
 <t:coldistance id="g_14" width="10" />
 <t:label id="g_15" text="Schad. Nr." width="60" />
 <t:field id="g_16" width="100" />
 <t:coldistance id="g_17" />
 <t:label id="g_18" text="Beleg. Anspr." width="70" />
 <t:field id="g_19" width="100" />
 </t:row>
 <t:row id="g_20" >
 <t:coldistance id="g_21" width="20" />
 <t:label id="g_22" text="Von" width="60" />
 <t:calendarfield id="g_23" width="90" />
 <t:label id="g_24" align="center" text="-" width="20" />
 <t:calendarfield id="g_25" width="90" />
 <t:coldistance id="g_26" width="10" />
 <t:label id="g_27" text="Send. Nr." width="60" />
 <t:field id="g_28" width="100" />
 <t:coldistance id="g_29" />
 <t:button id="g_30" actionListener="#{d.SchadenBean.onSuchen}" hotkey="10" text="Suche" />
 </t:row>
 <t:rowdistance id="g_31" height="20%" />
 </t:pane>
 </t:row>
 <t:rowbodypane id="g_32" padding="0" >
 <t:row id="g_33" >
 <t:fixgrid id="g_34" background="#FFFFFF" border="0" bordercolor="#dcdcdc" borderheight="1" height="100%" objectbinding="#{d.SchadenBean.schadenListe}" rowheight="27" sbvisibleamount="40" width="100%" >
 <t:gridcol id="g_35" background="#C0C0C080" text="Sdg.-Dat." width="100" >
 <t:label id="g_36" text=".{sdgdatum}" width="100%" />
 </t:gridcol>
 <t:gridcol id="g_37" background="#C0C0C080" text="Eingang Dat." width="100" >
 <t:label id="g_38" text=".{eingangsdat}" width="100%" />
 </t:gridcol>
 <t:gridcol id="g_39" background="#C0C0C080" text="Schadensnummer" width="100" >
 <t:label id="g_40" text=".{schadenListe.schadensnummer}" width="100%" />
 </t:gridcol>
 <t:gridcol id="g_41" background="#C0C0C080" text="Kunde" width="100%" >
 <t:pane id="g_42" height="30" >
 <t:row id="g_43" >
 <t:label id="g_44" text=".{schadenListe.kunde_kdnr}" width="60" />
 <t:coldistance id="g_45" />
 <t:label id="g_46" text=".{schadenListe.kunde_name}" />
 </t:row>
 <t:row id="g_47" >
 <t:label id="g_48" text=".{schadenListe.kunde_lkz}" width="15" />
 <t:label id="g_49" text=".{schadenListe.kunde_plz}" width="45" />
 <t:coldistance id="g_50" />
 <t:label id="g_51" text=".{schadenListe.kunde_ort}" />
 </t:row>
 </t:pane>
 </t:gridcol>
 <t:gridcol id="g_52" background="#C0C0C080" text="Forderung" width="100" >
 <t:label id="g_53" align="right" text=".{forderung}" width="100%" />
 </t:gridcol>
 </t:fixgrid>
 </t:row>
 </t:rowbodypane>
 <t:rowstatusbar id="g_54" />
 <t:pageaddons id="g_pa"/>
 </f:subview>
 </h:form>
 </f:view>
 <!-- ========== CONTENT END ========== -->
 
Ok, here is a screenshot. I mean the column "Kunde". How you can see, the rows have all the same height, this is correct. But the first row, where "Kunde" is (e.g.), should have a lower height.
I have a problem with the fixgrid. I want to output two values among one another in a row. So i enlarged the height of the row - ok, it works. The headline with the column description has still the same height. But the description is only one word. How can i change the height of this row?
 
Profile for roesch -> Messages posted by roesch [9]
Go to:   
Powered by JForum 2.1.6 © JForum Team