Random application object lost in Portal
Hi people,
I'm having a problem with the application object.
Some times, in a random way, i'm losing the state of the application object between request's.
This appens when I'm using the BSP application in the SAP Portal.
Thanks,
Paulo Ruivo
Hi,
the problem is that in the url I pass a parameter that in the bsp page copy to an attribute of the application.
Then in the controler i try to read this value and it is empty, all the information in application object is lost.
This appens during one single request.
I have several Iviews pointing to the same BSP application, the diference between the content that is shown is controled by the parameter passed in the URL.
Is it possible that while navigating between iviews, the info in the BSP application is mix up. Something like the aplication start (iview open) and then been close (previous iview close)?
Thanks for the help.
Paulo Ruivo
Similar Messages
-
POrtal application object - Abstract Portal Component, Location dropdown.
Hi
I am creating a Portal application project in NWDS.
Inside this project I am creating a POrtal application object -> Abstract Portal Component.
Now, there is a dialigue box which appears, prompting for object name and package.
In the same dialogue box there is an additional dropdown box for Location.
It has two values "api" and "core".
What does these mean.
ThanksThe location of the new Java class file determines whether other applications can reference the classes. Generally, the choice is only meaningful when defining services and the interfaces to make available to those applications the reference the service.
You can specify one of the following:
■ Core (default): Places the file in the src.core project directory, and makes it private.
■ API: Places the file in the src.api, and makes it public.
Regards,
Khushboo -
How to show Crystal Reports in BW system to Business Object XI R3 Portal
Hi All
I have some Crystal Reports in BW system and want to call them on Business Object XI R3 Portal.
Lets say that there are x number of reports in the system.
I need to show them on BO Portal by passing some parameters.
I am not able to start that how I can show them.
I followed one tutorial on Cystal Report for Eclipse and I was able to make a Crysral Report for Web Application.That was deployed successfully. I got one URL to run that.
But now if I want to add this link in my existing BO Portal how can I do that.
Can anyone help me in that, that how to proceed.
Thanks & regardsWe don't allow customizing our pages. Any patches installed will over write any changes you do. Create your own user interface.
-
Create new Siebel Application Object Manager
Hi, guys!
Tell, please, to me explicitly how to create the new Call Center Object Manger. Mainly me interests as to create for this AOM a new virtual directory on Sun ONE webserver. Please explain me this question very explicitly.Hi Umair ,
Thaks for your reply!I wanted to inform you also that I don't have installed PDK on my PC - I only have the Sneak Preview.
-I wondered if creating Portal Application Object/Projects has to do something with PDK or it is part on WebDynpro way to develop Portals?
-My goal is to be able to develop Portal without using WebDynpro methodology- instead I want to be able to use and learn the other methodology - which seems to me is called PDK -if I am correct?
-If I am not wrong I will need to install PDK6.0 to use the second methodology ?
-Is Enterprise Portal Perspective on NWDS used in this case or it is used in both cases when developing Portals ?
-I is not much clear which tools as a developer are needed in both cases ?
If one can clarify this basic concept it will be very useful.
I clearly want to distinguish between both way of developing portals.
I can post more specific questions if the above sounds too common..Thanks in advance!
Regards, Bob -
0TCT_DS01 Missing BI Application Object
Hi,
I've activated BI Technical Content and loaded 0TCT_C01. When I run queries from the portal (via std web template 0ANALYSIS_PATTERN), listcube on 0TCT_MC01 only shows the BI Application (i.e 0ANALYSIS_PATTERN) but not the BI Application Object (i.e Query Name).
I'm currently on ABAP SP16 and have applied the following patches:
1115531 - Error in statistics recording on the Web in the BEx Analyzer
1134456 - UTC Time Stamp is incorrect in cubes 0TCT_C01,2,3 for MDX
1138874 - BIAC User wait times no longer included in Front End times
1150872 - BIAC De-implementation of SAP Note No. 1091820
1152320 - BIAC Wrong OLAP time in query Runtime Statistics
1160506 Dump while executing InfoPackage 0TCT_DS01, DS02, DS03
1302812 - BI Application object name does not appear in the output
Any help is much appreciated. Thanks.
Regards,
JianyunHi
During the installtion of 0TCT_MC01, set the grouping to Before and After and check if the Queries are avilabel.If they are not active actiavte them.
Regards, Hyma -
Save Hashtable in application object
Hi,
I have a very annoying bug that I have no idea where is it coming from.
I'm saving a large Hashtable object( 3100 entries).
The hash is built that the key is a code(String, e.x 111), and it points to a Vector which holds Strings.
This Hash is saved in the application object and it is saved o.k
After a while( days ,hours ) the Hashtable gets corrupted I get ArrayIndexOutOfBounds on places that worked fine a day before.
Does someone knows what can be the reason for that?
10xhi check this..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0901cba-f49e-2910-748c-d7ce4c0c4c1c
DATA: file TYPE string VALUE `test.dat`.
OPEN DATASET file FOR OUTPUT IN TEXT MODE
ENCODING DEFAULT
WITH SMART LINEFEED.
TRANSFER `1234567890` TO file.
CLOSE DATASET file.
regards,
venkat . -
Closing a webdynpro application, should call a portal page
Hi All,
I have a requirement in which, after a webdynpro application is closed in portal, the portal should show the workset content from which the webdynpro application is triggered.
For example,
Wedynpro application Created is ZWDA1.
Two iviews are created in portal which refers to the webdynpro application ZWDA1, the portal Iview names are ZPORTAL_IVIEW1, ZPORTAL_IVIEW2.
Two worksets ZWORKSET1 & ZWORKSET2 are created in portal which refers to Iview ZPORTAL_IVEW1 and ZPORTAL_IVEW2 respectively.
Two roles ZROLE1 & ZROLES2 are created in portal which refers to workset ZWORKSET1 & ZWORKSET2 resepectively. These two roles are assigned to users ZUSER1 and ZUSER2, when these user logs into portal they will see the content of the workset ZWORKSET1 & ZWORKSET2 respectively.
Assuming ZUSER1 and ZUSER2 invokes the portal ivew ZPORTAL_IVEW1 & ZPORTAL_IVEW2, the underlying webdynpro application called is same. So in the webdynpro application only I need to write the code to close the application and call the workset ZWORKSET1 for ZUSER1 and workset ZWORKSET2 FOR ZUSER2. This differentiation I am not able to indentify in webdynpro application, I thought of using relative navigation.
Any suggestion to achieve this functionality is greatly appreciatable
Regards,
H.K.Hayath Basha.Just closing the message
-
Copy an Application in the same portal?
My application seelct data from tables in a specific schema. I want to create a demo, with the same forms, etc but with different tables (to allow me to change names, ids, etc). I recreated the tables as another user, but my LOVs all access the original. My plan is to recreate the application on the same portal server.
When I tried to use appexp and appimp (CHECK) with a different app, eveything has the same portal IDs, so errors out with ID nnnn already exits. Is there a way to copy an app?
GaryHi Andrew
Try the following:
Use export / import instead of the copy function.
Between the two steps edit the export script by replacing all appearances of "old_schema" by "new_schema".
Note: Editing the export script is a efficient way to make some changes. We use this step e.g. to replace the public templates when moving applications from the test to the production environment in order to respect the changed navigation logic.
Thanks
Peter -
Error in creating Callable object of type Portal iView
Hi People,
I need to create a callable object of type Portal iView / Page,
But whenever I try to create it gives me a RunTime Exception:
<b>java.lang.ClassCastException
at com.sap.caf.eu.gp.ui.co.portal.dt.VBrowse.appendChildren(VBrowse.java:523)</b>
Please suggest some way out,
Thanks in advance,
DeepakHi,
How many actions are there in your process?. Is it having only one action that is Web service?.
I think, The process should at least contain one UI action.
If your process is having multiple actions, there may problem with other actions. Test the web service action seperately to confirm this.
Thanks -
Invalid method "Save As" from Excel application object
I have Windows 2000 and Excel 2002 installed on my machine.
I down loaded "renamed Excel 2000 workbook.vi" from NI website. Relinked ref num to Excel application object but get the error of invalid method (Save As). Tried to relink invoke node to Save As by selecting method from drop down menu. However this method is not on the list. Tried other excel objects but can not find "Save As" method. Has this been removed/moved?I was able to correct the error by relinking the Workbooks->Open to Open. This changes the subsequent Invoke Node from IAppEvents to _Workbook. There you will find the Save As method.
Michael
www.abcdefirm.com
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property Inspector -
I need to get the Excel.application object from a window handle using AccessibleObjectFromWindow. I can't seem to make the code work. First, I successfully search for the XLMAIN windows. Then, when I get a handle, I execute the AccessibleObjectFromWindow
function. It seems to return a value of -2147467262 in all cases. Therefore, I believe that it is returning an error value. I can't figure out how to determine the meaning of this value.
If it is an error value, I believe that one or more arguments are in error. My best guess at present is that the GUID argument is incorrect. I have tried two GUID values: {00020400-0000-0000-C000-000000000046} and {90140000-0016-0409-0000-0000000FF1CE}.
I have seen both used in conjunction with OBJID_NATIVEOM. Neither one seems to work. I really would prefer not to use the second one as it has an Excel major and minor version number. I would hate to have to change this code, if a new minor version appeared.
The attached code has been commented to show which parts have been shown to work and which not. I'm at my wits end and really need help.
Thanks
'This module is located in Access 2010, but this is an Excel question.
Option Compare Database
Option Explicit
' Module-Level Declarations
'The GetDesktopWindow function and FindWindowEx function work just fine.
Public Declare Function GetDesktopWindow Lib "user32" () As Long
Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" _
(ByVal hWnd1 As Long, _
ByVal hWnd2 As Long, _
ByVal lpsz1 As String, _
ByVal lpsz2 As String) _
As Long
'I'm not getting the expected output from this function (see below)
Private Declare Function AccessibleObjectFromWindow& Lib "oleacc.dll" _
(ByVal hwnd&, _
ByVal dwId&, _
riid As GUID, _
xlwb As Object)
Type GUID
lData1 As Long
iData2 As Integer
iData3 As Integer
aBData4(0 To 7) As Byte
End Type
Function ExcelInstances() As Long
' Procedure-Level Declarations
' Value of OBJID_NATIVEOM verified by checking list of Windows API constants _
on this site: http://www.lw-tech.com/q1/base.htm
Const OBJID_NATIVEOM = &HFFFFFFF0
Dim hWndDesk As Long 'Desktop window
Dim hWndXL As Long 'Child window
Dim objExcelApp As Object 'Final result wanted: Excel application object
'Following variable (xlapp) to be set by AccessibleObjectFromWindow function
Dim xlapp As Object
Dim IDispatch As GUID 'GUID used in call to AccessibleObjectFrom Window function
'Set up GUID to be used for all instances of Excel that are found
Dim tmp1 As Variant 'Return value from AccessibleObjectFromWindow
' Executable Statements
SetIDispatch IDispatch
IDispatch = IDispatch
'Get a handle to the desktop
hWndDesk = GetDesktopWindow 'This seems to work
Do
'Get the next Excel window
'The following statement seems to work. We are finding and counting _
correctly all the instances of Excel. hWndXL is non-zero for each _
instance of Excel
hWndXL = FindWindowEx(GetDesktopWindow, hWndXL, "XLMAIN", vbNullString)
'If we got one, increment the count
If hWndXL > 0 Then
'This works. We correctly count all _
instances of Excel
ExcelInstances = ExcelInstances + 1
'Here is the problem. The following statement executes and returns a value of _
-2147467262. xlapp, which is passed by reference to AccessibleObjectFromWindow, _
is set to nothing. It should be set to the object for Excel.application. _
I believe that this value is not an object. I tried to reference tmp1. in the _
immediate window. There was no Intellisense.
'I think that the function in returning an error value, but I can't figure _
out what it is. I believe that AccessibleObjectFromWindow returns error _
values, but I don't know where to find their values so I can interpret the _
function's results.
'As best I can tell, the hWndXL parameter is correct. It is the handle for _
an instance of Excel. OBJID_NATIVEOM is set correctly (see constant declaration _
above). xlapp is passed by reference as a non-initialized object variable, which _
will be set by AccessiblObjectFromWindow. IDispatch may be the problem. It is set _
as shown below in the procedure SetIDispatch(ByRef ID As GUID). This procedure _
appears to work. I can see that IDispatch is set as I intended and correctly _
passed to AccessibleObjectFromWindow.
tmp1 = AccessibleObjectFromWindow(hWndXL, OBJID_NATIVEOM, IDispatch, xlapp)
'Need to write code to test tmp1 for error. If none, then set objExcelApp = _
object. Also, I exect xlapp to be set to Excel.application
End If
'Loop until we've found them all
Loop Until hWndXL = 0
End Function
Private Sub SetIDispatch(ByRef ID As GUID)
'Defines the IDispatch variable. The interface _
ID is {90140000-0016-0409-0000-0000000FF1CE}.
'NOT USING {00020400-0000-0000-C000-000000000046}, _
which could be the problem
'9 is release version - first version shipped (initial release)
'0 is release type - retail/oem
'14 is major version
'0000 is minor version
'0016 is product ID - MS Excel 2010
'0409 is language identifier - English
'0 is x86 or x64 - this is x86
'000 reserved
'0 is debug/ship
'000000FF1CE is office family ID
With ID
.lData1 = &H90140000
.iData2 = &H16
.iData3 = &H409
.aBData4(0) = &H0
.aBData4(1) = &H0
.aBData4(2) = &H0
.aBData4(3) = &H0
.aBData4(4) = &H0
.aBData4(5) = &HF
.aBData4(6) = &HF1
.aBData4(7) = &HCE
End With
End Sub
DaveInCalabasasI don't think you can return a reference to Excel's main window like that as you are attempting to do.
Ref:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd317978(v=vs.85).aspx
It's relatively straightforward to return any workbook's window in any given instance, and in turn it's parent Excel app. Try the following and adapt as required (and include error handling) -
Option Explicit
Private Declare Function FindWindowEx Lib "User32" Alias "FindWindowExA" _
(ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, _
ByVal lpsz2 As String) As Long
Private Declare Function IIDFromString Lib "ole32" _
(ByVal lpsz As Long, ByRef lpiid As GUID) As Long
Private Declare Function AccessibleObjectFromWindow Lib "oleacc" _
(ByVal hWnd As Long, ByVal dwId As Long, ByRef riid As GUID, _
ByRef ppvObject As Object) As Long
Private Type GUID
Data1 As Long
Data2 As Integer
Data3 As Integer
Data4(7) As Byte
End Type
Private Const S_OK As Long = &H0
Private Const IID_IDispatch As String = "{00020400-0000-0000-C000-000000000046}"
Private Const OBJID_NATIVEOM As Long = &HFFFFFFF0
Sub test()
Dim i As Long
Dim hWinXL As Long
Dim xlApp As Object ' Excel.Application
Dim wb As Object ' Excel.Workbook
hWinXL = FindWindowEx(0&, 0&, "XLMAIN", vbNullString)
While hWinXL > 0
i = i + 1
Debug.Print "Instance_" & i; hWinXL
If GetXLapp(hWinXL, xlApp) Then
For Each wb In xlApp.Workbooks
Debug.Print , wb.Name
Next
End If
hWinXL = FindWindowEx(0, hWinXL, "XLMAIN", vbNullString)
Wend
End Sub
'Function GetXLapp(hWinXL As Long, xlApp As Excel.Application) As Boolean
Function GetXLapp(hWinXL As Long, xlApp As Object) As Boolean
Dim hWinDesk As Long, hWin7 As Long
Dim obj As Object
Dim iid As GUID
Call IIDFromString(StrPtr(IID_IDispatch), iid)
hWinDesk = FindWindowEx(hWinXL, 0&, "XLDESK", vbNullString)
hWin7 = FindWindowEx(hWinDesk, 0&, "EXCEL7", vbNullString)
If AccessibleObjectFromWindow(hWin7, OBJID_NATIVEOM, iid, obj) = S_OK Then
Set xlApp = obj.Application
GetXLapp = True
End If
End Function
Note as written if an instance does not have any loaded workbooks a reference will not be returned (though a workbook can be added using DDE, but convoluted!)
FWIW there are two other very different approaches to grab all running Excel instances though something along the lines of the above is simplest.
Peter Thornton -
Error 1603 in deploying Office 2003 by creating an application object using its MSI package!
Hello,
I got the error of 1603 when I ran Office 2003 MSI package through NAL. I
have no idea how to resolve this problem. Even though I enabled logging in
Office 2003 installation, I still could not figure out what went wrong and
what caused the error.
I have used Snapshot to create an application object for a long time with
little problem. However, I could not successfully deploy any MSI package
created by an application object. I knew ZenWork Managing Application has
the feature, but I don't know how to make it work in our environment.
Do I have to know more about Microsoft Window Installer ?
Appreciate your comments and experience in advance
Thanks
Joe Liu
email: [email protected][email protected],
> I got the error of 1603 when I ran Office 2003 MSI package through NAL
>
Start here:
http://support.novell.com/techcenter...tation&x=0&y=0
Yes, understanding MSI helps. FWIW I have deployed 2003 this way.
- Anders Gustafsson, Engineer, CNE6, ASE
NSC Volunteer Sysop
Pedago, The Aaland Islands (N60 E20)
Novell does not monitor these forums officially.
Enhancement requests for all Novell products may be made at
http://support.novell.com/enhancement
Using VA 5.51 build 315 on Windows 2000 build 2195 -
My Contacts File in Applications has lost all name and addresses - how can I retrieve them?
Out of the blue my Contacts File in Applications has lost all my names and addresses. Is there any way I can retrieve them? On my back-up systems they don't appear either. Panic!
LeciaHello again
Alothogh I could not find help on any of the Communities (that I could acyually understand) - I haven't a clue what I have just done but ALL my addresses have now shown up in Contacts. Wish I knew what I had 'clicked" to achieve this - but as I have been "clicking" just about everything in sight - I am not sure what did the magic trick.
Maybe, although I have answered my own query, someone could perhaps tell me what may have happened? I THINK it was something to do with iCloud --- which is something I don't understand AT ALL!
Cheers, Lecia
CHEER -
How to create Illustrator COM application Object in Invisible manner?
Hi,
I added CS6 COM reference in my VB.NET application and after that I have the following basic object creation in order to convert a eps file to svg. But for some reason when I create this COM object it is launching the Adobe Illustrator application. Why it is doing like this? It’s a simple COM object why it is interacting with Illustrator Editor? Could you guide me how to take care this issue please?
Thanks
SGI am going to post a reply here from our other posts... http://forums.adobe.com/message/4692998#4692998
your last post from other message:
Let’s forget about VB part, even in Java script how do we create the Illustrator instance without bring Illustrator IDE up when you create the application object. It’s a COM component right, why would it bring up the UI? Do you have any simple example in Javascript please?
To the best of my knowledge in order to access the Illustrator object model that the application must be running through JavaScript since scripts are run via the UI.
I did find this in the documentation in refference to VB.
CreateObject launches Illustrator as an invisible application if it is not already running. If Illustrator is
launched as an invisible application you must manually activate the application to make it visible:
Set appRef = CreateObject("Illustrator.Application")
So instead of "As New" try "CreateObject"...
Just a guess really -
How to bootstrap swiz to work in application loaded in a portal
Hi,
I have a portal and I'm loading a couple of applicaitons using SWFLoaders which are using the Swiz framework. When loaded in the portal, the Swiz framework is not loading any beans or data. If the applicaiton is run outside the portal it works fine. The SWFLoader is a child of the portal, same security and application domain.
I don't know how to make swiz work. I also created a bootstrapper to load the portal and share classes but I get a compile error if I try this:
import org.swizframework.Swiz;Swiz;
It doesn't do anything. If I add this same line to the portal, it still doesn't do anything. How can Swiz work for children applications loaded in the portal?
Thanks you.On Saturday 06 Mar 2010, fatima.m wrote oops, can't say wrote colon because
the forum software explodes:
doesn't do anything. How can Swiz work for children applications loaded in
the portal?
Support was added in the recent 1.0 beta, I think. Try asking on their mailing
list.
Tom Chiverton
Developer
[email protected]
3 Hardman Square, Manchester, M3 3EB
This email is sent for and on behalf of Halliwells LLP.
Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority.
CONFIDENTIALITY
This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500.
For more information about Halliwells LLP visit www.halliwells.com.
Maybe you are looking for
-
Question: Trying to create a page that displays a directory list of a folder content. Don't want to use the literature module... Would like to create a folder where I easily can upload files (ftp) and create a menu link that displays the folder conte
-
Hi Forum I need to found one user exit in f-63 transaction when the user save it, unfortunely i haven´t found anyone. Some one knows how can i do it ? Thnks Josué Cruz
-
ok so my life is slowly coming to a end. My Iphone 3G that I have had for little over a year has gotten water damaged and is not working. I logged on a few days ago and set up an appointment with the nearest apple store for friday. I have looked at s
-
How can I work out the I cloud
How can I download the music How can I get the I cloud started Need to increase the speed of my cell the fastest processing unit required
-
Can you save everything as a .psd to begin with?
I understand that a JPEG will continually get compressed the more it is saved. So am I correct in knowing that you must save an image as a .psd then edit and then save again as a JPEG? Because I then get a stack of 3 photos for each one i edit. Is