SaveAs method of class workbook failed to fIntersectionCheckEx

We are migrating to FDM and HFM 9.3.1 to 11.1.2.1. Due to performance issues that we had previously lived with the FDM multiload feature, we used UD5 and UD6 and customization of the adapter to load the year and period. To take into account the 'extra' dimensions, we also use custom event scripts, view reports, etc... The intersection integrated verification is disabled. The AftValidate script contains our intersection check custom and follows below. During the validation phase is executed on the web client, the following error message appears in the log:

* FdmFM11XG5E Runtime Error Log entry begin [2011-10-13-12: 03:15] *.
-------------------------------------------------------------
Error:
Code of... 1004
Description... The Workbook class SaveAs method failure
Process... clsHPDataAccess.fIntersectionCheckEx
Component... C:\FDMData\fdm-HFM-adapter-V25481-01\FinancialDataManagement\FM11X-G5-E_1005\AdapterComponents\fdmFM11xG5E\fdmFM11XG5E.dll
Version... 145

Identification:
User... larryr
Name of the computer... SVRHYPFDMV103

Connection of FINANCIAL MANAGEMENT:
Name of the application...
Name of the cluster...
Field...
Connect status... Open connection


* Start the journal entry for the Runtime Error FDM [2011-10-13 12:03:15] *.
-------------------------------------------------------------
ERROR:
Code...-2146233088
Description... The Workbook class SaveAs method failure
Online: 59
Process... clsEventHandler.PobjAPI_AftValidate
The component... upsWObjEventHandlerDM
Version.......................................... 1112
Thread........................................... 4828

IDENTIFICATION:
User............................................. larryr
Name of the computer... SVRHYPFDMV103
App Name......................................... SAPHFM
Client App....................................... WebClient

CONNECTION:
Provider......................................... SQLOLEDB
Server data... svrsql105
Name of the database... SAPHFM
Trust connect... Fake
Connect status... Open connection

GLOBALS:
Location......................................... AHEL_F1
Location ID... 752
Location Seg... 6
Category......................................... FctAug
ID of the category... 16
Period........................................... M12 - FY12
Period ID........................................ 30/04/2012
POV Local........................................ Fake
Language......................................... 1033
User Level....................................... 1
All Partitions... True
Is Auditor....................................... Fake


* Start the journal entry for the Runtime Error FDM [2011-10-13 12:03:15] *.
-------------------------------------------------------------
ERROR:
Code............................................. 440
Description... Automation error
Process... clsValidationMgr.fValidate
The component... upsWObjectsDM
Version.......................................... 1112
Thread........................................... 4828

IDENTIFICATION:
User............................................. larryr
Name of the computer... SVRHYPFDMV103
App Name......................................... SAPHFM
Client App....................................... WebClient

CONNECTION:
Provider......................................... SQLOLEDB
Server data... svrsql105
Name of the database... SAPHFM
Trust connect... Fake
Connect status... Open connection

GLOBALS:
Location......................................... AHEL_F1
Location ID... 752
Location Seg... 6
Category......................................... FctAug
ID of the category... 16
Period........................................... M12 - FY12
Period ID........................................ 30/04/2012
POV Local........................................ Fake
Language......................................... 1033
User Level....................................... 1
All Partitions... True
Is Auditor....................................... Fake

Custom control intersection via AftValidate. Line 59 is fIntersectionCheckEx:
Sub AftValidate(strLoc, strCat, strPer, lngProcState)
'------------------------------------------------------------------
'UpStream TB EVENT Script
'Purpose:   Perform custom intersection check - customized for multiple periods
'------------------------------------------------------------------
Dim strTableName, strSQL'               Query variables
Dim strPerYear, strPerMonth'          Target HFM Year & Month
Dim strCatKey, strLocKey'               ID of POV Category & Location
Dim strErr, strHTMFile'                    Error information
Dim objHWReturn'                         Return object for intersection validation
Dim objPeriod'                              Period object
Dim fso'                                   File system object
Dim rs'                                        Recordset containing unique HFM Target intersections
Dim vaData'                                   Array containing unique HFM Target intersections

' Initialize Block Processor For HFM connection
Dim BlOCKPROC
Set BlOCKPROC = CreateObject("upsWBlockProcessorDM.clsBlockProcessor")
BlOCKPROC.Initialize API, SCRIPTENG

