Custom Document + Array of JTextFields

Hi,
I read through the tutorial and managed to get a Custom Document going for my JTextFields (of which i am using quite a few =))
To cut my code down and aid getting data back from the textfields, I changed them from a page of declarations to a couple of grouped arrays.
However, now that I have done that, whenever i change the text in one of the textfields, the text in all the textfields in the array change...
I'm assuming it's something to do with the super.insertString(offs, str, a); that is being called from the Custom Document, but I'm not sure how to fix it up...
Any help would be most appreciated.
Cheers
Andy

whenever i change the text in one of the textfields, the text in all the textfields in the array change...This means that each text field is using the same document. It's hard to help since you don't post any code. Your code should look something like:
textField1 = new JTextField()
textField1.setDocument( new CustomDocument() );
textField2 = new JTextField()
textField2.setDocument( new CustomDocument() );

Similar Messages

  • Document in the JtextField

    Hi,
    In my application Jtextfield is there. Which takes the all Uppercase,Lowercase alphabets, Numbers,and the Special symbols.Send the document class for that if any one knows.It is the subclass. In super class only take the uppercase alphabets.
    Regards,
    Naresh

    Read the JTextField API before posting questions in the forum.
    a) You will find a link to the Swing tutorial on "How to Use Text Fields" which has all kinds of information on this topic.
    b) You will find an example of a custom Document that converts all lower case characters to upper case characters.

  • Unable to display customs document in SAP GTS

    Hello,
    I am using SAP GTS 7.2 Compliance services. SPL and Embargo services are working well (I am not using License determination).
    Indeed, when I save a sales order in ERP, it is effectively checked for compliance, as I receive a message when it is blocked by GTS..
    In GTS, I can check that concerning business partners are effectively blocked, using:
    "Display Blocked Business Partners" and "Display Business Partners with Embargo Situation".
    But I cannot display any customs document in SAP GTS, using transaction /SAPSLL/CUHD_DISPLAY (Display all documents) or SAPSLL/CON_BLOCKED_DOCS_EXP (Display blocked documents).
    I get the following error message "No data was found for the selection criteria specified".
    As I understood, SAP GTS performs the compliance checks not on ERP documents but on corresponding GTS customs document. Thus I guess they are effectively created somewhere! If it was not the case, I guess the process should not work.
    When I look in the audit trail of SPL for documents, I can see all the SPL checks that have been performed. Looking in the corresponding table "/SAPSLL/SPLAUD", I can even find the numbers of the different customs documents...
    But there is nothing in table "/SAPSLL/CUHD", where they should be copied... The only entries I found concern biling documents that were transferred for customs purposes...
    Could you please help me on this matter?
    Many thanks,

    Hi Sameer,
    Thank you for your fast answer. I checked in the debug mode creating a breakpoint at statement RFC and it effectively stops at RFC /SAPSLL/API_6800_SYNCH.
    But when I check the log in transaction SLG1, nothing appears concerning /SAPSLL/API_6800_SYNCH.
    I think the customs document is effectively created in GTS as I can see it has a number assigned in the audit trail for SPL screening. And compliance services work.
    Though when going through the transaction of displaying all documents in GTS there is nothing. Table "/SAPSLL/CUHD" is empty (except some billing documents that were transferred for customs purposes).
    This is really weird... Anyway, thank you for your help.
    Kind Regards,

  • Opening Office 2007 and 2010 documents in FDM as Custom documents

    Hi Gurus, could you please help with this one.
    I am trying to load Office 2007 and 2010 documents as custom documents in FDM. I can load the files successfully but when I try to open the loaded excel (xlsx) or word (docx) file, it opens up as a zip for me to save. I have added the docx, xlsx & pptx mime file types in the workspace without any luck as according to the following document *Incorrect format of MS Office 2007/2010 Files Downloaded from EPM Workspace [ID 1426071.1]*
    Has anyone experienced this issue before:
    Hyperion Version : 11.1.2.0
    OS : MS Windows Server 2008 x64 SP1
    Please help

    Hello,
    Can you please be more specific on exactly the steps you are taking?
    Thank you,

  • How to print custom documents through custom program

    Hi,
    I am printing custom documents like Commercial Invoice, Shipper's Letter of Instructions,  Shipper's Export Declaration , using communication tab of custom declarations. SInce user wanted output with a changed layout( different from standard), so new Activity messages ( like ZP100 in place of standard P100) are created to call Z forms ( new PDF from created using SFP and called for this Message type). This part is done our fucntional team. This customize message type is calling my custom Z forms. But all these Z forms are not allowing printing of the document from Preview of PDF. Print Icon become disabled in the preview. Used wants to print from preview of PDF itself.
    There is a parameter in BADI  DOC_PERSONALIZE_BCS method parameter 'NOPRINT', which is passed with value 'X' in the function module to create PDF. SInce this is set to 'X' it is not letting us print from preview.
    So, can anyone help me in finding what can I do to get this print enabled from preview. If I need to change this method, then what are the steps and how standard configurations will be changed to call Zprogram in place of standard.

    Hi Swati,
    The Badi you mentioned should help you, try changing the importing parameter in your local structure and pass this local variable, instead of the imported (IS_outputparams-noprint = 'X' ) to the function below. This is an example, you`ll need to declare data as well :
    Method IF_EX_DOC_PERSONALIZE_BCS~PERSONALIZE_PDF_DOC_PDFIF
    ls_output_options = is_outputparams.
      IF NOT ls_output_options-preview IS INITIAL.
        ls_output_options-noprint = ' ' .    " Allow printing
       ENDIF.
    call function '/SAPSLL/PRN_FORM_PROCESS_PDF'
        exporting
          iv_guid_cuhd       = lv_guid_cuhd
          iv_function_name   = ip_function_name
          iv_form_name       = ip_form_name
          iv_appl_log_handle = ip_application_log
          is_output_options  = ls_outputparams " put your LOCAL structure here ....
        importing
          es_formoutput      = es_formoutput
          es_joboutput       = es_joboutput
        changing
          cs_docparams       = cs_docparams
        exceptions
          output_canceled    = 1
          others             = 2.
    Hope this helps,
    Regards,
    Branislav Petricek

  • Invoice image in vendor and customer document

    Hello,
    We have got following requirement.
    Currently we are storing pysical invoice copies of vendor and customer in a pysical file. But now we want to see the image of invoices in vendor and customer document respectively.
    It means, if it is possible to have an attachment button or some icon available when we see vendor and customer document.
    Please advise how can we link the pysical invoice with SAP document. And is this something related to DMS or Archivieng Link.
    Please suggest.
    Best Regards,
    Tapan

    Hi Tapan,
    At my company we are currently doing just this.
    We have a server outside of SAP that stores our images.  We did not want to store the images within SAP.
    We use the SAP document number to link the image to the SAP document.
    We do all our AP input from images. After an invoice is entered, and the document number is generated, we forward the image to a
    e mail address for the server using the document number in the subject line. The image gets attached to the document. Then the image can be viewed by clicking on the Services for object icon.
    I am sure there is some more techical stuff that goes this, like an RFC connection. I am sorry I am not technical. I am the functionala AP person. We also have a program that takes the image and attaches it to the cross company document if there is one.
    Hope this gives you some ideas.
    Alicia

  • How to control authorization about terms of payment in customer document ?

    Dear,
       I need to control authorization about terms of payment in customer document. the terms of payment fields can only be maintance by some persons, others persons can not be maintance the terms of payment, although they have the FD01 or FD02 athourization.
       how can we archieve this programme?

    Hi,
    Like T.Nishanth says, use tcode SU21 to create your own auth.object. Mantain it with tcode PFCG.
    Only an additional point. Use the enhancement SAPMF02D. In the include zxf04u01 (EXIT_SAPMF02D_001), click on 'pattern' and in the pop-up dynpro, try the field authority-check and populate it with the auth.object created before.
    After, check it with FD02, XD02 and so on.
    I hope this helps you
    Regards,
    Eduardo

  • B2B Custom Document Type not getting identified

    Hello,
    I have installed Oracle Fusion Middleware 11g on my local machine and created a custom document type with proper .xsd definition and XPath Expression Identifier in Oracle B2B interface and configured its trading partners ( Host & Remote ) along with an agreement between the partners.
    I have also configured the host listening channel of Generic-File type which picks xml files from my c:\orclsrvs_in folder.
    My problem is that the moment I drop any sample file in the expected directory, it gets picked up from B2B , but there isn't any record of the same under Reports and Metrics links.
    The Business message, Application message and Conversation message tabs are also not showing any information about the record picked, but in wire message tab, the record is shown in PROCESSING state.
    I am not able to conclude whats wrong behind this.. where can i track the logs for the same ??
    kindly help to resolve this issue.
    Thanks & Regards
    Hiteshkumar Chaudhary

    Hi Hitesh,
    i came to know that B2B extracts the TP name from the filename itselfYes, in case of Generic File, Generic SFTP and Generic FTP, file name provides the necessary values to Oracle B2B to identify the Trading Partner. You can define your own file name format in the Delivery Channel under Transport Protocol Parameters in field "Filename format" (It's an optional field but it is always good to define your own format, otherwise B2B will take it's default format - TradingPartner_DocumentType_Revision_msgType_msgId_replytoMsgID_extension.xml ). Following Filename formats can be used -
    %FROM_PARTY%
    %TO_PARTY%
    %DOCTYPE_NAME%
    %DOCTYPE_REVISION%
    %MSG_ID%
    %TIMESTAMP%
    These file name formats can be used in any combination; for example,
    %TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.dat
    Note - Any file extension is allowed.
    what are the system parameters to be set in weblogic console and how?? This activity is part of the pre and post installation steps. If you have done those without getting any errors then nothing else is required.
    how shall I reinstall XEngine properly ??XEngine is part of B2B installation. If B2B gets installed without flashing any errors then we assume that other components of this part has installed properly.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi, Infosys on Aug 28, 2009 5:51 PM

  • How to see output in GTS for Customs documents

    Hi experts,
    could you please let me know how to see outputs for customs documents like origin of certificate for US. (ex: like in SD to see order output VA02 then goto issue output)
    let me know the Path or Transaction code to see output on system.
    Regards
    Reddy

    Hi
    Follow the path:
    Customs Processing - Import/Export>Monitoring>Customs Import/Export Declaration>Display Available Customs Export/Import Declaration>Communication Tab
    Or try
    T-Code: /SAPSLL/CL_CUS_03
    Check for Certificate of Origin
    Regards
    Vivek

  • ADRNR number in BSEC table ( One time customer document )

    Hi
    We are printing the customer master address details on AR forms with ADRNR field but this logic is not working for one time customer documents in BSEC if ADRNR filed is not available ( BLANK )
    The ADRNR filed for one time customers documents in BSEC is not updating always but the same table  is getting updated with ADRNR some of the one tim customer document.
    I think that the ADRNR filed getting updated if one time customer document are generated from SD & Idoc posting and the ADRBR field not getting updated if one time customer document directly generated from FI side...  but i m not 100% clear of ADRNR update in BSEC table for one time customer document
    Please help me on this if any body facing some problem earlier.
    Thanks
    Risha

    done

  • CUSTOM DOCUMENT over internet file name convention

    Hi ,
    I am sending an OAGIS xml file(CUSTOM DOCUMENT over internet) through interal delivery channel to our supplier, I am getting an below error.
    I got the same error while processing an EDI transaction, I change the file name, and then it processed successfully
    ex: Penske_850_4010_1_25
    in the same way for sending an file(CUSTOM DOCUMENT over internet) , do we have any file naming convention
    I tried with Benchmark_850_4010_1_25, it showing a 2nd error.
    Please help me to resolve this
    Machine Info: (essapp000-u008.emrsn.com)
    Description: Make sure the trading partner has name, type, and value information
    StackTrace:
    Error -: AIP-50548: Trading partner agreement lookup failed as From trading partner cannot be identified
         at oracle.tip.adapter.b2b.tpa.TPAIdentifier.identifyTPA(TPAIdentifier.java:199)
         at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:589)
         at oracle.tip.adapter.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:221)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1061)
         at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:141)
         at oracle.tip.transport.basic.FileSourceMonitor.processMessages(FileSourceMonitor.java:903)
         at oracle.tip.transport.basic.FileSourceMonitor.run(FileSourceMonitor.java:317)
    and Machine Info: (essapp000-u008.emrsn.com)
    Description: Unable to identify the trading partner agreement from the given input values. Also verify agreement effectiveToDate
    StackTrace:
    Error -: AIP-50547: Trading partner agreement not found for the given input values: From party[NAME] "Emerson", To party[NAME] "Benchmark", Business action name "null"; also verify agreement effectiveToDate
         at oracle.tip.adapter.b2b.tpa.RepoDataAccessor.getAgreementNameByBaTPName(RepoDataAccessor.java:2345)
         at oracle.tip.adapter.b2b.tpa.TPAIdentifier.identifyTPA(TPAIdentifier.java:186)
         at oracle.tip.adapter.b2b.tpa.TPAProcessor.processTPA(TPAProcessor.java:589)
         at oracle.tip.adapter.b2b.tpa.TPAProcessor.processOutgoingTPA(TPAProcessor.java:221)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:1061)
         at oracle.tip.adapter.b2b.transport.AppInterfaceListener.onMessage(AppInterfaceListener.java:141)
         at oracle.tip.transport.basic.FileSourceMonitor.processMessages(FileSourceMonitor.java:903)
         at oracle.tip.transport.basic.FileSourceMonitor.run(FileSourceMonitor.java:317)

    Hi,
    I used to get "Unable to identify the trading partner agreemen" due to below reasions,
    1. Agreement is not deployed properly. Please check whether deployed agreement is in active state.
    2. While creating the Operational Capability, please check whether initiator and responder defined correctly.
    For Outbound, Please check Remote trading partner Is Initiator should be false and Host trading partner Is Initiator should be true.
    As far as I know, File name convention should be folllowed for FTP/File and not for HTTP.

  • Customer document number not picked while making payment

    Hi  guys
    we have one vendor the same vendor as customer also. while we making payment to vendor customer document document number not picked,, the erro message comes.. " NO APPROPRIATE LINE ITEM IS CONTAINED IN THE DOCUMENT"
    But we already assigned the following:-
    1) In Vendor master data, Customer code has been given
    2) In  Documnet type KZ, we select vendor also.
    But still the customer document not picked while  making payment
    Pl Help me out.
    Regards
    K.Gururajan

    Hi,
    Check the following:
    1. The check box clearing with customer and clearing with vendor has been selected in both the masters in the payment transactions tab.
    2. Ensure the vendor is not locked up in any payment proposal in F110.
    Thanks
    Aravind

  • Change payment terms for customer documents

    Hi Guys,
    Is it possible to change for several customer documents the payment terms?
    I tried to do using FBL5n but I couldn`t do it.
    Thanks
    Daniel Dorta

    Hi,
    You can do the mass change in FBL5N.
    Please select the line items you would like change (Open items). You will see a small check box against each document number.
    Then click on mass change button - Please see mass change button available.
    Give the payment terms that you want change.
    Say OK
    Regards,
    Ravi

  • Powershell Script to create "custom" Document Library

    I have a powershell script which creates a Document Library for every user in AD.
    This works, but rather than using the default Document Library I want it use a custom Document Library.  However this isnt working.
    My script to create the default Document Library is this...
    [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c")
    $site = new-object Microsoft.SharePoint.SPSite("http://servername/sitename");
    $siteweb = $site.OpenWeb();
    $webs = $siteweb.Webs;
    $strFilter = "(&(objectCategory=User)(name=accountname))"
    $objDomain = New-Object System.DirectoryServices.DirectoryEntry
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = $objDomain
    $objSearcher.PageSize = 1000
    $objSearcher.Filter = $strFilter
    $objSearcher.SearchScope = "Subtree"
    $colProplist = "samaccountname"
    foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i)}
    $colResults = $objSearcher.FindAll()
    foreach ($objResult in $colResults)
    $objItem = $objResult.Properties; $objItem.samaccountname
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
    $listId = $siteweb.Lists.Add($objItem.samaccountname, "", $listtemplate);
    $list = $siteweb.Lists.GetList($listId, $true);
    $roleDef = $siteweb.RoleDefinitions.GetByType("Contributor");
    $user = "domain\" + $objItem.samaccountname;
    $rolAssign = new-object Microsoft.SharePoint.SPRoleAssignment($user, "email", "name", "notes");
    $rolAssign.RoleDefinitionBindings.Add($roleDef);
    if(!$list.HasUniqueRoleAssignments)
    {$list.BreakRoleInheritance($true);}
    for ($i = $list.roleAssignments.Count - 1; $i -gt -1; $i--)
    { $list.RoleAssignments.Remove($i) }
    $list.RoleAssignments.Add($rolAssign);
    $list.Update();
    Now I have a custom Document Library named "TESTLIB" so if I substitute the line:
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::DocumentLibrary
    with
    $listTemplate = [Microsoft.SharePoint.SPListTemplateType]::TESTLIB
    Then it errors with this...
    How can I script powershell to create a "custom" Document Library?
    Thanks

    The below link should help you in creating custom document library using powershell
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/23/use-powershell-cmdlets-to-manage-sharepoint-document-libraries.aspx
    Vinod H
    Thanks for the link but I cant see anything to assist creating a custom library?  Was there something in paticular you saw?

  • Create custom document with wrong size

    Hi,
    I have a problem (on Sun Solaris 5.8) when I create custom document with more than 10MB size.
    I've created an agent which detects the events on a custom data type
    MYDOCUMENT (extension .mydoc).
    When I put a new document test1.mydoc (size of 10MB for example), my agent detects the new document, creates a copy, sets the class object to
    MYDOCUMENT , removes the original document and puts the copy into the same folder.
    But sometimes, the copy created has a wrong size (less then 10MB).
    How can I configure the nfs server to be sure that the agent waits for the complete size of the added document.
    I need HELP !!!!
    Thanks

    Hi Pavithra,
                    yeah you can create your custom table by entering fields in Standard.  for more details
    refer below screen shots
    Regards,
      Thangam.P

Maybe you are looking for