Copying form objects with subclass info

In Forms 6i, is there any way to copy form objects (blocks, items, canvases, etc.) from one form to another with original subcalss information.
When tried copying, it copies all form objects but subclass information is lost. If we try to do referencing, then it changes subclass references to the source form (i.e., references to original template object library are lost).
Regards,
Sanjiv

I'm sorry, but i don't have any forms 6i-installation and its a long time since i last user it. So i don't know if its possible or not.
There is one way to make it faster than using the property-palette. You can make an object in your object-library as "Smartclass". Then you can apply the object-class using the right mouse in the layout editor and simply apply that smartclass frm the context menu.

Similar Messages

  • How to copy an Object with sequencing primary key?

    Hi, I have a use case here to copy all the informations and create a new object? The draft process i am using is:
    obj original = session.readObject;
    obj target = uow.readObject;
    if(target is not there) {
    target = uow.registerObject(new target())
    target.attrA = original.attrA
    target.attrZ = original.attrZ}
    uow.commit;
    It works fine, but i don't like to repeat the boring attribute copying. So i change my code to:
    obj original = session.readObject;
    obj target = uow.readObject;
    if(target is not there) {
    original.pk = null;
    uow.registerNewObject(original);
    uow.commit;
    I try to set the pk of the original to null and let it to use the sequence one. However, It fails with an exception that the primary key cannot be null. Is there anybody can help me to simplify the process? Any concerns or comments are really appreciated.
    Message was edited by:
    juwen

    Hello Juwen,
    The problem is you are registering an object, assigning it a null pk, and then commiting the uow/transaction. TopLink uses registered objects to keep track of changes you make inorder to persist those changes on commit. So the simple fix is to not commit the UnitOfWork - call release() on it instead.
    Another solution is to use the session copyObject api. The simple form that only takes an object will work similar to registering the object as it will copy all persistent attributes but it will leave the primary key null. You can also use this method to specify a copyPolicy to customize the process. Using this method will be a bit more efficient, since a UOW makes both a working copy and a back up copy of objects registered, inorder to keep track of changes. Using the copyObject api will only make a single copy.
    Best Regards,
    Chris

  • Forms creation with fillable info

    I deal with the same set of forms everyday, but just with different info.  I have about 5 forms that I would like to "link together".  I have to repeat much of the same info over all 5 forms (shipper name, delivery location, freight description, weights, ID numbers, dates, etc...).  It would be great if I could enter the info once and have it drop that info in the correct spaces on each form rather than manually doing on each.  Is there any way to accomplish this easily?  I gather that I may need to create a "data base" page and have it pull the info across the document string or populate in to various drop down locations.  Thanks in advance!

    Are the form fields in all of these files named the same (at least, those
    that you want to populate with the same info)?

  • Entity Framework : A short way to copy one object with it's child to a new object ?

    Hello !
    I'm using entity framework 6.
    Sometimes I need to copy an existing object with all its childs to a new object and to save to database.
    I'm using a standart way by creating a new object , copy one by one it's properties from existing object ( except the ID ) , after I create new object for every child and copy one by one each properties except the ID and Parent id......
    But of course this is a hard way to do especially when the object have a lot's of properties.
    I want to know is there any short way  ( built in) to do this ?
    Thank you !

    Actually , I'm using this extension :
    Imports System.ComponentModel
    Imports System.Collections
    Imports System.Data.Entity.Core.Objects.DataClasses
    Imports System.Runtime.Serialization
    Imports System.IO
    Imports System.Reflection
    Module Extensions
    <System.Runtime.CompilerServices.Extension> _
    Public Function Clone(Of T As EntityObject)(source As T) As T
    Dim ser = New DataContractSerializer(GetType(T))
    Using stream = New MemoryStream()
    ser.WriteObject(stream, source)
    stream.Seek(0, SeekOrigin.Begin)
    Return CType(ser.ReadObject(stream), T)
    End Using
    End Function
    <System.Runtime.CompilerServices.Extension> _
    Public Function ClearEntityReference(source As EntityObject, bCheckHierarchy As Boolean) As EntityObject
    Return source.ClearEntityObject(bCheckHierarchy)
    End Function
    <System.Runtime.CompilerServices.Extension> _
    Private Function ClearEntityObject(Of T As Class)(source As T, bCheckHierarchy As Boolean) As T
    If source Is Nothing Then
    Throw New Exception("Null Object cannot be cloned")
    End If
    Dim tObj As Type = source.[GetType]()
    If tObj.GetProperty("EntityKey") IsNot Nothing Then
    tObj.GetProperty("EntityKey").SetValue(source, Nothing, Nothing)
    End If
    If Not bCheckHierarchy Then
    Return CType(source, T)
    End If
    Dim PropertyList As List(Of PropertyInfo) = (From a In source.[GetType]().GetProperties() Where a.PropertyType.Name.Equals("ENTITYCOLLECTION`1", StringComparison.OrdinalIgnoreCase) Select a).ToList()
    For Each prop As PropertyInfo In PropertyList
    Dim keys As IEnumerable = CType(tObj.GetProperty(prop.Name).GetValue(source, Nothing), IEnumerable)
    For Each key As Object In keys
    Dim childProp = (From a In key.[GetType]().GetProperties() Where a.PropertyType.Name.Equals("EntityReference`1", StringComparison.OrdinalIgnoreCase) Select a).SingleOrDefault()
    childProp.GetValue(key, Nothing).ClearEntityObject(False)
    key.ClearEntityObject(True)
    Next
    Next
    Return CType(source, T)
    End Function
    End Module
    But the problem is that when I try to use like this :
    Dim litm, newitm as MyObject
    For Each litm In itemlist
    newitm = litm.Clone()
    newitm.ClearEntityReference(True)
    context.MyObjects.Add(newitm)
    Next
    context.SaveChanges()
    I get an error :
    Public member 'Clone' on type 'MyObject' not found.

  • How can I copy forms along with information?

    Ok, I started a new job last week as an Office Assistant.  Being I came from a place (family business) where I had to do whatever, whenever, I have to get adjusted to NOT doing everything myself....they have depts for that.  Anyway, right before I got here, the IT guy left on not so good terms.  I have been asked to convert some PDF files into WORD b/c for SOME reason the IT guy only allowed 2 pages per PDF form.  So there are several files for one topic.  I know I can merge them, but I need to be able to have it where the individuals who will be using the forms don't have to do anything but fill them out and type.  We have many who are NOT computer literate nor do they want to be.  They know how to do what they need to do and don't want to learn anything EXRA if they can help it.
    I can copy/paste the information into WORD yet the fill-in information does not go nor does the lines for the form format.  Now, there is over 1,000 of these I have to do and I want to attempt to NOT have to re-fill each individual form in.
    Well, we use AA8 and I have a few questions of what I need to do and see if you can help.
    1.  Is there a way to copy the form WITH the filled in information.  If so, how?
    2.  How can I tansfer ALL of the form (outline & all) into WORD?
    3.  Is there a program that can convert from PDF to WORD EXACTLY as PDF is currently.  Ones I have tried it doesn't look the same AT all?
    4.  Will 9 convert EVERYTHING, form, filled in info etc?
    This is confidential information that needs to be transfered so the online converters is not an option. 
    ALSO, the WORD template that they want it in is COMPLETELY different and can't really work with.  I do feel the IT guy did this to keep anyone else from doing anything and he would be the only one (he was a cocky one)  SO I'm stuck and attempting to get this started until they get a new IT guy.
    ANY HELP WOULD BE GREATLY APPRECIATED, I have overworked myself attempting to figure this out

    Ok first off, Graffiti LOVE your icon.  And you do make complete sense and as for try, I kinda figured that was the case.  One folder with all the files ARE in word, yet these are in PDF in another folder.  Why they were not all done in Word at the time I have NO clue.  I'm going to assume it was the IT guy's idea.
    I'm sitting here stressing b/c I can't find a way to do this and now I find out it's not a good idea to have ANYTHING in PDF as well as NOT being able to transfer to word with in reason and to make it look as it did.
    So what it boils down to is I will ultimately have to do it individual and convert on my own.  Pretty much make a new format in Word and transfer all the information one at a time, GREAT.  My 2nd week here at work and this is what I have to look forward to FOREVER lol
    I will, however, make me a format I can handle and easy to do, idiot proof as it were.
    I appreciate all of your information.  In the back of my mind, I knew the answer, but wanted to clarify before going to my supervisor (who has NO clue about computers or the fact some things can't be done.  more of why CAN'T I do it, you know) and see what I can do from there.
    The man purpose is to have continous access to that file instead of multiples b/c of the IT limiting PDF to 2 pages.  YAY for me
    Let's hope they hire an IT guy next week...lmao

  • Attach a form objects to another form

    Hi, excuse me if my question is evident for you, i am a little new with oracle form,
    i want to know if it is possible to attach a form objects to another form and how to do that. Thanks for your help.
    Edited by: Tabit7 on Apr 1, 2011 11:37 AM

    You cannot attatch a whole form (.fmb) to you form but you can subclass blocks canvas for example.
    open your form A and B
    in your reference form A select the block you want to have in form B (subclassed) and select and drag it to B.
    You will have a popup saying "do you want to copy the object ir subclass it ?" choose sublass and you are ready...
    Do the same with canvas.
    but PAY ATTENTION !!!! this method seems very useful if you have let say a identical master block for different forms.
    but you have to handle it with precautions as every changes made in form A will be reflected to all your sub-classed forms B, B1, B2 .... and could cause you designs problems
    if for example you master form A width change to something larger than one of you B forms.
    Hope this helps
    JeanYves

  • Forms with subclass object is not compiling----AIX

    Hi all,
    We have OAS 10g in AIX 5.3. First of all there is no Developer in AIX, which is a big problem to fix any error. All though we have developed our application in HP-UX m/c and now change to AIX as in the production it will be AIX servers.
    Now the problem is that, we have a Form, whose objects are being subclassed by all other forms. And in AIX whenever I try to compile any form it gives the error FAILED TO LOAD : MODULE NAME: <REFERNCED FORM> OBJECT NAME: <REFERENCED OBJECT>.
    If I change the subclass object to copy (i.e., when I add the object from Referenced form, it ask for COPY, SUBCLASS and I select COPY), and I compile it, then it compiles without any error.
    But the problem is that we have total 1000 forms in our application and it is not possible to change all these forms again. Moreover it is not a good practice to copy it.
    So I need to overcome this problem. Please suggest me how to overcome this problem.
    NOTE: I have put the REFERENCED form in the path $ORACLE_HOME/forms/ and all the other forms are in respective module's directory. And I have change default.env accordingly.

    Hi ,
    I had the same problem once and i discovered that the problem was on my Environemnt path so try to make sure you set it using :
    export FORMS_PATH=<your library and Super module path>
    and after that make sure it has been setted using :
    echo $FORMS_PATH
    so can you please take a second look on it ..
    Best Regards,

  • How to copy objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution?

    I recently have bought a new Macbook Pro (Version 10.10.1) with the OS X Yosemite. The computer comes with the new Pages (version 5.5.1).
    Here is the problem: I like to create artwork using the shapes on Pages. Previously, on my old mac, I used Pages 4.3 to create objects, which I would copy then paste to Photoshop and it would become a vector smart object. However, in the new Pages (version 5.5.1), when I copy objects, they would appear on Photoshop as instead, a layer and it would not be in full resolution.
    Also, I know there is nothing wrong with the Pages file itself because I have converted the document to PDF form and it is high resolution when inserted into Photoshop that way.
    Does anyone know how I can copy individual objects from Pages (5.5.1) and paste it into Photoshop as a vector smart object with high resolution as I have done before?
    Thanks!

    ghotiz wrote:
    copy the image and have it in a high-quality PNG format that does not include the background from the Pages document.
    Oh, well if you don't actually need vector objects then it looks like this is possible. As I said earlier, Pages is putting a PNG on the clipboard. I tested it and it does paste into Photoshop as a transparent layer, because I can see the transparent background of the pasted PNG graphic if I either turn off all layers behind it in Photoshop, or if I start a new Photoshop document to paste into but make sure I choose Transparent for the Background Contents in the New Document dialog.

  • Problem with Copied Business Object : SELFITEM

    Hi,
    sub:    Problem with Copied Business Object : SELFITEM
    I want to use changed selfitem BOR for carbon copy functionality. For it, i copied the BOR : SELFITEM. it is giving error
    In SWI2_DIAG it is showing like this.
    Work item  cannot be read                                                
    Work item 000000639770: Object  method SWW_BI_EXECUTE_S cannot be executed
    The problem is with COPYING The Business Object. Because , generally we extend BOR ,not copy. But i did copy.
    Please help me regarding this.
    Balaji.T.

    hi Martin,
    The problem may not be in method. because simply we copied the BO:SELFITEM into ZSELF . And i want to test this for a mail at first , whether copied BOR  is working or not.The mail is not triggering . it is saying that it is Error.
    WF_BATCH error...
    I can see error in Tx: SWI2_DIAG ,
    this is Error :
    Work item 000000639770: Object  method SWW_BI_EXECUTE_S cannot be executed
    Once it is rectified i can modify the method in BO:ZSELF.
    Thank you in Advance..
    Balaji.T.

  • Authorization with standard info objects

    Hi Guys,
    I want a small clarification.
    Is it true that Authorization cannot be done for the Standard Infobject, we need to create reference objecs to the standard objects, and the master data of the standard object would be passed to the reference object
    When i went to the standard object, this option is actually available for them too.
    Thanks..
    Regards,
    Charu

    Making Authorization relevant to the Standard Info-objects are not recommendable.
    Make these standard info-objects as references and create info-objects with Z or Y.
    you could see the bussiness explorer tab in the info object properties. There is one option called Authorization relevant.
    you should enable the authorization relevant tab. Once it done then it will reflect while creating authorization object.
    Hope this would help you in understanding.

  • KE31 - Copying a report with newly defined form

    Hi ,
    While creating a new profitability report(Report A)  by copying an existing report (Report B with Form B) with the newly defined FORM(Form A) , the system is creating the new report(Report A) with  the form (Form B) from the copied report.
    How to create the report by copying another report (to get Report A with Form A)?
    Thanks,
    Prabha

    Hi ,
    Thanks for your reply.
    I created form A and used KE31 for creating report A by copying report B.
    While doing so, the report A got the form B not the form A. Though I assigned the form A while creating the report A (with copying report B), the report A got Form B.
    How to create the report A with form A by copying report B?
    Thanks,
    Prabha

  • Trouble with copying an object

    I am trying to copy an object as follows:
    First, I read the object (using the session not in a Unit of Work)
    then, I modify the primary key
    Finally I do a registerNew.
    The result is a duplicate primary key error. I can examine the object that I am regisering as a new object and it does have the new key, but when I look at that SQL INSERT statement that is geting generated still has the old key.
    I tried experimenting with the undocumented copyObject methods, but it still had the same problem. Any suggestions on what I am doing wrong.
    Thanks,
    JJ

    Doug,
    I have a related problem with copying. basically, I need to create a copy of an object for display to an HTML page. The user can then submit multiple changes. Once he/she decides it is good, a commit occurs. I was planning to use the copyObject() (using ClientSession) at the beginning and the mergeClone() before finally issuing commit() on the UnitOfWork.
    The object that I'm working with has multiple levels embedded in it, such as
    class1
    +--- class2(multiple)
    +--- class3 (multiple)
    +--  class4(single)
    If the object has references to non-private parts, how do prevent the copyObject() and the mergeClone() methods from going out of control and recursively trying to create clones. I'm asking because when the copy or merge is not limited to private parts, TopLink seems to want to copy/merge everything. Some of our tables have reverse references to other objects so the whole thing becomes one endless loop.
    any help would be appreciated...
    charlie

  • Problems viewing PDFs with form objects

    I have a document I can't view correctly in Acrobat Reader XI. The document includes some form objects like radia buttons and check boxes. When I view the document in Adobe Reader, i only get square boxes. If I use Foxit Reader, I can se the objects normally. I have taken a screendump from the same PDF document, one using Acrobat Reader and the other using Foxit Reader. As you can see, there is a big difference.
    The screendump above is from Adobe Reader XI
    And this creendump is from Foxit Reader.
    Why cant Acrobat display the form objects? It looks like a font problem. I have tried to install asian font pack. Is there any other font packs that could solve this problem?
    Best regards
    René

    How were these forms created?  I have seen (in this forum) similar cases when forms were created in some none-standard ways.
    See if the attached test document shows correctly in Reader XI.

  • How to implement a Copy or Create with Reference scenario

    For business objects, you might want to implement a Copy or Create with Reference scenario. The following procedure describes the UI configuration that you need if you want to place a copy button (in our example on an OWL) that starts a quick activity floorplan (on the same BO = Copy, or a different BO = Create with Reference). Pre-requisie in the target BO: The target BO requires a BO element SourceBOID and a Copy action that reads the SourceBO by SourceBOID by query, and copies the elements from the source to the target BO.
    The UI configuration in the target floor plan is:
    1. Open the QAF floor plan of the target BO (target floor plan).
    2. In the DataModel view of the target floor plan, select the Root entry and select Add Data Field from the context menu. Rename the created data element to OBN_OriginBOID.
    3. Choose the Controller tap, and select INPORTS and choose ADD INPORT from the context menu. A new in-port is created. Rename the in-port, for example to Copy.
    4. In the in-port maintenance form, activate the check box OBN INPORT.
    5. Select the namespace of your solution and the target business object.
    6. In the input field SELECT OPERATION enter Copy. A new select operation is created. The combination of business object name (including namespace), business object node and operation identifies the in-port and therefore the related floor plan as navigation target.
    7. Select the port type package /SAP_BYD_UI/SystemPortTypes.PTP.uicomponent.
    8. In the PARAMETERS section of the form, click the ADD button. Maintain the binding of the created parameter to /Root/OBN_OriginBOID. Based on this configuration, the system will transfer the parameter of the in-port to the element in the data model when the OBN is executed.
    9. In the Properties view, select the drop-down list box of the property EVENTS u2022 ONFIRE. Scroll down and select the entry u2026 NEW EVENT HANDLER u2026. The system starts the maintenance window for event handlers. Rename the event handler to CopyIn.
    10. In the OPERATIONS table of the maintenance window for event handlers, select type: BUSINESS OBJECT OPERATION. In the form below the table select the value CREATE for the input field BUSINESS OBJECT OPERATION TYPE. This operation will create a BO instance in the backend when the OBN is executed.
    11. In the OPERATIONS table, create a new operation of type: DATAOPERATION.  In the configuration of the data operation, select the operation type ASSIGN, source expression /Root/OBN_OriginBOID and target expression /Root/<BO>/OriginBOID.
    12. Create a third operation of type: BUSINESS OBJECT ACTION. Select the Copy action of the target business object and click the BIND button. Note: This action enforces another roundtrip to the backend. The Copy action must be implemented so that it will read the origin BO and copy selected data from the origin to the newly created object.
    13. Test the changes in the preview. If no error message is issued, save and activate the floor plan.
    The following procedure describes the configuration in the source floor plan (e.g. OWL floorplan ):
    1. Open the Source BO OWL floor plan (source floor plan).
    2. In the Designer view, place cursor the on the toolbar area and select ADD u2022 APPLICATION-SPECIFIC BUTTON u2022 MY BUTTON from a context menu. Rename the new button to Copy.
    3. In the Properties view, select the drop-down list box of the property MENU INFORMATION u2022 NAVIGATION. The system launches the maintenance window for OBN configuration.
    4. Select the in-port of the target floor plan by selecting the target business object (with namespace and name) the target business object node and the target operation, and the operation Copy.
    5. Choose the navigation style NEWWINDOW.
    6. Close the OBN configuration maintenance window by clicking the OK button. The system creates the OBN configuration, an out-port, that is used by the OBN configuration, and an event handler that uses the out-port and that is assigned to the button (see Properties view, EVENTS u2022 ONFIRE).
    7. Go to the Controller view and rename the OBN configuration to Copy, the new out port to Copy and the new event handler to CopyOut.
    8. Check that the event handler CopyOut fires the out-port Copy.
    9. In the Parameters section of the out-port maintenance form, click the ADD button. Maintain the binding of the created parameter as /Root/<BO>/<BO>ID. Based on this configuration, the system will transfer the identifier of the selected source BO to the out-port data structure when the OBN is executed.
    10. In the Operations table, select type: FIREOUTPORT. In the form below the table select the out-port CopyOut.
    11. Test the changes in the preview. If no error message is issued, save and activate the floor plan.

    Hi Dries-
    There are no pre-packaged solutions with BADIs since they are, by definition, custom development.  If that's the path you need to go down then consider the following high level alternatives:
    Incorporate custom code into the BPC Write Back BADI.  You can restrict the execution of the BADI using filters on the BADI definition, so that the BADI execution only occurs when a data manager package is called, and only for some defined combination of applications/appsets.  Utilized the standard copy/move functions delivered in Data Manager. When the BADI is called, interrogate each record being processed (table CT_ARRAY) and determine if the record has a value you want to process (i.e. save to the target application).  Skip any record that has a zero value.
    Another alternative is to develop the BADI as custom logic.  Data Manager parameters can be picked up in Script Logic and the values can be sent to the BADI by adding parameters.  Please see an example of parmater use in the "How To" document for Destination App at:
    [EPM How To Guides|https://wiki.sdn.sap.com/wiki/display/BPX/Enterprise%20Performance%20Management%20%28EPM%29%20How-to%20Guides]  > "How-to Desitnation App"
    Regards,
    Sheldon

  • Importing MS Word into PDF adds extra page with document info

    I am still evaluating Acrobat Pro, including Life Cycle Designer to create Forms, currently testing converting existing forms made in MS Word to PDF. There is someting that I do not know how to resolve is when I import files from MS Word, an extra page with details info about the document is copied as well. It contains info such as number of pages, author, date of creation etc....20 lines of info.
    This becomes akward when inserting the document into an existing pdf...or just create a new form from the Word document....adds the extra page ..
    Is there a setup somewhere that I could modify to not have the extra info? or how do I delete it? I try to select the text but cannot (within life cycle)
    Thank you

    If you are importing into Designer, you should ask in that forum. If in Acrobat, then you might try printing the WORD document to a PDF first and importing the PDF. However, with Acrobat you will not get the form fields that you are preserving with Designer.

Maybe you are looking for

  • FS10N  g/l Balance not show

    Dear Guru ,   Issue is , When i Check GR/IR Clearing  /ac in FS10N , the for period 1, 2 and 3 Period toal dr and cr Balance does not display. balancy disply only for 4 and 5 Balance . I already check in GLT0 Table , thr also sys does not show  G/L B

  • CS3 Acrobat Distiller Error

    I am trying to create pdfs from multiple Indesign CS3 files. When I drop the files (or even just one) in distiller I get the following error that I can't figure out. All images are linked and all fonts are available.  Adobe PDF Settings: /Library/App

  • Contextual Menu has VANISHED

    I always tend to keep up to date with the Apple provided updates so I am running iPhoto 6.0.6 (Build 322). Just over the last couple of days I have noticed that my Contextual Menu option has dissappeared. I can't right click on any photo at all (well

  • Time Capsule Set Up Problem

    Hello, I am trying to set up my new time capsule. I have an existing wireless network with an existing (linksys) router that I would like to use. When I open AirPort Utility it says "AirPort Utility found an AirPort Express with 802.11". But for exam

  • Corrupted audio

    I've been using a Samson C01U USB microphone to record vocal audio files using Audacity 1.2.6, they are saved as 16 bit AIFF files for playback using Quicktime PRO. Two days ago I noticed the quality was starting to degrade and was sounding muffled w