' Call the Connect Action for the active integration block
Set API.IntBlockMgr.IntegrationMgr.PobjIntegrate = BlOCKPROC.ActConnect("CheckDims")
If API.IntBlockMgr.IntegrationMgr.PobjIntegrate.intResult Then' Connection is open 
     'Get Target information
     strLocKey = CStr(RES.PlngLocKey)
     strPerKey = CStr(RES.PdtePerKey)
     strCatKey = CStr(RES.PlngCatKey)
     Set objPeriod = API.POVMgr.fPeriodKey(strPer)
     strPerYear = objPeriod.strTargetYear
     strPerMonth = objPeriod.strTarget
     Set objPeriod = Nothing
     strTableName = "tDataSeg" & API.POVMgr.fGetLocationSegment(strLocKey)' Get tDataSeg number for location
     strBaseName = strLoc & "_" & strCat & "_" & strPerMonth & "_" & strPerYear
     strLogsDir = DW.Connection.PstrDirOutbox & "\Logs\"
     strFile = strLogsDir & strBaseName & ".fmv"

     ' Create the SQL to pull the validation records
     ' Do not Validate the Keystone Custom2 records since their "parent" Classic Custom2 records are validated
     strSQL = "SELECT DISTINCT EntityX, PartitionKey, CatKey, PeriodKey, DataView, AccountX, ICPX, UD1X, UD2X, UD3X, UD4X," & _
                                     " '' AS UD5X, '' AS UD6X, '' AS UD7X, '' AS UD8X, '' AS UD9X, '' AS UD10X, '' AS UD11X," & _
                                   " '' AS UD12X, '' AS UD13X, '' AS UD14X, '' AS UD15X, '' AS UD16X, '' AS UD17X, '' AS UD18X," & _
                                   " '' AS UD19X, '' AS UD20X, '' AS Amt " & _
                "FROM " &strTableName& " WITH (NOLOCK) " & _
                "WHERE CatKey=" &strCatKey& " AND PeriodKey='" &strPerKey& "' AND PartitionKey=" &strLocKey
     'Validate all records in the result set
     Set rs = DW.DataAccess.farsFireHose(strSQL, False)
     With rs
          If Not .EOF Then' Create the array to pass to intersection checking
               vaData = .GetRows(.RecordCount)
               Set objHWReturn = API.IntBlockMgr.IntegrationMgr.PobjIntegrate.varCon.fIntersectionCheckEx(vaData, CStr(strCat), CStr(strPerMonth), CStr(strPerYear), "YTD", "<Entity Currency>", CStr(strFile), "FM Account", "FM Entity", "ICP", "Custom1", "Custom2", "Custom3", "Custom4", 15, 9, 2)
               If objHWReturn.PblnIsErr Then
                    RES.PstrActionValue = objHWReturn.PstrErrFile
                    RES.PlngActionType = 4' Display HTML file on web client
                    API.MaintenanceMgr.mProcessLog strLoc, strCat, strPer, 2, False, "Custom Intersection Validation Error:  Error creating validation array", Now()
               Else' Delete the html header file for the error free validation
                    strHTMFile = strLogsDir & strBaseName & ".htm"
                    Set fso = CreateObject("Scripting.FileSystemObject")
                    If fso.FileExists(strHTMFile) Then fso.DeleteFile strHTMFile, True
                    Set fso = Nothing
               End If
               Set objHWReturn = Nothing
          Else
               strErr = "AftValidate Event Script error:  No data for intersection check" & vbCrLf
               RES.PstrActionValue = strErr & "You must re-run the Import before running the Validate again"
               RES.PlngActionType = 2' Display the error string
          End If
          .Close
     End With
     Set rs = Nothing
End If

'Destroy the remaining objects
Set API.IntBlockMgr.IntegrationMgr.PobjIntegrate = Nothing
Set BlOCKPROC = Nothing

End Sub

Search for the app to "Excel" readme that may address your question.

Tags: Business Intelligence

