t:dataTable scrollable with fixed headers

I need to make my dataTable scrollable with fixed headers, I have seen few solutions like having 2 data Tables one for headers and the other for columns and one more solution is CSS
In the first solution the column widths in the both tables doesn't match( I think this can be fine tuned to have a fixed column size)
Can some one help me out in doing this with CSS.

I did some thing like this, please help me out my columns of botht ables doesn't match
<htm:table>
<htm:body>
<htm:tr>
<htm:td>
<t:div>
<t:div>
<t:dataTable
     renderedIfEmpty="false"
     preserveDataModel="false"
     preserveSort="true"
     varDetailToggler="detailToggler"
     headerClass="alignLeft"
     rowClasses="oddTableRow,evenTableRow"
     columnClasses="lastName,namePrefix,firstName,middleName,nameSuffix,dirType,orgName,county,city,state,valid,select"
     rows="1"
     value="#{result.result}"
     var="legalProfessional">
<t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="Last Name" style="font-size:8pt;" />
          </f:facet>
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="Name Prefix" style="font-size:8pt;" />
          </f:facet>
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="First Name" style="font-size:8pt;" />
</f:facet>
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="Middle Name" style="font-size:8pt;" />
          </f:facet>
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="Name Suffix" style="font-size:8pt;" />
          </f:facet>
     </t:column>
     <t:column >
          <f:facet name="header">
               <h:outputText value="Dir Type" style="font-size:8pt;" />
          </f:facet>
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="Organization Name" style="font-size:8pt;" />
          </f:facet>
               </t:column>
     <t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="County" style="font-size:8pt;" />
          </f:facet>
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="City" style="font-size:8pt;" />
          </f:facet>
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="State" style="font-size:8pt;" />
          </f:facet>
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="Valid" style="font-size:8pt;" />
          </f:facet>
     </t:column>
     <t:column rendered="#{resultPage eq resultsBean.pageSearch}" defaultSorted="false" sortable="true">
          <f:facet name="header">
               <h:outputText value="Select" style="font-size:8pt;" />
          </f:facet>
     </t:column>
</t:dataTable>
</t:div>
<t:div style="overflow:auto;height:50px">
<t:dataTable
     renderedIfEmpty="false"
     preserveDataModel="false"
     preserveSort="true"
     varDetailToggler="detailToggler"
     headerClass="alignLeft"
     rowClasses="evenTableRow,oddTableRow"
     columnClasses="lastName,namePrefix,firstName,middleName,nameSuffix,dirType,orgName,county,city,state,valid,select"
     rows="#{sessionUserBean.user.resultsPerPageOption}"
     value="#{result.result}"
     var="legalProfessional">
     <t:column defaultSorted="false" sortable="true">
          <h:outputText value="#{legalProfessional.lastName}" />
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <h:outputText value="#{legalProfessional.namePrefix}" />
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <h:outputText value="#{legalProfessional.firstName}" />
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <h:outputText value="#{legalProfessional.middleName}" />
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <h:outputText value="#{legalProfessional.nameSuffix}" />
     </t:column>
     <t:column >     
          <h:outputText value="#{legalProfessional.directoryType}" />
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <h:commandLink action="#{legalOrganizationSearchByNameBean.searchLegalOrganizationsByName}">
             <h:outputText value="#{legalProfessional.relatedOrgNormName}" />
               <t:updateActionListener property="#{legalOrganizationSearchByNameBean.name}" value="#{legalProfessional.organization}" />
              <t:updateActionListener property="#{legalOrganizationSearchByNameBean.resultKey}" value="#{legalOrganizationBean.legalOrganizationsSearchResultKey}" />               
          </h:commandLink>
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <h:outputText value="#{legalProfessional.county}" />
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <h:outputText value="#{legalProfessional.city}" />
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <h:outputText value="#{legalProfessional.normRegion}" />
     </t:column>
     <t:column defaultSorted="false" sortable="true">
          <t:graphicImage value="images/yellow_check.jpg" border="0" />
     </t:column>
     <t:column rendered="#{resultPage eq resultsBean.pageSearch}" defaultSorted="false" sortable="true">
          <t:commandButton
               id="viewLegalProfessionalCommand"
               forceId="true"
               title="#{bundle.view_entity_title}"
               value="#{bundle.text_view_value}"
               action="#{legalProfessionalBean.actionGotoView}">
               <t:updateActionListener property="#{heavyWeightBean.uuid}" value="#{legalProfessional.profileUuid}" />
               <t:updateActionListener property="#{legalProfessionalBean.LPAEntity}" value="#{legalProfessional}" />
          </t:commandButton>
     </t:column>
     <t:column rendered="#{pageStatus eq resultsBean.pageAdd || pageStatus eq resultsBean.pageEdit}">
          <!-- Employment relationship with general -->
          <t:commandButton
               title="Make Employment Relationship."
               rendered="#{result.key eq legalOrganizationBean.legalProfessionalsResultKey}"
               value="Employment"
               action="#{legalOrganizationBean.actionMakeEmploymentRelationship}">
               <t:updateActionListener property="#{legalOrganizationBean.selectedLPAEntity}" value="#{legalProfessional}" />
          </t:commandButton>
          </t:column>
