Accessing Multiple Forms - Form Already Exist
Hi,
I created Screen (For Add-on) through screen painter which I can access from Purchase order Sub Menu. I can able to access only one screen at a time. Am getting Error u201CForm already existsu201D while accessing second time from menu. I can able to get the screen only after closing current active screen. Cant able to access multiple times Like Normal SAP Screens. Whether itu2019s possible to access Multiple Screen like normal SO, PO screens?
Ganesh,
You have to give the form an unique ID before you load it.
Use the following functions to achieve this:
Private Function LoadUniqueFormXML(ByRef oCompany As SAPbobsCOM.Company, ByRef oApplication As SAPbouiCOM.Application, _
ByVal FileName As String) As String
Dim xDoc As System.Xml.XmlDocument = New Xml.XmlDocument
LoadUniqueFormXML = ""
Try
xDoc.Load(FileName)
LoadUniqueFormXML = xDoc.SelectSingleNode("Application/forms/action/form/@FormType").Value & "_" & _
MaximoTipoForm(oCompany, oApplication, xDoc.SelectSingleNode("Application/forms/action/form/@FormType").Value).ToString
xDoc.SelectSingleNode("Application/forms/action/form/@uid").Value = LoadUniqueFormXML
oApplication.LoadBatchActions(xDoc.InnerXml)
Catch ex As Exception
oApplication.MessageBox(ex.Message)
End Try
End Function
Private Function MaximoTipoForm(ByRef oCompany As SAPbobsCOM.Company, ByRef oApplication As SAPbouiCOM.Application, _
ByRef Tipo As String) As Long
MaximoTipoForm = 0
Try
For Each iform As SAPbouiCOM.Form In oApplication.Forms
If iform.TypeEx = Tipo Then
If iform.TypeCount > MaximoTipoForm Then
MaximoTipoForm = iform.TypeCount
End If
End If
Next
MaximoTipoForm = MaximoTipoForm + 1
Catch ex As Exception
oApplication.MessageBox(ex.Message)
End Try
End Function
Public Function LoadForm(ByRef oCompany As SAPbobsCOM.Company, ByRef oApplication As SAPbouiCOM.Application, _
ByVal FileName As String) As SAPbouiCOM.Form
LoadForm = Nothing
Try
Dim FormUID As String = LoadUniqueFormXML(oCompany, oApplication, sPath & "" & FileName)
'// Apanhar o formulário carregado, através do seu ID exclusivo
LoadForm = oApplication.Forms.Item(FormUID)
Catch ex As Exception
oApplication.MessageBox("LoadForm(" & FileName & "): " & oCompany.GetLastErrorCode & ", " & ex.Message)
End Try
End Function
To open a user form with an unique ID, use this code
Dim oForm As SAPbouiCOM.Form
oForm = LoadForm(oCompany, oApplication, "XMLFormFile.srf")
Regards,
Vítor Vieira
Similar Messages
-
URGENT - Access blocked to forms already created...
How was I allowed to waste hours creating forms and connecting them to my web site, and then when I try to take out a subscription I am told that the service does not exist in the country where I live, whereas my company which would take out the subscription is based in a country where it is available (New Zealand) !!!
What can I do to recover access to the forms created already and being completed each day by clients and to which access is now blocked, and so is costing the company money?Mr Grant,
I have created the shortcut icon, and putted that url.
It initializes the applet and a window appears saying Installed Successfully!
Oracle Aplication Server Forms Services.
The window has an ok button, and I click it, but no form appears.
Then nothing appens..
It says that the window is opening but i've been waiting for centuries and my forms are not shown.
I really need to do it.
Thanks,
Tiago -
Hi All,
While accessing the form more than once error occurs like 'Form - already exists'. How to avoid this error?.
Thanks in Advance.
Regards,
MadhaviMadhvi,
Before you load the form with XML, you check that the form is already open or not. if yes, select the same form, if not, then only open. code goes like this :
Dim foundG As Boolean = False
For i = 0 To SBO_Application.Forms.Count - 1
If SBO_Application.Forms.Item(i).UniqueID = "YourFormUID" Then
foundG = True
Exit For
End If
Next
If foundG = True Then
SBO_Application.Forms.Item("YourFormUID").Select()
Else
Loadfromxml("Form1.xml")
End If
regards,
Binita
Edited by: Binita Joshi on Dec 27, 2008 10:55 AM -
Object view_SAPTASKPageDef of type Form Binding Definition already exists.
Hi, we are on the initial steps of development in Jdeveloper 11.1.2.1.0. just finished our first project and badly stuck with a weird problem.
Everything works well when run by single user, but when multiple users run the application, this exception is thrown
oracle.jbo.NameClashException: JBO-25001: Object view_SAPTASKPageDef of type Form Binding Definition already exists.
i have searched all the files in the project. Only one instance of view_SAPTASKPageDef file exists.
Any help in this regard shall be greatly appreciated. Eagerly awaiting response...
Edited by: 912732 on Feb 6, 2012 9:03 PMLOG GENERATED_ :
<Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Object view_SAPTASKPageDef of type Form Binding Definition already exists.
oracle.jbo.NameClashException: JBO-25001: Object view_SAPTASKPageDef of type Form Binding Definition already exists.
at oracle.adf.model.binding.DCDataControl.addOrCreateBindingContainer(DCDataControl.java:1075)
at oracle.adf.model.binding.DCDataControl.addBindingContainer(DCDataControl.java:998)
at oracle.adf.model.binding.DCDataControl.addBindingContainer(DCDataControl.java:933)
at oracle.adf.model.binding.DCIteratorBinding.internalSetDataControl(DCIteratorBinding.java:2560)
at oracle.jbo.uicli.binding.JUIteratorBinding.internalSetDataControl(JUIteratorBinding.java:540)
at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2477)
at oracle.adf.model.binding.DCIteratorBinding.refresh(DCIteratorBinding.java:4444)
at oracle.adf.model.binding.DCExecutableBinding.refreshIfNeeded(DCExecutableBinding.java:341)
at oracle.jbo.uicli.binding.JUCtrlHierNodeBinding.getChildren(JUCtrlHierNodeBinding.java:742)
at oracle.adfinternal.view.faces.dvt.model.binding.common.ActiveBindingActiveDataModelImpl$PagePhaseListenerImpl.beforePhase(ActiveBindingActiveDataModelImpl.java:242)
at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:550)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchBeforePagePhaseEvent(LifecycleImpl.java:147)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchBeforePagePhaseEvent(ADFPhaseListener.java:119)
at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:63)
at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:319)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) -
How to validate multiple lines which is exist in the form builder at the same session
Hi All,
we are working on oracle Forms personalization to trigger the message at the point of saving multiple lines rather than requiring each line to be save individually. Currently the oracle form is allowing to user to enter two distinct lines that have same resource and basis type in BOM.
Currently the Oracle form is allowing to enter the duplicate combination and not giving any error message even we enter the same combination of data.
As per the customer requirement, they don’t want to validate the data while creating the records but when they try to save the form, in that case it should validate all the records at a time then need to display the appropriate message.
Customer don’t want to customize the Oracle standard form. Here we have only option to use form personalization or through custom.pll.
Any idea on how to validate multiple lines which is exist in the form builder at the same session as before inserting the record itself need to perform the validations for all the records.
Thanks for your help in this regard.
Regards,
Thirupathiyou can write a post script which will do the necessary tasks.
I mean, once you are done with inserting records into these tables, exeute another procedure which will insert these "extra" records, based on some logic.
you may not be able use DB trigger as it may generate mutating error or if you don't write it carefully, it will go into recursive loops as you are refering to same tables.
HTH -
Report painter-syntax error form 'SEL-L023' already exists
Hi,
When i copy a report painter form and generate it to the same report group (same as source report) i get an error 'syntax error form 'SEL-L023' already exists. I saw the ABAP code the source and target have same form name.
Where can i change the form name?
ThanksI will closed this thread as I hv solved my problem already.thks
-
Accessing Multiple Identical Schemas from Single Form
Hi,
I'm working with oracle 9i.
My question is as follows:
If one has muliple schemas that are all identical, is it possible to setup an oracle form (Oracle Forms 9i) that is able to switch between schemas by selecting the schema from an objecton the form like a drop down list etc..I'm wondering if it is possible to design 1 form that can be used to access all schemas from a single logon. if so, how would I go about doing this? Any help would be greatly appreciated!
I hope my question above is clear. If not I am happy to supply more info.
Kind Regard,
DamianYour question is not very clear. Of course your logon will determine which schema. If you want to switch schemas, when the form is already running then you can use ALTER SESSION as Aleksandar indicated, but I would not recommend using it unless all form changes were committed. Another alternative is to create another session in the same schema by using OPEN_FORM, then logout of schema in this second session and login into new schema.
-
i have a half-filled form for my apple id account & in it there is no option as NONE for credit card payment method. Now when i try to create a new account it asks me for a different email/apple id as my actual id already exists???
If you want to use the email address that you used on the first account then you will need to remove it from that first account before you can do so e.g. via the Store > View Account menu option on your computer's or via http://appleid.apple.com - you can create a new email address via http://gmail.com or http://hotmail.com to replace it with.
-
1 SP for multiple Marketing Form
Dear Experts..
Plz check this SP
*IF @transaction_type IN ('A', 'U')AND @object_type in ('22')
BEGIN
If exists (SELECT T0.DocEntry FROM opor T0 inner join ousr t1 on t0.docentry = t1.userid
where t0.docentry =@list_of_cols_val_tab_del AND t0.U_series is null or t0.u_series = 'Primary' and T1.userid = '49')
Begin
SET @error = 1000001
SET @error_message = N'error in selecting Series'
End
END*
This is going well as needed. This SP is for blocking users to access unauthorized series. I need to block users for all marketing documents for series authorization . I was thinking that Can I make this SP for multiple Marketing Forms(objecttypes). But there was an issue that series code on every Marketing Forms is different.
Suppose if Primaty series code on OPOR is 147 then on ORDR same series code got change as 141. For this I created UDF for Series and set it on mandatory and set values same like series name (Primary, WA, WB).
or there is any other alternate for setting authorization on users series wise.
Plz suggest me if my query is possible for same. Otherwise I have to create SP for every form.
Regards,
RaviHi Ravi.......
The object ID of Production Order is 202......
For more information of Object IDs please check this Path and Link......
C:\Program Files\SAP\SAP Business One SDK\Help\objects ID
http://wiki.sdn.sap.com/wiki/display/B1/SAPBusinessOneObjectsIDandMenuIDList
CFL object-Id of Production_order
Regards,
Rahul -
Error in user difined form -Form -Alredy Exist [66000-106]
Hi Experts ,
i have develop my screens through screen painter.
when i opn forms in sap as multiple time i have faced following errors:
*Form -Alredy Exist [66000-106]*
*The Choose From List unique ID already exists [66000-106]*
how can avoide this errors
please help me for this
Regards,
Pravin BajiHi Pravin Baji
Try this code to load your form
Private Shared UIDPath As String = "Application/forms/action/form/@uid"
Private xmlDoc As XmlDocument
Protected Sub LoadXml(ByVal xmlFile As String)
xmlDoc = New XmlDocument()
If Not System.IO.File.Exists(xmlFile) Then
xmlFile = xmlFile.Insert(0, "..\")
End If
If System.IO.File.Exists(xmlFile) Then
xmlDoc.Load(xmlFile)
formUID = xmlDoc.SelectSingleNode(UIDPath).Value
Else
oApplication.MessageBox("ERROR: File " + xmlFile + " not found", -1, "", "", "")
End If
End Sub
Protected Sub LoadForm()
If xmlDoc.HasChildNodes Then
xmlDoc.SelectSingleNode(UIDPath).Value = formUID + System.Math.Max(System.Threading.Interlocked.Increment(counter), counter - 1)
Dim xmlStr As String = xmlDoc.DocumentElement.OuterXml
oApplication.LoadBatchActions(xmlStr)
Dim oForm As Form = oApplication.Forms.ActiveForm
Try
Dim oUDS As UserDataSource = oForm.DataSources.UserDataSources.Item("FolderDS")
If oUDS IsNot Nothing Then
oUDS.Value = "1"
End If
Catch generatedExceptionName As Exception
End Try
Else
oApplication.MessageBox("ERROR: XML File containing the form not found", -1, "", "", "")
End If
End Sub
Hope this will solve your problem
Regards
Arun -
Can you have multiple contact forms in a single Muse site?
I have a site created in Muse that needs to use multiple contact forms of a sort. One is a simple contact form. Two others are sign up forms. In two of the three forms I have to separate the First and Last names. Also in those there are multiple Custom fields and Message fields.
The original simple contact form is working fine and has been. However, I modified one of the pages by adding a second form, the first of the two sign-up forms. It looked great in Muse, but when uploaded to the site, all of the fields were gone, leaving only the Labels in a single paragraph.
Does this mean I can't have multiple contact forms in a single site? If I actually, can, then what might have caused the problem? And what could you suggest for me to try to fix it?
Thank you,
LauraThank you for the information, but I cannot find anywhere in help where to find the field names (if that is my problem). I changed all the labels and the corresponding text inside the field (remember, Muse does not give access to code as far as I can tell). When I preview the page in a browser (using FireFox as default, but also tried with IE), everything looks good. When I export to html and open the index.html on my computer, everything still looks great. But when I FTP the page to the website, this is what I get:
First Name:RequiredRescuer Email:RequiredOrganization (if any):RequiredSubmitting Form...The server encountered an error.Form received.Geographic Areas Covered:RequiredRescuer Cell Phone:RequiredRescuer Home Phone:RequiredRescuer Home Address:
RequiredRescuer City:RequiredRescuer State:RequiredRescuer Zip code:RequiredRescuer Country:RequiredVeterinarian Name:RequiredVet Address:RequiredVet City & State:RequiredVet Phone:RequiredRequiredServices Offered:RequiredAdditional Info About You:Required Rescuer (available to general public) RequiredVolunteer (available only to Rescuers)RequiredPhoneRequiredEmailRequiredOtherRequiredLast Name:RequiredImage Verification:Required
How would you prefer to be listed?
How would you prefer to be contacted?
However, this is how it looks on the preview:
So, what is my problem? And how can I fix it?
Thank you,
Laura -
Getting error while accessing the OAF forms in ADF page.
Hi ,
I am trying to get/access the Oracle forms on ADF page.
I am following http://static.commit-consulting.com/oraformsfaces developers guide for guidlines.
while runnign my page getting the error in popup look like java script error.
the pop up contente is :
Failed to execute java script
Check for JavaScript errors, if the Forms server is running and if your browser can download a javaScript from http://bdc6oracle001.gdnindia.com:8005/forms/frmservlet?config=OraFormsFaces
http://bdc6oracle001.gdnindia.com:8005/forms/frmservlet?config=OraFormsFaces is my server EBS server where oracle forms exist.
Please help me on this.
Thanks,
MadhavaReddyYou're probably better off asking the OraFormsFaces people for help
-
Need help in creating multiple signature forms?
need help in creating multiple signature forms that can be digitally signed in adobe reader
Automator gets a bit unweildy when trying to vary things outside of what the actions provide. Since you are already using an AppeScript in your workflow, might as well do the whole thing:
set baseFolder to (path to desktop) -- the location to create the folder
display dialog "Please provide a new folder name:" default answer "test"
set folderName to text returned of the result
repeat -- keep repeating until a number is returned
display dialog "How many subfolders?" default answer "5"
set theNumber to text returned of the result
try -- test the result
set theNumber to theNumber as integer
exit repeat -- success
end try
end repeat
tell application "Finder"
try -- make new folder
set newFolder to (make new folder at baseFolder with properties {name:folderName})
on error number -48 -- skip errors if the folder is already there
set newFolder to ((baseFolder as text) & folderName) as alias
end try
repeat with X from 1 to theNumber
try -- make new subfolder
make new folder at newFolder with properties {name:folderName & X}
on error number -48 -- skip errors if the folder is already there
end try
end repeat
end tell -
Can a SQL SERVER table be accessed via Oracle Forms
My boss asked me this question today. I am pretty sure the answer is "no", but thought it better to throw it out to the crowd:
"Can a SQL SERVER table be accessed via Oracle Forms?"Yes, this is possible using Oracle's Transparent Gateway. Check out the My Oracle Support (formerly Metalink) document "How To Create A Form Based on SQL Server Table" (Doc ID: 564915.1) for all of the details. This document is based on Forms 10g (10.1.2.0.2) so you may need to upgrade your Forms version if you are not already at this version at a minimum.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
OIM 11g R2 PS1 error in App instances page due to multiple prcoess forms for a single RO
By mistake I attached two process definitions to a single resource object (RO) and it in turn mapped two process forms to the single resource object.
Now when I go to application instances page and do a searc, it shows the below error in the UI
IAM-4067027 : An error occurred in findAppInstances and the cause of error is An error occurred in getParentFormInfo and the cause of error is Multiple process forms exist for Test_Emp_RO..
I tried to assign a different RO and Form to the second process def in teh design console, but it throws SDK update failure error. How to resolve this error? Any inputs are appreciated.Check the for duplicacy in OBJ_KEY column of the process defination. If duplicate values exit then set them to 'null' and commit. Restart OIM if required
Maybe you are looking for
-
Hi, How we process parts return to vendor in DBM warranty Claim Process. We need to send back to these materail refeening Warranty/ DBM order. Chidambaram
-
Reading data From XML file and setting into ViewObject to Pouplate ADF UI
Hi, I have following requirement. I would like to read data from XML file and populate the data in ViewObject so that the data can be displayed in the ADF UI. Also when user modifies the data in the ADF UI, it should be modified back into to ViewObje
-
The iTunes iPod app breaks albums apart if they have multiple artists (perhaps they recognize "artists" and not "album artists"?). This is especially infuriating with soundtracks. I have many soundtracks that I enjoy listening to, and I have found th
-
Add Order as a Filter to a Report
Hi Experts, Iam a Bw Report called Bonus tracking report and Iam supposed to add Order as a filter to it. How can I do that? Thanks SP
-
Why cant i view anything on the page?
Im trying to view a web page but all i see is a loading bar that when finish loading, nothing comes up. My flash player is up to date and my company help desk says it works on their mac computers. Why cant my computer view the same thing?