Similar Questions

  • Access the method of class (impl) view of bean object (or vice versa)

    Halo everybody, I use JDeveloper 11.1.2.1.0

    I use a UsersViewImpl class with a method that update the table as below.

    public void resetEmployeeSearch() {}
    removeApplyViewCriteriaName ("viewCriteria");
    executeQuery();
    }

    and I have a UserBean class with a method that reset the values of fields of research such as below.

    {} public void resetInput (ActionEvent actionEvent)
    ........ RichInputText = entry...
    input.setValue("");
    AdfFacesContext.getCurrentInstance () .addPartialTarget (searchForm);
    ........
    }


    I want to implement that, once I press a button, the two methods are called.

    I tried to call method of bean using vs UsersViewImpl = new UsersViewImpl... who does not and will not work.
    I've read about something as ViewObject vo = am.findViewObject ("DeptView1") but I duno how to use because I can't have a good example.

    Any suggestion on access to the method of class (impl) view of bean object (or vice versa)?
    Or is it possible to combine the two method in the same class?


    Thanks :(

    and then create a link to this effect in your page. > Sorry, dun get this part. You create the link from the button to the UsersViewImpl method?
    The code below should be method (binding) in UsersViewImpl, right?
    OperationBinding op = ((DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ()) .getOperationBinding ();
    op. Execute();

    What I meant to say call this code your method of bean... this way you can call both the logic in your bean and the method of VO together!

  • Doc.saveAs () method to get an error message

    Hi all

    I want to save a pdf file under a range of png with the saveAs() method files.

    this.saveAs ({cPath: "/ E/temp/temp.png", cConvID: "com.adobe.Acrobat.png"});

    I have run this script and choose a pdf file to process.

    But get an error like this,

    ---------------------------------------------

    UnsupportedValueError: The value is not supported. = > Parameter cConvID.
    Undefined Doc.saveAs:1:Batch: Exec

    It seems that something wrong with the cConvID parameter. com.adobe.Acrobat.png is in the cConvID of Acrobat Javascript API Docs lists, why it could report error message?

    ENV: Windows/Acrobat 9.0 Pro

    Think in advance.

    Kind regards

    -gavin

    It should be "com.adobe.acrobat.png", not "com.adobe.Acrobat.png".

    JavaScript is case sensitive...

  • methods of class in another class

    Hello

    I would like to know is there is another way than I do with the embeded classes in another:

    ex I have a device class that hosts a class Com (RS - 232...)

    what I do I want to setup a com of a device is get com device object then appliing change the COM with com whan methods

    is there a way to apply the com method directly to the device?  I thought to get instr, method in the Com class so unbundle is directly

    but I don't think it's a good thing...

    Is there something to do with the class friend or community?

    See the attached .jpg

    Concerning

    Tinnitus

    In the photo, I assume you mean associations and design of composition model.

    You can simply implement accessor screws in the Instr.class to get/set the Com.class. Using a design of val, you would call get the Com.class, regardless of the methods on the Com.class and then put it back in the Set accessor: Inst.class.SetCom (Com).

    Using a design by reference, you don't need the Setter and can set the ReadOnly property of Com of Instr.class. But then you do the sequencing (program flow) by the single thread of error.

    Felix

  • Method in class java.lang.Object [] business need not be declared as final

    Hello

    I'm deploying a Java 7. EAR to Weblogic 12.1.3 and I get the following error

    The track repeats four times, changing the method name that is highlighted in bold: wait, getClass, notify, and notifyAll

    Can someone explain to me what was going on? The stack trace shows nothing else. There seems to be something to do with EJB.

    This post is the only related information I ve got EJB 3.0 and jndi lookup (simple question) , but it suggests to use @Remote worthless. That s not my case. This app has worked before with @Remote pointing to a Remote Interface

    Any help much appreciated

    Thank you

    weblogic.ejb.container.compliance.ComplianceException: method of business [wait / getClass / notify / notifyAll] in class java.lang.Object must not be declared as final

    at weblogic.ejb.container.compliance.Ejb30SessionBeanClassChecker.validateBusinessMethod(Ejb30SessionBeanClassChecker.java:274)

    at weblogic.ejb.container.compliance.Ejb30SessionBeanClassChecker.checkBusinessMethods(Ejb30SessionBeanClassChecker.java:229)

    at sun.reflect.GeneratedMethodAccessor232.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:497)

    at weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:100)

    at weblogic.ejb.container.compliance.EJBComplianceChecker.check(EJBComplianceChecker.java:90)

    at weblogic.ejb.container.compliance.EJBComplianceChecker.checkDeploymentInfo(EJBComplianceChecker.java:81)

    at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:172)

    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:346)

    at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:314)

    at weblogic.ejb.container.deployer.EJBDeployer.compileJar(EJBDeployer.java:429)

    at weblogic.ejb.container.deployer.EJBDeployer.compileIfNecessary(EJBDeployer.java:355)

    at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:723)

    at weblogic.ejb.container.deployer.EjbModuleExtension.postPrepare(EjbModuleExtension.java:98)

    to weblogic.application.internal.ExtensibleModuleWrapper$ PrepareStateChange.next (ExtensibleModuleWrapper.java:297)

    to weblogic.application.internal.ExtensibleModuleWrapper$ PrepareStateChange.next (ExtensibleModuleWrapper.java:285)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)

    at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:109)

    at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)

    to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:175)

    to weblogic.application.internal.flow.ModuleStateDriver$ 1.next(ModuleStateDriver.java:170)

    to weblogic.application.utils.StateMachineDriver$ ParallelChange.run (StateMachineDriver.java:80)

    at weblogic.work.ContextWrap.run(ContextWrap.java:40)

    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:548)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

    I thought about it

    In one of my EBJ´s @Local and @Remote have been pointing to the same Interface

    In any case, the error does not specify which EJB is a failure. He says nothing, really

  • AM how to call the methods of class Impl EO

    Hello world

    I try to display database data in a table, and I need to add a transitional and calculated attribute.

    So I created an EO, I added a transitional attribute, and now I need to create the method that calculates its value.

    I created this method of AOS.

    Back to EO Impl class, I want to call this method in the Get accessor of my transitional attribute.

    To call this AM method in the EO Impl category, I have to get the AM, and I don't know how to do it. Because I'm used to getting the pageContext controller AM.

    I googled and found that I don't need to create the method in the AM, I found that I just have to code directly in the Get accessor.

    But again, to calculate my transitional attribute, I have need for some queries and for that I need OADBTransaction, which means once again, I need to get the AM in the Impl EO class.

    I'm confused, I don't know how to do, if anyone can help please

    Thank you

    Kind regards

    Afaf

    If you derive the value based on the query, it would be better to do it in a single query.

    If you can stick the main request and the subquery (s) here, I take a look.

    If this is not possible using the query, you can get the oaDBTransaction like below in the VO RowImpl.

    Import oracle.apps.fnd.framework.OAApplicationModule;

            OAApplicationModule appModule = (OAApplicationModule)this.getApplicationModule();
            appModule.getOADBTransaction()
    

    See you soon

    AJ

  • Call methods between Classes

    There's a week again to ACE

    I am trying to create a "FrontController" like that in Cairgnorm, I won't use Cairgnorm because I don't have the time to learn this method right now. in any case, I want to spend my events to the FrontController and have that runs the appropriate method. All the examples I've seen use methods in the FrontController class. This will quickly become a mess, and I would break the code into separate logical categories.

    So my question is, how do you instantiate one method from another class?

    FrontClass.as
    public class FrontClass
    {
    addEventListener ("listenFor", this)
    }

    DoThis.as
    public class doubts
    {
    public void doubts (event): void {}
    }

    Thank you!!

    Hi I suggest, to have the FrontClass access to the instance of the class of doubts.

    See code below:

    public class FrontClass

    This var: doubts;
    {

    function FrontClass() {}
    this.addEventListener ("listenFor", doThis.doThis)
    }
    }

  • Save methods (2) but no help with iPhoto

    While I was asking a question on merging photos and iPhoto, I came downstairs to discover that iphoto had a picture inside, out of the 13 999. It was a document that I have identified as not even mine. Since then, I have tried several times to restore IPhoto al the whole folder "photos" with time machine, that will only repair the photo one alone (the document). I continue to go further and further back in time, in the hope of a restoration that took a few photos. I'm now trying Crash Plan for a restoration, but that one doesn't look good either. Currently the time machine is something that took much longer than before and I'm keeping my fingers crossed. My photo library is not complete, so I will lose about 1000 photos if something does not work here. I have a stunned and felt as if I had it covered with 2 separate backup plans, one on the site and the other off. I currently feel like the only method is to burn the DVD (a hundred I guess) and store them every house of the mydaughters, the current technology is not quite what it seems. Any ideas would be appreciated.

    Since then, I have tried several times to restore IPhoto al the whole folder "photos" with time machine, that will only repair the photo one alone (the document)

    You need to restore from Time Machine is an iPhoto library.   Are you being an iPhoto library in one of the versions of the images folder that you restored?

  • My selection tool is stuck on a sign - and the use of all standard methods for change sign + fail.  How to unlock it?

    My selection tool is stuck on a sign - and nothing that I make using standard methods to change a sign of failure.  How to unlock it?

    Have you tried to reset the tool by right-clicking here?

    Have you tried to reset the preferences?

    To reset the preferences:

    If Photoshop is already open on your screen, close (Quit). Then press and hold Shift + Ctrl + Alt (Win) / command + shift + Option (Mac) on your keyboard and start Photoshop. A dialog box appears asking if you want to delete the preferences file existing ("settings"). Click Yes in the dialog box. The existing preferences file will be discarded and a new one will be created.

  • method in class amimpl

    Hi experts,

    am on jdev 11.1.15.0

    generalledgerAMImpl it holds
       public String checkLoginCredentials1(String p_user,String p_pwd)
        {
        System.out.println(p_user + " " + p_pwd);
        ApplUsersVOImpl  vo = (ApplUsersVOImpl)this.getApplUsers1();
        vo.setNamedWhereClauseParam("p_user",p_user.toUpperCase());
        vo.setNamedWhereClauseParam("p_pwd",p_pwd.toUpperCase());
        vo.executeQuery();
        int rowCount=vo.getEstimatedRangePageCount();
        System.out.println("rowCount="+rowCount);
        if(rowCount==0) 
        { 
     //   throw new JboException("Password doesn't match '" +p_pwd+    "'");
           throw new JboException("Username or Password is Incorrect");
         }
           return "Welcome"+ "  " + p_user.toUpperCase();
        } 
    and this method in the UI. as button. It aligns with db and if correct redirect otherwise error.

    OK fine. first of all, things are fine.

    y at - it a possiblity to call this method impl viewrow or eoimpl
    How can call this method. ?


    y way. you call average I need the return value.

    so just ask?

    Important note: checkLoginCredentials1 (String p_user, String p_pwd) in this method.

    1 string p_user,
    2 channel p_pwd value passed @ time only. rest of the time is unable to get it.

    I hope you all the understud? There is everything about the link it? pls post it here.

    (:

    Published by: Les on October 10, 2011 03:51

    You can assign the p_user offering like this nd p_password
    asssign the value of username and passwrod managedbean as

                  DCIteratorBinding dciter;
                  BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                  dciter = (DCIteratorBinding) bindings.get("EmpView1Iterator");
                  dciter.getDataControl().getApplicationModule().getSession().getUserData().put("USERNAME", getUserName()); // getUserName is the method that will return the inputcomponent username mapped in the value attribute
                  dciter.getDataControl().getApplicationModule().getSession().getUserData().put("PASSWORD", getPassword());// getPassword is the method that will return the inputcomponent password
    mapped in the value attribute
    

    access the session data in the following code

    String p_user = getDBTransaction().getSession().getUserData().get("USERNAME");
    String p_pass = getDBTransaction().getSession().getUserData().get("PASSWORD");
    
  • 0x7007045D while trying to save up... back failed!

    Please help... Thank you

    Hello

    make backups on an external hard drive or DVD

    see if this information helps you

    How to make a backup of your data

    http://www.vista4beginners.com/how-to-backup-your-data

    How to restore your files

    http://www.vista4beginners.com/how-to-restore-files

    the 1st link below is how do the backup complete pc

    http://www.bleepingcomputer.com/tutorials/tutorial145.html

    and that is how do to recover the backup complete pc

    http://www.bleepingcomputer.com/tutorials/tutorial144.html

    and here is the information of microsoft in restoring a system image backup

    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-your-computer-from-a-system-image-backup

    If you have problems, it's in here is a forum for microsoft specifically for backup issues

    http://social.technet.Microsoft.com/forums/en-us/WindowsBackup/threads

  • Close Excel workbook ActiveX will not save

    I use ActiveX with Excel and try to save and close a workbook, but not to close the application.

    My question is twofold:

    First of all, I can't get a workbook to close when save is wired to her and defined as True. But once save set to False, the workbook closes very well (except it does not save of course). I thought that this could be linked to the following sentence of MSDN

    If there are these changes and the workbook appears in the other windows open, this argument is ignored.

    To check that this is not the case, I completely closed on Excel and tried again. Always the same question.

    So, my next step is to try a workaround as the use of the saveas method, then I can close the workbook without saving changes after (this constant i.e. false wired upward).

    Since the MSDN site: xlLocalSessionChanges = 2 the local user's changes are always accepted.

    But, when I "2 wire" to the variation of resolution of conflict for the saveas method, I always a dialog box asking the user if it is ok to replace the file to appear.

    Anyone encountered this before? I stuck links to MSDN, below.

    http://msdn.Microsoft.com/en-us/library/bb241584 (v = office. 12) .aspx

    http://msdn.Microsoft.com/en-us/library/Microsoft.Office.Tools.Excel.workbook.close (v = vs. 80) .aspx

    http://msdn.Microsoft.com/en-us/library/Microsoft.Office.Tools.Excel.workbook.SaveAs (v = vs. 80) .aspx

         

    Workbook has become corrupted. Solution was to recreate.

  • Binds the exportXFAData(); method for the saveAs event

    I have an XFA form that was built with LiveCycle and I try to write javascript to Adobe who will export the form data to an XML file whenever a user manually saves the file in Acrobat. Preferably, this feature is easily sharable, because I have clients who need to have this ability.

    I'm a novice, but it seems that the interactive objects are grey and so I can not add a custom button. That's why I hope to link the exportXFAData(); method for the saveAs event. When a user does CTRL + S or file > save (sub)... the XML should be exported to the desktop.

    It seems that I have to use the exportXFAData() or exportAsXFDF() method.  I found something that says: " it is a very simple process to do this, use the method saveAs Doc object... " and copy the following code:


    this.saveAs ("/ c/temp/test.xml", "com.adobe.acrobat.xml - 1-00");

    I do not know where to write this code, or if it must be adapted (not to mention that the path) to accomplish what I asked above.

    Thank you very much,



    Carl


    It does not export form data, as far as I know, but another schema. There is a different method for acroforms export but I don't know for XFA forms. You should check the reference XFA JavaScript, not google.

    The example you found is not in any way binding to the SaveAs event. Rather, it uses a special feature of the document.saveAs method that allows you to save/export other formats instead of PDF, such as file options > save as. The code generally added to a button, but do not work (see below). I don't know if you can run this in an event WillSave or similar, that; s a separate exercise.

    Don't forget to read the XFA JavaScript document for this method since it will have security restrictions designed to stop incorporating any kind of back up/export to a file - because think havoc if a PDF file that you have downloaded begins to silently save/export the files to your computer. Do not try to use acroform rather documentation! And I see that what you quoted DC Acrobat SDK Documentation applies to the acroforms.

    For more specific help, I suggest the LiveCycle Designer forum. We are dealing here Acroforms.

  • Simple enough, but calling one method from another class

    Hi all
    I know it's pretty simple, even though I do not see where I am going wrong for some reason any. Basically, I have a class that extends JPanel but when I try to call one of its methods in my main class I get an error. The code (I hope) is:

    Main.Java
    import java.awt.BorderLayout;
    // ...
    import javax.swing.UIManager;
    
    public class Main extends JFrame implements ActionListener {
    
         JFrame frame;
         public static JPanel statusBar;
    
         public Main() {
    
              // ...
    
              // Add a status bar
              statusBar = new StatusBar();
              mainPanel.add( statusBar, BorderLayout.SOUTH );
    
              setContentPane( mainPanel );
              // ...
         }
    
         // ...
    
         public static void setStatusBarText( String s ) {
              statusBar.setStatusText("Test");
         }
    
         // ...
    }
    StatusBar.java
    import java.awt.Color;
    // ...
    import javax.swing.SwingConstants;
    
    public class StatusBar extends JPanel {
    
         private int barWidth;
         private static JLabel status;
    
         public StatusBar() {
              super();
              //barWidth = Main.getProgramWidth();
              //setPreferredSize( new Dimension(barWidth,22) );
              setLayout( new FlowLayout( FlowLayout.LEADING ) );
              setBorder( BorderFactory.createMatteBorder(1, 0, 0, 0, new Color(160,160,160) ) );
    
              status = new JLabel("Test", SwingConstants.LEFT);
              //status.setVerticalAlignment( SwingConstants.CENTER );
              add( status );
         }
    
         protected void setStatusText( String s ) {
              status.setText( s );
              revalidate();
         }
    }
    The "statusBar.setStatusText ("Test")"; call in the main class file does not work and I get the error:

    >
    cannot find symbol
    symbol: setStatusText (java.lang.String) method
    Location: class javax.swing.JPanel
    statusBar.setStatusText ("Test");
    >

    Any ideas what I am doing wrong? I created an instance of the class called status bar StatusBar, can I use it to call the setStatusText() method (via statusBar.setStatusText ()) I thought everything is OK, then it does not work? Even if there is an easier way to do what I want to achieve (i.e. to update a JLabel since the 'central' main class file instead of setting the JLabel static and have all classes call him directly), I'd be glad to know where I am going wrong here nevertheless.

    Thank you very much
    Tristan
         public static JPanel statusBar;
    
         public static void setStatusBarText( String s ) {
              statusBar.setStatusText("Test");
         }
    

    >
    cannot find symbol
    symbol: setStatusText (java.lang.String) method
    Location: class javax.swing.JPanel
    statusBar.setStatusText ("Test");
    >

    The type of variable statusBar is JPanel. That's all the compiler takes into account. It is not relevant that at a certain point in the program, the type of the object pointed to by this variable is a subclass of JPanel (because at another time, it might be an instance of another subclass or JPanel itself.

  • Cannot write via command Ref to class VI

    LV2013 SP1, Win7

    I'm an old LabVIEW and OOP in other languages, but fairly new to LVOOP.

    This code worked fine until I put the part of the user interface in a CLASS.

    I'm trying to read a file (PDM) and complete a series of controls WITHOUT KNOWING THEIR DATA TYPES.

    Simply pass an array of the refs control to a VI and tell more later to save to a file.  The VI built the control label TDMS property names and gets their values as variants, able to write to a file.

    During playback, the names in the file are matched to control labels and controls MUST BE filled.

    As I said, it worked fine until I put it in a CLASS.

    Here's the user interface in question - there are four controls that I wish to backup/restore.

    It is a category.

    I collect four references and to a method of CLASS PARENT

    Here is the method of the PARENT class - it's simply the arbiters of control to a method without class, who remembers them via a id 'signature'

    Here is the part READING this property Storage Manager.

    All the properties of the file have been read in the tables.  Here we corresponds to a given control name with the name of the file and set the value of control once we find a matching name.

    But it does not work.  The value of the control is not changed.

    Here is an extract from log debugging:

    I KNOW that the Ref of the order is correct, because the NAME who has logged from the REF CONTROL itself.  The names are not stored.

    The VALUE in the debug log from the file.

    There is no error reported.

    But just what is the control on the Panel is NOT affected.

    The setting of the green label text color is just an attempt to debug - it does NOT affect the control either.

    Is there some kind of security "Shield" which prevents me from writing to a control inside a class?

    Looks like which should cause an error, as appropriate.

    Yet once, it worked very well until the classes participated...

    Something else I'm missing?

    I guess I can:

    1... open a separate reference (and then close) just to get the size of the screen.

    2... spend a REF for the SECONDARY in the class, and have the method of the user interface fit into the secondary.

Maybe you are looking for

  • Please how I detected one of my hotmail mailing list

    Please can you help me with how to remove someone from my hotmail mailing list? I tried everything, but just can't get rid of them, so please help me. I have two people on my list who are no longer alive, and then there are people that I don't want o

  • HP Envy 1540T H8: How can I activate the AHCI?

    I installed a new Pro 850 Samsung 1 TB SSD drive which replaced a Samsung 256 GB SSD.  However, I am unable to get the computer to start with I select AHCI mode in the BIOS of the reader.   I can only boot into RAID mode and magician then tells me to

  • CE847A: There is no our printer in the list of these

    PC defines our (LaserJet M1132 MFP) MFP as a USB device, but not as a printer. We downloaded and installed the driver from The Official website, but it does not work as well. We used to have another operating system (Microsoft Windows 7, 32-bit). The

  • Adobe instead of Excel

    For Windows XP How can I configure my computer to automatically open files that I double click on with Adobe instead of Excel?

  • How can I "Enable bidirectional Communication" on the printer?

    I need whereas my printer in my hard drive again.  I put it again and now I can not anything on this subject.   But he came to say, please turn the settings to "Enable bidirectional Communication" on the printer properties dialog box.