</t:dataTable>
</t:div>
</t:div>
</htm:td>
</htm:tr>
</htm:body>
</htm:table>{.lastName{
width:100px;
.namePrefix{
width:100px;
.firstName{
width:100px;
.middleName{
width:100px;
.nameSuffix{
width:100px;
.dirType{
width:100px;
.orgName{
width:100px;
.county{
width:150px;
.city{
width:250px;
.state{
width:100px;
.valid{
width:100px;
.select{
width:100px;
code}

Similar Messages

  • h:dataTable Scrollable with header fixed

    Hi all!
    I have been reading for hours in these days all posts about this topic but I am not able to create a scrollable <h:dataTable>. My table must scroll both horizontally and vertically, and the header should behave consequently and this should happen in at least Firefox and IE.
    I tried many examples taken also in this forum, but none of them work fine.
    I tried to use richFaces, but the framework seems to be still unstable..
    May someone face this problem successfully before? Please help me!
    Thanks in advance!

    Hi albertthe,
    Ahh the headers are a pain, but the trick I found was to use a style from the style sheet.
    So I think it's columnClass="" or columnClasses="" (I haven't got the book at the moment) put in a list of styles for the widths eg. mine were
    columnClasses="width100PX, width200PX, etc.."
    The style sheet looks like:
    #width100PX
          width: 100px;
    }etc..
    The rich:scrollableDataTable is a real pain to use as I'm finding at the moment.
    <rich:scrollableDataTable rowKeyVar="rkv" height="97px" width="200" id="matchingPacketList2" columnClasses="col" value="#{FindPacket.matchingPackets}" var="mPackets">
         <a4j:support event="onRowClick" action="#{FindPacket.action}">
              <a4j:actionparam value="#{mPackets.packetString}" assignTo="#{FindPacket.packetString}" />
         </a4j:support>
         <rich:column width="200px" sortable="false">
              <f:facet name="header">
                   <h:outputText styleClass="fontSize15Bold"      value="#{msg.label_information}" />
              </f:facet>
              <h:outputText styleClass="fontSize15Normal" value="#{mPackets.stringDecriptive}" />
              </rich:column>
         </rich:scrollableDataTable>The scrollabledatatable has some very bad re-draw issues though, but at least it scrolls and allows column widths to be set. The bit in the middle: <rich:support is getting the row clicks, supposedly (not working at the moment).
    Hope this helps
    Thanks
    Victoria

  • Fixed headers while scrolling works fine in bids but not when deployed to reportserver

    Hi, I am using SQL Server 2008 R2 & deploying a report to reportserver with fixed headers while scrolling, this works fine in bids but not when deployed to reportserver. We are IE 9.
    Thanks in advance...............
    Ione

    Hi ione721,
    Since you have identified the 2 xml files are identical, according to my knowledge, there maybe a compatibility issue with IE 9 and SSRS 2008 R2, so I suggest that you could run the report in compatibility mode. Please make sure you have turned on Compatibility
    View in Internet Explorer 9 by following steps:
    When Internet Explorer recognizes that a webpage is not compatible, you will see the Compatibility View button on the Address bar. Try clicking it.
    When Compatibility View is turned on, the button changes from an outline to a solid color when you view the page.
    The following screenshots are for your reference:
    If you have any questions, please feel free to let me know.
    Best Regards,
    Wendy Fu

  • Scrollable table with fixed header (tutorial? also IE9)

    Hi,
    Does someone know of a tutorial about scrollable tables with a fixed header. Is there one on the adobe site. I found some on the net, but those didn't work for IE9. I favour the simple solutions.
    I tried one, using only a few lines of CSS and the use of the thead and tbody tags in the table, but it didn't work on IE9.
    Here is an example, of what I ment:
    http://rcswebsolutions.wordpress.com/2007/01/02/scrolling-html-table-with-fixed-header/
    I thank those, who red this.

    Thanks, that is a very cool way to divide a layout of a web-page!
    Can I also use this to split up a header and table body region inside a large table you want to present compact inside a webpage?
    html:
    <body>
    <table>
         <thead>
              <th>
              </th>
         </thead>
         <tbody>
              <td>
              </td>
         </tbody>
    </table>
    </body>

  • Scrollable table with fixed column headings problem

    Dear list members,
    A while ago I asked on this forum for a way to code a
    scrollable table with fixed headings and I was kindly given the
    HTML and CSS code to do that. Using the method I was given I coded
    the following simple test case. It works under IE but under
    Netscape the column headings scroll up instead of remaining fixed.
    The code works fine in IE. Can anyone tell me what I'm doing wrong
    or if there is a workaround.
    Thanks,
    Harry

    The method you were given will only work in IE because only
    IE understands
    "expression" in CSS rules.
    I'm afraid things are going to be a little more complicated
    for you, but
    it's not impossible.
    Give this method a shot:
    http://www.imaputz.com/cssStuff/bulletVersion.html
    "harryspier" <[email protected]> wrote in
    message
    news:e53s1a$dv9$[email protected]..
    > <style>
    > div .headings {position:relative;
    > top:expression(this.offsetParent.scrollTop);}
    > </style>

  • [svn] 949: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name , it causes a ClassCastException in the server

    Revision: 949
    Author: [email protected]
    Date: 2008-03-27 07:12:59 -0700 (Thu, 27 Mar 2008)
    Log Message:
    Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the server
    QA: Yes - try again with legacy-collection true and false.
    Doc: No
    Checkintests: Pass
    Details: Another try in fixing this bug. When legacy-collection is false, Actionscript Array on the client becomes Java Array on the server and my fix yesterday assumed this case. However, when legacy-collection is true, Actionscript Array becomes Java ArrayList on the server. So added code to handle this case.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-96
    Modified Paths:
    blazeds/branches/3.0.x/modules/proxy/src/java/flex/messaging/services/http/proxy/RequestF ilter.java

    Hi all!
    Just to post the solution to this if anyone ever runs accross this thread...
    For some reason i had it bad the first time, don't have time right now to see why but here is what worked for me:
    HashMap primaryFile = new HashMap();
    primaryFile.put("fileContent", bFile);
    primaryFile.put("fileName", uploadedFile.getFilename());
    operationBinding.getParamsMap().put("primaryFile", primaryFile);
    HashMap customDocMetadata = new HashMap();
    HashMap [] properties = new HashMap[1];
    HashMap customMetadataPropertyRoom = new HashMap();
    customMetadataPropertyRoom.put("name", "xRoom");
    customMetadataPropertyRoom.put("value", "SOME ROOM");
    properties[0] = customMetadataPropertyRoom;
    customDocMetadata.put("property", properties);
    operationBinding.getParamsMap().put("CustomDocMetaData", customDocMetadata);
    Basically an unbounded wsdl type is an array of objects (HashMaps), makes sense, i thought i had it like this before, must have messed up somewhere...
    Good luck all!

  • Table with fixed header and scroll bar

    Was able to use Dreamweaver 2004 to set up a table to display
    data from a MySQL table. But then the customer wanted to have a
    scroll bar on one side and fixed headers at the top "like Excel",
    because the number of rows retrieved were too long to fit on a
    page. This was harder than I thought. I had to use CSS and
    Javascript with a lot of help to make this happen. Then it didn't
    work in IE7, so I had to use a different approach for IE. I got it
    to almost work perfectly in IE7. It just has a tiny bit of the
    table visible scrolling by above the header rows.
    http://www.ykfp.org/php/lyletrap/tabletotalscss13.php
    Why does Microsoft make this so difficult? Why aren't web standards
    good enough for Microsoft? Is there a better approach to tables
    with scroll bars?

    When things go sour in any browser, validate your code.  I see you have some unclosed <table> tags which could effect page rendering.
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.ykfp.org%2Fphp%2Flyletrap%2Ft abletotalscss09.php
    If you still have problems with IE8 after fixing the code errors, try adding this meta tag to your <head>.  It forces IE8 into IE7 mode.
    <meta http-equiv="X-UA-Compatible" content="IE=7">
    Hope that helps,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Table with fixed header

    Hi Guys,
    Any idea how to create a table with fixed header. I know I have the option to use pagination controls. But our requirement is such that we can't have pagination controls but scrolling only.
    I also have an idea that I need to set some CSS style for table header. But where to set that in JSCreator datatable or table component.
    Please help me as it is my urgent requirement.
    Thanks !

    Hi,
    Any idea regarding how to do it ?
    -regards
    sompan

  • How to create flat file with fixed lenght records

    I need help to export an Oracle table to a flat file with fixed lenght and without columns separator.
    the fixed length is the more important demand.
    My table have 50 columns with varchar, date and number .
    Date and number columns may be empty, null o with values.
    Thanks a lot for any help.
    [email protected]

    Hi,
    You can use this trick:
    SQL>desc t
    Name                                      Null?    Type
    NAME                                               VARCHAR2(20)
    SEX                                                VARCHAR2(1)
    SQL>SELECT LENGTH(LPAD(NAME,20,' ')||LPAD(SEX,1,' ')), LPAD(NAME,20,' ')||LPAD(SEX,1,' ') FROM T;
    LENGTH(LPAD(NAME,20,'')||LPAD(SEX,1,'')) LPAD(NAME,20,'')||LPA
                                          21                    aF
                                          21                    BM
                                          21                    CF
                                          21                    DM
    4 rows selected.
    SQL>SELECT *  FROM t;
    NAME                 S
    a                    F
    B                    M
    C                    F
    D                    M
    4 rows selected.Regards

  • How to export data with column headers in sql server 2008 with bcp command?

    Hi all,
    I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
    am trying to import data with bcp command data has been copied but column names are not came.
    I am using the below query:-
    EXEC master..xp_cmdshell
    'BCP "SELECT  * FROM   [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
    Thanks,
    SAAD.

    Hi All,
    I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
    DECLARE @BCPCMD
    nvarchar(4000)
    DECLARE @BCPCMD1
    nvarchar(4000)
    DECLARE @BCPCMD2
    nvarchar(4000)
    DECLARE @SQLEXPRESS
    varchar(50)
    DECLARE @filepath
    nvarchar(150),@SQLServer
    varchar(50)
    SET @filepath
    = N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
    as varchar(4))
    +RIGHT('00'+CAST(MONTH(GETDATE())
    as varchar(2)),2)
    +RIGHT('00'+CAST(DAY(GETDATE())
    as varchar(2)),2)+'.log" '
    Set @SQLServer
    =(SELECT
    @@SERVERNAME)
    SELECT @BCPCMD1
    = '''BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT '
    SELECT @BCPCMD2
    = '-c -t , -T -S '
    + @SQLServer + 
    SET @BCPCMD
    = @BCPCMD1+ @filepath 
    + @BCPCMD2
    Print @BCPCMD
    -- Print out below
    'BCP "SELECT 
    * FROM   [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
    EXEC
    master..xp_cmdshell
    @BCPCMD
      ''BCP' is not recognized as an internal or external command,
    operable program or batch file.
    NULL
    if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
    EXEC
    master..xp_cmdshell
    'BCP "SELECT  * FROM  
    [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
    Thanks, SAAD.

  • How to load unicode data files with fixed records lengths?

    Hi!
    To load unicode data files with fixed records lengths (in terms of charachters and not of bytes!) using SQL*Loader manually, I found two ways:
    Alternative 1: one record per row
    SQL*Loader control file example (without POSITION, since POSITION always refers to bytes!)<br>
    LOAD DATA
    CHARACTERSET UTF8
    LENGTH SEMANTICS CHAR
    INFILE unicode.dat
    INTO TABLE STG_UNICODE
    TRUNCATE
    A CHAR(2) ,
    B CHAR(6) ,
    C CHAR(2) ,
    D CHAR(1) ,
    E CHAR(4)
    ) Datafile:
    001111112234444
    01NormalDExZWEI
    02ÄÜÖßêÊûÛxöööö
    03ÄÜÖßêÊûÛxöööö
    04üüüüüüÖÄxµôÔµ Alternative2: variable length records
    LOAD DATA
    CHARACTERSET UTF8
    LENGTH SEMANTICS CHAR
    INFILE unicode_var.dat "VAR 4"
    INTO TABLE STG_UNICODE
    TRUNCATE
    A CHAR(2) ,
    B CHAR(6) ,
    C CHAR(2) ,
    D CHAR(1) ,
    E CHAR(4)
    ) Datafile:
    001501NormalDExZWEI002702ÄÜÖßêÊûÛxöööö002604üuüüüüÖÄxµôÔµ Problems
    Implementing these two alternatives in OWB, I encounter the following problems:
    * How to specify LENGTH SEMANTICS CHAR?
    * How to suppress the POSITION definition?
    * How to define a flat file with variable length and how to specify the number of bytes containing the length definition?
    Or is there another way that can be implemented using OWB?
    Any help is appreciated!
    Thanks,
    Carsten.

    Hi Carsten
    If you need to support the LENGTH SEMANTICS CHAR clause in an external table then one option is to use the unbound external table and capture the access parameters manually. To create an unbound external table you can skip the selection of a base file in the external table wizard. Then when the external table is edited you will get an Access Parameters tab where you can define the parameters. In 11gR2 the File to Oracle external table can also add this clause via an option.
    Cheers
    David

  • How to generate blank spaces at end of the record in a flat file with fixed

    Hi,
    I am generating a flat file with fixed length.
    In my ABAP program, i am able to see the spaces at the end of the recors in debug but when download to applicaiton server i am not able to see those spaces.
    How can i generate blank spaces at the end of the record in a flat file?
    Please update
    Thank you

    How are you downloading the file?  And, How are you looking at the file on the application server?
    Can you provide snippets of your code?
    Cheers
    John

  • Manual Excise duty with fixed amount in Sales order

    Dear Sir/Madam.,
    This is regarding manual excise duty with fixed amount in SD Module . I
    have created three conditon type ZEXP,ZECS,ZA1X for BED ,CESS and HSED for manual excise duty with fixed amount, other than the standard condition type JEXP,JECS,JA1X , because  my TRADING SALE scenario needs both condition type with fixed percentage and fixed amount conditions also.  After the pricing procedure updation for trading sale, I have tried to create the sale invoice with VF01 , it is ok till  the VF01 for manual excise duty but when ever I tried to excise posting with J1IIN. the manual excise duty show only zero, whiile we used the  standard Condition type JEXP, JECS, AND JA1X with fixed percentage  8% -2% -1%  our over all steps are ok till J1IIN for excise invoice, mean BED ,CESS and HSED shown correctly.
    I have done some experiment with the TAXINN tax procedure in (Logistics general > tax on good movments> india> basic settting>determination of excise duty> Maintain excise default), I have replaced the condition types  JEXP, JECS and JA1X with the ZEXP, ZECS and  ZA1X in the corresponding filed. then after my manual excise duty with fixed amount data  was reflecting
    in the J1IIN and it start to work properly with the excise duty but my fixed percentage condition type stop to working mean, it was now showing the duty at the time of  excise duty posting J1IIN .
    I want to use both the condition types in the same TRADING SALE scenario. May anybody help me to solve this issue.
    With Regard
    Vijay Kumar

    Dear Mr. Siva,
    Sorry for the late reply, actually I was out of touch from this issue for few days. I am sending you the detail about my configuration----
    I have assigned this condition type as following ... 
    TAXINN     ZA1X     A/R AT1 Quantity based
    TAXINN     ZECS     A/R Cess Quantity Based
    TAXINN     ZEXP     A/R BED Quantity based
    Condition type information
         Control data 1
    Cond. class       D  Taxes
    Calculat.type     Q  Commodity
    Cond.category  D  Tax
    Rounding rule         Commercia
    StrucCond.
         Change which can be made---
    Manual entries      C       Manual entry has priority
    Still it is not showing the duty at the time of (J1IIN)
    It may be I am missing some configuration or wrong configuration.
    give me some hints...
    thank you
    Vijay

  • Flat file with fixed lengths to XI 3.0 using a Central File Adapter---Error

    Hi
    According to the following link
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    In Adapter Monitor I got the following error,
    In sender Adapter,
    Last message processing started 23:47:35 2008-10-25, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'Substr':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
      last retry interval started 23:47:35 2008-10-25
      length 15,000 secs
    some one help me out ?
    Thanks
    Ram

    from the blog you referenced -
    <u> /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    <b>goto step 4</b>
    <u>additional parameters</u>
    add as the last entry
    <recordset structure>.lastFieldsOptional            Yes
    e.g.,
      Substr.lastFieldsOptional            Yes

  • How to get the fixed result in a DES/CBC mode with fixed input data and fix

    How to get the fixed result in a DES/CBC mode with fixed input data and fixed key. Below is my program , I tried to get the checksum of the DESInputData with the DESKeyData, but each time the result is different.
    below is my code:
    byte[] DESKeyData = {(byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01, (byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01 };
    byte[] DESInputData = {(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31,(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31 };
    SecretKeySpec skey = new SecretKeySpec( DESKeyData, "DES" );
    Cipher cipher = Cipher.getInstance("DES/CBC/NoPadding");
    cipher.init( Cipher.ENCRYPT_MODE, skey );
    byte[] result = cipher.doFinal( DESInputData );

    Use class javax.crypto.spec.IvParameterSpec to specify IV for CBC mode cipher:
    // Create CBC-mode triple-DES cipher.
    Cipher c = Cipher.getInstance("DESede/CBC/PKCS5Padding");
    // Specify IV.
    IvParameterSpec iv = new IvParameterSpec(new byte[] { (byte)0x01, (byte)0x23, (byte)0x45, (byte)0x67, (byte)0x89, (byte)0xAB, (byte)0xCD, (byte)0xEF });
    // Initialize cipher with proper IV.
    c.init(Cipher.ENCRYPT_MODE, yourKey, iv);
    // Encrypt and decrypt should work ok now.
    For more info about cryptography, search the Internet for IntroToCrypto.pdf from mr. Phil Zimmerman. This document is also part of PGP (http://www.pgp.com).
    An excellent book is 'Applied Cryptography' from Bruce Schneier (http://www.counterpane.com/applied.html).
    Regards,
    Ronald Maas

Maybe you are looking for