Declare Property

i have Procedure that get Value from List to Change Font Style and Font Weight ,
the problem that the Property for this not Character .
For example :
SET_ITEM_PROPERTY('ITEM_NAME',FONT_STYLE,'FONT_ITALIC'); => is Wrong
SET_ITEM_PROPERTY('ITEM_NAME',FONT_STYLE,FONT_ITALIC); => is Correct
Help:
How i can declare Property to Get Value from List and Replace it with the specific Property .
For example :
Declare
V_FONT_STYLE PROPERTY;
BEGIN
IF :LIST = 'FONT_ITALIC' THEN
V_FONT_STYLE := FONT_ITALIC;
END IF;
SET_ITEM_PROPERTY('ITEM_NAME',FONT_STYLE,V_FONT_STYLE);
END;

What do you see when you try the following:
message( 'FONT_ITALIC : ' || FONT_ITALIC );I think you will get a number, since most of the properties are just numbers. So the following could work (didn't test it):
DECLARE
  V_FONT_STYLE NUMBER;
BEGIN
  IF :LIST = 'FONT_ITALIC' THEN
    V_FONT_STYLE := FONT_ITALIC;
  END IF;
  SET_ITEM_PROPERTY('ITEM_NAME',FONT_STYLE,V_FONT_STYLE);
END;Regards
Markus

Similar Messages

  • Declaring Navigation Property in Entity Framework

    Hi,
    I developed a sample application in EF which has 3 tables 
    PersonDetails, BankDetails and FixedDepositDetails. Please find the table structure below
    create table PersonDetails
    (PersonId int Primary Key,
    PersonName varchar(30))
    create table BankDetails
    (BankId int Primary Key,
    BankName varchar(100),
    BankBranch varchar(100),
    BankLocation varchar(100))
    create table FixedDepositDetails
    Id int Primary Key,
    FixedDepositNo varchar(30) not null,
    Bank_Id int, -- references Bank Details
    Person_Id int, -- references Person Details
    DOD datetime,
    DOM datetime,
    DepositAmount decimal(9,2),
    MaturityAmount decimal(9,2),
    ROI decimal(3,2),
    Period varchar(20),
    Parent_Id int,
    Constraint fk_BankId Foreign Key(Bank_Id) references BankDetails(BankId),
    Constraint fk_PersonId Foreign Key(Person_Id) references PersonDetails(PersonId),
    Constraint fk_ParentId Foreign Key(Parent_Id) references FixedDepositDetails(Id)
    Now in the Entity framework I have specified as given below
    [Serializable]
    public class PersonDetails
    [Key]
    public int PersonId { get; set; }
    public String PersonName { get; set; }
    [Serializable]
    public class BankDetails
    [Key]
    public int BankId { get; set; }
    public String BankName { get; set; }
    public String BankBranch { get; set; }
    public String BankLocation { get; set; }
    [Serializable]
    public class FixedDepositDetails
    [Key]
    public int Id { get; set; }
    public String FixedDepositNo { get; set; }
    [ForeignKey("Bank_Id")]
    public int? Bank_Id { get; set; }
    public BankDetails BankDetails { get; set; }
    [ForeignKey("Person_Id")]
    public int? Person_Id { get; set; }
    public PersonDetails PersonDetails { get; set; }
    public DateTime DOD { get; set; }
    public DateTime DOM { get; set; }
    public decimal DepositAmount { get; set; }
    public decimal MaturityAmount { get; set; }
    public decimal ROI { get; set; }
    public String Period { get; set; }
    [ForeignKey("Parent_Id")]
    public int? Parent_Id { get; set; }
    public FixedDepositDetails FixedDepositDetail { get; set; }
    } public class BaseDBContext : DbContext
            public BaseDBContext(string ConnectionString)
                : base(ConnectionString)
            public DbSet<PersonDetails> PersonDetails { get; set; }
            public DbSet<BankDetails> BankDetails { get; set; }
            public DbSet<FixedDepositDetails> FixedDepositDetails { get; set; }
            protected override void OnModelCreating(System.Data.Entity.DbModelBuilder modelBuilder)
                modelBuilder.Entity<FixedDepositDetails>()
                    .HasRequired(x => x.BankDetails)
                    .WithMany()
                    .HasForeignKey(y => y.Bank_Id);
                modelBuilder.Entity<FixedDepositDetails>()
                   .HasRequired(x => x.PersonDetails)
                   .WithMany()
                   .HasForeignKey(y => y.Person_Id);
    But when I run the application I get an error as
    The navigation property 'Bank_Id' is not a declared property on type 'FixedDepositDetails'. Verify that it has not been explicitly excluded from the model and that it is a valid navigation property.
    If I am not wrong I think I have made some mistakes when creating the model. Can some some please let me know where I am doing the mistake? If some one is able to provide me with a solution Please explain me as what you are doing and why that solution needs
    to be done?
    Regards,
    Raghul

    I know this is an old thread, but when doing it either way you guys described, I get:
    "The foreign key component 'FixedDepositDetail' is not a valid navigation property on type 'PersonDetails'.
    Verify that it has not been explicitly excluded from the model and that it is a valid primitive property."
    I had my own one-to-many relationship, but for the sake of not involving new items, it mirrors this setup from above:
    public class PersonDetails
    { [Key]
    public int PersonId { get; set; }
    public String PersonName { get; set; } public virtual ICollection<FixedDepositDetails> FixedDepositDetail { get; set; }
    } public class FixedDepositDetails
    [Key]
    public int Id { get; set; } public int? Person_Id { get; set; } [ForeignKey("Person_Id")]
    public PersonDetails PersonDetails { get; set; } public FixedDepositDetails FixedDepositDetail { get; set; }
    Any ideas on how this setup should work, or is this what you guys have?

  • Error in a script and i can´t find it

    Hi,
    I found a very interesting Tutorial about an Archtitcural
    Fly-Trough at the Adobe Sites.
    As I tried make the same i got an Error in the Lingo Script
    that was providet with the Tutorial. I have no experience with
    Lingo so I can´t find the Error. Could sombody find the Error?
    I marked the Line with <<<<<<<<
    Here is the Script (just a little bit long)
    You can see the whole Tutorial here:
    http://www.adobe.com/devnet/director/articles/shockwave_3d/shockwave3d_ch3.pdf
    on beginSprite (me)
    -- initialize properties
    pMember = sprite(me.spriteNum).member
    pSprite = sprite(me.spriteNum)
    pMouseDown = FALSE
    pRightMouseDown = FALSE
    pCamera = sprite(me.spriteNum).camera
    pCamAnimFlag = TRUE
    pCamAnimInfo = [#initT: pCamera.transform.duplicate(), \
    #finalT: pMember.camera
    ("first_person").transform.duplicate(), \
    #count: 0]
    -- create the camera’s bounding sphere
    mr = pMember.newModelResource("camera_sphere",#sphere)
    mr.radius = 7.5
    pCameraSphere = pMember.newModel("camera_sphere",mr)
    -- create a light to carry with the camera
    camLight = pMember.newLight("camera_light",#point)
    camLight.color = rgb(170,170,170)
    -- make the sphere and light children of the camera
    pCamera.addChild(pCameraSphere,#preserveParent)
    pCamera.addChild(camLight,#preserveParent)
    -- register the camera for the timeMS event in order to
    perform the intro animation if any
    pCamera.registerScript(#timeMS,#animateCamera,me,0,50,51)
    -- register the member for regular timeMS events in order to
    respond to user input and resolve camera “collisions”
    pMember.registerForEvent(#timeMS,#controlCamera,me,2500,50,0)
    end beginSprite
    on mouseDown (me)
    -- update the mouse down property
    pMouseDown = TRUE
    end mouseDown
    on mouseUp (me)
    -- update the mouse down property
    pMouseDown = FALSE
    end mouseUp
    on rightMouseDown (me)
    -- update the right mouse down property
    pRightMouseDown = TRUE
    end rightMouseDown
    on rightMouseUp (me)
    -- update the right mouse down property
    pRightMouseDown = FALSE
    end rightMouseUp
    -- The animateCamera handler is used to animate the camera
    automatically over time:
    on animateCamera (me)
    -- increment the internal counter for the animation
    pCamAnimInfo.count = pCamAnimInfo.count + 1
    <<<<<<I get an Errormessage in this Line!!!!!
    -- determine the interpolation percentage
    pctg = 100.0 × (pCamAnimInfo.count / 50.0)
    -- if pctg is greater than 100 end animation sequence
    if (pctg > 100) then
    pctg = 100
    pCamAnimFlag = FALSE
    end if
    -- determine the new interpolated camera transform
    t = pCamAnimInfo.initT.interpolate
    (pCamAnimInfo.finalT,pctg)
    -- apply that transform to the camera
    pCamera.transform = t
    end animateCamera
    on controlCamera (me)
    -- respond only if the intro camera animation is completed
    if not(pCamAnimFlag) then
    -- CONTROL THE LEFT/RIGHT ROTATION OF THE CAMERA
    -- if the shift key is *not* down then follow the mouse
    -- to adjust left right looking
    if not(the shiftDown) then
    -- check for the mouse locH wrt the sprite loc
    deltaH = the mouseH - pSprite.locH
    -- calculate rotation value to apply
    rotn = -(deltaH/165.0) * 4.0
    -- apply that rotation
    pCamera.rotate(pCamera.worldPosition,
    vector(0,0,1),rotn,#world)
    end if
    -- CONTROL THE FORWARD/BACKWARD MOVEMENT OF THE CAMERA
    -- if the left mouse is down then move the character forward
    if pMouseDown then
    pCamera.translate(0,0,-2.5)
    end if
    -- if the right mouse is down then move the character
    backward
    if pRightMouseDown then
    pCamera.translate(0,0,2.5)
    end if
    -- cast one ray fwd/bckwrd depending upon which mouse button
    is down
    case (TRUE) of
    -- left mouse down, cast ray forward
    (pMouseDown):
    -- cast ray
    tList = pMember.modelsUnderRay
    (pCamera.worldPosition,-pCamera.transform. zAxis,#detailed)
    -- if there are models in front of the camera, check for
    collisions
    if (tList.count) then
    me.checkForCollision(tList[1])
    end if
    -- right (control+) mouse down, cast ray backward
    (pRightMouseDown):
    -- cast ray
    tList = pMember.modelsUnderRay
    (pCamera.worldPosition,pCamera.transform. zAxis,#detailed)
    -- if there are models in front of the camera, check for
    collisions
    if (tList.count) then
    me.checkForCollision(tList[1])
    end if
    end case
    -- cast a ray to the left
    tList = pMember.modelsUnderRay
    (pCamera.worldPosition,-pCamera.transform. xAxis,#detailed)
    -- if there are models in front of the camera, check for
    collisions
    if (tList.count) then
    me.checkForCollision(tList[1])
    end if
    -- cast a ray to the right
    tList =
    pMember.modelsUnderRay(pCamera.worldPosition,pCamera.transform.xAxis,
    #detailed)
    -- if there are models in front of the camera, check for
    collisions
    if (tList.count) then
    me.checkForCollision(tList[1])
    end if
    end if
    end controlCamera
    on checkForCollision (me, thisData)
    -- grab the distance value
    dist = thisData.distance
    -- if distance is smaller than bounding radius, resolve
    collision
    if (dist < pCameraSphere.resource.radius) then
    -- get distance of penetration
    diff = pCameraSphere.resource.radius - dist
    -- calculate vector perpendicular to the wall’s
    surface to move the camera
    tVector = thisData.isectNormal * diff
    -- move the camera in order to resolve the collision
    pCamera.translate(tVector,#world)
    end if
    end checkForCollision

    While I wouldn't use count as a property name as it's also a
    list method, it
    does work. It seems to me your problem is not having property
    declarations.
    property pCamAnimInfo (and any others) should be declared
    before the
    beginSprite
    Dave -
    Adobe Community Expert
    www.blurredistinction.com
    www.macromedia.com/support/forums/team_macromedia/

  • How does one overcome the problem of songs being in a random order...?

    Happened me earlier today when i was playing around with my ipod classic. I had it in good order in the playlist...but when I went to copy it to the playlist in the ipod classic..it randomised the order. I had to rename the file names so i could see the proper order..but then it wouldnt let me copy them across at all for some reason, so finally i had to covert to AAC and then match up the track times to the playlist in winamp which actually was in order.
    Anyone know a way around this? I searched on the forum and the posts are regarding playlists order and what not...it is quite annoying because i spent like 40 minutes trying to organise one album when it should just be bam click and drag, done.

    >
    2) In a Java book, I read: "Interfaces are implemented and used throughout the Java class library when behavior is expected to be implemented by a number of disparate classes."
    Hi, let me try to explain this.
    Say you have a left hand drive BMW and a right hand drive AUDI. typeOfDrive is a property for these two cars. If i am trying to make this property abstract, i will prefer to put this property in an Interface called Car. My classes BmwCar and AudiCar implement the Car Interface; by which they can use the property typeOfDrive.
    So, the behaviour 'typeOfDrive'; when expected to be implemented by Disparate entities BmwCar and AudiCar, we try to abstract that property to a common Interface called Car.
    interface Car {
    String typeOfDrive;
    String getTypeOfDrive();
    class BmwCar implements Car {
    String getTypeOfDrive() {
       return typeOfDrive;
    void setTypeOfDrive(String tod) {
    this.typeOfDrive = tod;
    class AudiCar implements Car {
    String getTypeOfDrive() {
       return typeOfDrive;
    void setTypeOfDrive(String tod) {
    this.typeOfDrive = tod;
    }Now, when you create instance of your disparate classes, you will define the declared property 'typeOfDrive', as 'Left Hand Drive' for BmwCar and 'Right Hand Drive' for AudiCar.
    So, "Interfaces are implemented and used throughout the Java class library when behavior is expected to be implemented by a number of disparate classes."
    You can refer to many web wikis for better examples and explanations.
    Regards,
    ~N~

  • Multivalued metadata properties in XML Form Builder

    I have created some multi-valued properties in KM having their own namespace. When I assign these properties to the XML FB, the values are loaded only if I use a combobox. But my requirement is to selct multiple values, so if I associate a checkbox as the data type, I find none of values are loaded into XML project. Have anyone tried this out? Is it a bug? I am using SPS14.
    Kind Regards,
    Tridib

    Hi Detlev,
    I tried the workaround you described. Defined the allowed values, checked the declared property as "Multi-Valued", selected "allowedvalues_multivalued" as property renderer, refreshed the properties inside of the XML Forms workbench and wired this property to the checkboxes whose captions and values correspond to the allowed values just created and so on.
    When I generate the XSL template, click on the checkboxes inside of my HTML output and click on "Save" only the first value of those I have checked will be saved. (as to be seen in the details of the generated document)
    Although it seems that I have done everything all right, obviously I haven't.
    When I look into the generated XSL document I can see why this happens because several checkboxes with the name will be rendered.
    What did I wrong? Any help would be appreciated.
    (we run EP 6.0 SP 13)
    Thanks in advance
    Ralf

  • How could I pass a value of metric to a script in QUERYDESCRIPTOR?

    It is possible to use the current or previous value of a metric as a argument to be passed to a script in QUERYDESCRIPTOR? As I am developing a MYSQL plug-in, and in my metadata xml file, I want to use the value of a metric I already defined as a argument to be pass to a script. But I don't know how to achive it in XML file.
    For example,
    At the begining of the metadata XML file, I defined a metric named m1. Then I want to defined another metric named m2 with a fetchlet. I want to pass the value of m1 to the script which will retrurn the value of m2.
    Could you please tell me how to achive that in a xml file?
    Thanks,
    Satine

    Hello Satine,
    For this requirement, I used dynamic properties (use tag "DynamicProperties") as a solution.
    From extensibility guide, as example is:
    <DynamicProperties NAME="ClusterConfig" FORMAT="ROW"PROP_LIST="IsClusterEnabled">
    <QueryDescriptor FETCHLET_ID="Snmp">
    <Property NAME="NAME" SCOPE="INSTANCE">NAME</Property>
    <Property NAME="hostname" SCOPE="INSTANCE">AgentHost</Property>
    <Property NAME="COMMUNITY" SCOPE="INSTANCE" OPTIONAL="TRUE">CommunityString</Property>
    <Property NAME="TIMEOUT" SCOPE="INSTANCE" OPTIONAL="TRUE">Timeout</Property>
    <Property NAME="TABLE" SCOPE="GLOBAL">FALSE</Property>
    <Property NAME="OIDS" SCOPE="GLOBAL">1.3.6.1.4.1.789.1.2.3.1.0</Property>
    </QueryDescriptor>
    </DynamicProperties>
    Note: you can use ExecutionDescriptor also, instead of QueryDescriptor for DynamicProperties.
    Now, you will use 'IsClusterEnabled' as any other instance property
    e.g., in your metric query-descriptor, you can declare
    <Property NAME="cluster" SCOPE="INSTANCE">IsClusterEnabled</Property>
    Now that you know how to define dynamic-properties and use them across metrics, here is a warning. Dynamic Property computation will be done by OEM Agent when it starts. So, you may not like to define too many dynamic-properties, because then it will take more time for agent to start-up fully.
    Regards,
    -Shant

  • Overloading Custom services in CAPI

    When trying to overload a custom service for a CAPI I'm not able to set the implementation name to the same value as the implementation name of the function to be overloaded (the short name and name are different of course, also parameters are different).
    I get an Uniquiness conflict. Reason is probably that the services are loaded into the CAPI package on basis of tags in table usage instead of via the Subprogram Units property (help on the implementation name property says it is possible to overload functions/procedures in a package).
    Does anyone know a workaround ?

    Geert,
    What you could try (I don't know if it will work), is to also define the Custom Services as sub program units of the CAPI package. Of course you must have created an initial version of the CAPI package first, although it won't be the desired CAPI contents yet.
    You must check if you can still generate the CAPI package correctly from the Design Editor, if it has sub-program units. Of course the Free Format Declaration property of the CAPI must remain Yes. If the Server Generator ignores the sub program units, it works. You will then probably be allowed to use different implementation names for the Custom Services because they are now sub program units of a package.
    If that succeeded, you will also have to customize the hsu_capc package, so that it will use the implementation_name instead of the name (change c_plm and add_custom_services).
    Hope this helps,
    Sandra

  • How does interfaces overcome the problem of single inheritance?

    1) How does interfaces overcome the problem of single inheritance? Can anyone give an example of how it works?
    2) In a Java book, I read: "Interfaces are implemented and used throughout the Java class library when behavior is expected to be implemented by a number of disparate classes."
    Why does different classes require to implement a Java class library?
    Can anyone please enlighten? Thanks.

    >
    2) In a Java book, I read: "Interfaces are implemented and used throughout the Java class library when behavior is expected to be implemented by a number of disparate classes."
    Hi, let me try to explain this.
    Say you have a left hand drive BMW and a right hand drive AUDI. typeOfDrive is a property for these two cars. If i am trying to make this property abstract, i will prefer to put this property in an Interface called Car. My classes BmwCar and AudiCar implement the Car Interface; by which they can use the property typeOfDrive.
    So, the behaviour 'typeOfDrive'; when expected to be implemented by Disparate entities BmwCar and AudiCar, we try to abstract that property to a common Interface called Car.
    interface Car {
    String typeOfDrive;
    String getTypeOfDrive();
    class BmwCar implements Car {
    String getTypeOfDrive() {
       return typeOfDrive;
    void setTypeOfDrive(String tod) {
    this.typeOfDrive = tod;
    class AudiCar implements Car {
    String getTypeOfDrive() {
       return typeOfDrive;
    void setTypeOfDrive(String tod) {
    this.typeOfDrive = tod;
    }Now, when you create instance of your disparate classes, you will define the declared property 'typeOfDrive', as 'Left Hand Drive' for BmwCar and 'Right Hand Drive' for AudiCar.
    So, "Interfaces are implemented and used throughout the Java class library when behavior is expected to be implemented by a number of disparate classes."
    You can refer to many web wikis for better examples and explanations.
    Regards,
    ~N~

  • WHY - give workable examples of using JHeadstart to convert forms into ADF.

    Why give examples of how to use JHeadStart to convert forms in to ADF, but not allow it to be done with the evaluation version ... I assume it was possible with the 10g versions. Is it broken in 11g.
    I was lookig to build a case for migrating an oracle forms application to Oracle Java and not a IBM or JBOSS or even .Net application, I can't build that case now, I have no budget to engage Oracle, have to do this of my own bat. Company has been take over by bigger company that has IBM stack.
    Is Oracle this follish to allow the smaller users of Oralce to go by the way side, be lost to other languages etc

    We deliberately did not include the Forms2ADFGenerator in the evaluation version.
    Modernizing your forms application, possibly migrating it to ADF is a considerable effort that is often underestimated.
    Migration tools like the Forms2ADFGenerator can help to a certain extent but are by no means a magic bullet. This is something we cannot stress enough, as over and over again we see people who think migration tools can make the difference. They cannot.
    If you want to make a choice of development environment to modernize your forms application, then the availability of a migration tool should not play a role!
    It is a fundamental and strategic decision to go for Oracle ADF which should not be influenced by a minor time saver like a migration tool.
    To decide on the use of JHeadstart, the evaluation version with the tutorial should be convincing enough.
    The real power of Jheadstart is not in the Forms2ADF Generator, this tool is just a lbonus that can save you a bit of time.
    Here is some more info:
    When does JHeadstart Forms2ADF Generator save time
    The amount of work that can be saved by using the JHeadstart Forms2ADF Generator (JFG) very much depends on the structure of the Oracle Forms application at hand. The JHeadstart Forms2ADF Generator provides most savings for forms that have the following characteristics:
    * Standard-Forms data retrieval and data manipulation through blocks based on database tables, with master-detail relations defined between the block
    * Complex user interface, many (stacked) canvasses, many tabs, many list of values, and other display types
    * PL/SQL logic mostly limited to user interface dynamics: conditionally showing/hiding user interface items, and conditionally changing the properties of user interface items. While JHeadstart does not convert PL/SQL logic, this type of logic is easily implemented in the ADF application because JHeadstart provides many declarative property settings to implement this behavior.
    PL.SQL Logic
    JHeadstart has made the deliberate choice to not automatically convert the PL/SQL logic to Java. The reasons for this are:
    * It is impossible to automate the migration of a two-tier architecture (logic in Forms or in the database) to a three tier Model-View-Controller architecture as is common in JEE web applications, including ADF-based applications.
    * The architecture of the converted application should be identical to the best-practice architecture of an ADF application that is build from scratch. If the architecture is the same, the same skill set can be used to maintain both migrated applications and ADF applications build from scratch. In addition, by going for a best practice architecture, the application is more flexible, and can be maintained easier at lower cost.
    * When using the JHeadstart Forms2ADF Generator, you get this best-practice ADF architecture that is identical to ADF/JHeadstart applications that are built from scratch.
    Other Forms2ADF Considerations
    And even if it turns out the JFG adds a lot of value, there are many other questions you should ask yourself before embarking on a Foms2ADF project.
    For example:
    * Apart from technical reasons like old Forms verisons no longer supported, are there real business reasons and business benefits for migrating that justify the migration effort?
    * To what extent is the application still meeting functional requirements?
    * Are there issues with stability and end user friendliness?
    * Old forms applications are typical "window-on-data" screens, you see the structure of the datamodel through the layout of the screens. Modern web 2.0 composite applications are more task-oriented with good support for human workflow. You should consider to what extent it wants to leverage all these new user interfaces capabilities that come with ADF Faces and WebCenter.
    * How does the application fits in the overall IT landscape? What interfaces to other systems exist, what (old/obsolete?) technology is used to implement those interfaces?
    * What about batch functionality and reporting facilities?
    * May be part of the functionality of the current system can be replaced with standard off-the-shelf software?
    * How sound, well structured and future proof is the underlying datamodel?
    * To what extent are you looking at service-orientated architectures? Whats the SOA maturity level of your organisation?
    * Above questions help to answer the key question: how desirable and benficial is it to migrate an old monolitic forms application 1:1 to a monolitic ADF aplication? How does that fit in overall IT strategy?
    * Organisational isues: who will migrate the system, who will maintain the system? Is outsourcing considered? etc.
    Next Steps
    We offer a Forms2ADF assessment service in which we migrate a number of sample forms selected by the customer to assess the added value of the JFG, and we discuss all of the above questions
    For example, I did one Forms2ADF assessment where it turned out that JFG added litlle or no value, but we were still able to convince the customer of the combined power of ADF and JHeadstart in (re-)building ADF apps from scratch.
    You also might want to take a look at some presentations I did on this topic, and some online demo's:
    * Guidelines for moving from Oracle Forms to Oracle ADF and SOA: http://www.slideshare.net/stevendavelaar/forms2-adfsoa-ukoug
    * JHeadstart Forms2ADF Generator – Migrating from Oracle Forms to a Best-Practice ADF application: http://www.slideshare.net/stevendavelaar/jhs11-forms2-adfukoug
    * 3 online demo's of forms2adf conversion process: http://www.oracle.com/technetwork/developer-tools/jheadstart/overview/index.html
    Hope this helps,
    Steven Davelaar,
    JHeadstart Team.
    Steven Davelaar,
    JHeadstart Team.

  • Rich Text Field in HTML

    I need to design an xdp form that can be rendered in HTML and which allows the user to format text field content. I created a text field control with data format of xhtml. In Adobe Acrobat Professional I can use CNTRL-E to open the "Form Field Text Properties" toolbar. Will this work in the web browser when the form is rendered as HTML?
    Also, is it possible to insert a hyperlink into a rich text field when rendered as HTML or PDF? Are hyperlinks even supported in text fields of forms designed using LiveCycle?

    hi
    another way to do it is to specify RenderFormat property of Content by search web part (it is not available from UI, only programmatically or declaratively):
    <property name="RenderFormat" type="string">&lt;Format Type=&quot;HTML&quot; /&gt;</property>
    Format is very important and it should be exactly like shown above. Check the following post for details:
    Problem with trimmed html content in search index in Sharepoint 2013.
    Blog - http://sadomovalex.blogspot.com
    Dynamic CAML queries via C# - http://camlex.codeplex.com

  • Info required on Jheadstart

    Hello All,
    We need to migrate an application developed in oracle Forms to J2EE migration using Oracle-ADF. Major functionalities developed
    using Oracle forms and Java Swing.
    We need some input regarding
    1)Pro and cons of Jheadstart as a migration tool.
    2)Licence details
    3)Support on new releases of tool
    4)Any link where we can download the trial version and do an evaluation ( Compartible with Jdeveloper 11.1.1.4.0.)
    5)Is there any user training provided in Oracle for Jheadstart
    6)For purchase provide the contact details/link
    Regards,
    Lokanath Giri

    Lokanath.
    I suggest you start with going to the Jheadstart product center at
    http://www.oracle.com/technetwork/developer-tools/jheadstart/overview/index.html
    You can download the evaluation version there, or through JDeveloper -> Help -> Check for Updates -> Open Source and Partner Extensions Update Center.
    There is also a link to the FAQ there:
    http://www.oracle.com/technetwork/developer-tools/jheadstart/jheadstart-faq-085254.html
    There is a Jheadstart course available that we schedule on request.
    Regarding Question 1, in general, people tend to underestimate the effort involved in migrating from Forms to ADF.
    Migration tools like the JHeadstart Forms2ADF Generator can be of help, but are by no means a silver bullet.
    When does JHeadstart save time
    The amount of work that can be saved by using the JHeadstart Forms2ADF Generator (JFG) very much depends on the structure of the Oracle Forms application at hand. The JHeadstart Forms2ADF Generator provides most savings for forms that have the following characteristics:
    * Standard-Forms data retrieval and data manipulation through blocks based on database tables, with master-detail relations defined between the block
    * Complex user interface, many (stacked) canvasses, many tabs, many list of values, and other display types
    * PL/SQL logic mostly limited to user interface dynamics: conditionally showing/hiding user interface items, and conditionally changing the properties of user interface items. While JHeadstart does not convert PL/SQL logic, this type of logic is easily implemented in the ADF application because JHeadstart provides many declarative property settings to implement this behavior.
    PL.SQL Logic
    JHeadstart has made the deliberate choice to not automatically convert the PL/SQL logic to Java. The reasons for this are:
    * It is impossible to automate the migration of a two-tier architecture (logic in Forms or in the database) to a three tier Model-View-Controller architecture as is common in JEE web applications, including ADF-based applications.
    * The architecture of the converted application should be identical to the best-practice architecture of an ADF application that is build from scratch. If the architecture is the same, the same skill set can be used to maintain both migrated applications and ADF applications build from scratch. In addition, by going for a best practice architecture, the application is more flexible, and can be maintained easier at lower cost.
    * When using the JHeadstart Forms2ADF Generator, you get this best-practice ADF architecture that is identical to ADF/JHeadstart applications that are built from scratch.
    Other Forms2ADF Considerations
    And even if it turns out the JFG adds a lot of value, there are many other questions you should ask yourself before embarking on a Foms2ADF project.
    For example:
    * Apart from technical reasons like old Forms verisons no longer supported, are there real business reasons and business benefits for migrating that justify the migration effort?
    * To what extent is the application still meeting functional requirements?
    * Are there issues with stability and end user friendliness?
    * Old forms applications are typical "window-on-data" screens, you see the structure of the datamodel through the layout of the screens. Modern web 2.0 composite applications are more task-oriented with good support for human workflow. You should consider to what extent it wants to leverage all these new user interfaces capabilities that come with ADF Faces and WebCenter.
    * How does the application fits in the overall IT landscape? What interfaces to other systems exist, what (old/obsolete?) technology is used to implement those interfaces?
    * What about batch functionality and reporting facilities?
    * May be part of the functionality of the current system can be replaced with standard off-the-shelf software?
    * How sound, well structured and future proof is the underlying datamodel?
    * To what extent are you looking at service-orientated architectures? Whats the SOA maturity level of your organisation?
    * Above questions help to answer the key question: how desirable and benficial is it to migrate an old monolitic forms application 1:1 to a monolitic ADF aplication? How does that fit in overall IT strategy?
    * Organisational isues: who will migrate the system, who will maintain the system? Is outsourcing considered? etc.
    Next Steps
    We offer a Forms2ADF assessment service in which we migrate a number of sample forms selected by the customer to assess the added value of the JFG, and we discuss all of the above questions
    For example, I did one Forms2ADF assessment where it turned out that JFG added litlle or no value, but we were still able to convince the customer of the combined power of ADF and JHeadstart in (re-)building ADF apps from scratch.
    You also might want to take a look at some presentations I did on this topic, and some online demo's:
    * Guidelines for moving from Oracle Forms to Oracle ADF and SOA: http://www.slideshare.net/stevendavelaar/forms2-adfsoa-ukoug
    * JHeadstart Forms2ADF Generator – Migrating from Oracle Forms to a Best-Practice ADF application: http://www.slideshare.net/stevendavelaar/jhs11-forms2-adfukoug
    * 3 online demo's of forms2adf conversion process: http://www.oracle.com/technetwork/developer-tools/jheadstart/overview/index.html
    Hope this helps,
    Steven Davelaar,
    JHeadstart Team.

  • WebStart, custom security policy and debugging

    Hi,
    Please forgive the long post, it's an obscure problem.
    A year ago I implemented a custom instance-centric security policy that uses a database for storing permission data. It has served our needs very well on the server side. Now, however, I need to reuse it in a client application deployed to about 50 users via WebStart (there are more similar applications coming which will take the user base to about 200).
    For some reason, the permissions are not being properly evaluated under WebStart. Tracing through my policy code, I can see that calls to imply() return with expected true/false values, however, when the internals of Java's underlying security API aggregate the results, calls to AccessController.checkPermission() don't raise exceptions when and where they are expected to.
    This is really a hard problem to debug/trace. When I run the application locally, I have no problems with security checks even if I run it under a security manager (via -D.java.security.manager). Tracing to standard helps to a point and I can see that there is a difference: during the local runs, calls to MyCustomPolicy.implies(Permission, Domain) are made once per every AccessController.checkPermission() call made from the business layer. Under WebStart, there are three calls to MyCustomPolicy.implies() per every call to AccessController.checkPermission(). All three calls seem to come from the same stack frame. All three return 'false', yet AccessController.checkPermission() doesn't raise an exception.
    Analyzing stack's state at the point MyCustomPolicy.implies() is been called, I think the answer to my problem may lie in the following code snippet of AccessControlContext.checkPermission(Permission):
            for (int i=0; i< context.length; i++) {
                if (context[i] != null &&  !context.implies(perm)) {
    if (debug != null) {
    debug.println("access denied "+perm);
    if (Debug.isOn("failure")) {
    Thread.currentThread().dumpStack();
    final ProtectionDomain pd = context[i];
    final Debug db = debug;
    AccessController.doPrivileged (new PrivilegedAction() {
    public Object run() {
    db.println("domain that failed "+pd);
    return null;
    throw new AccessControlException("access denied "+perm, perm);
    I believe that somehow one of the iterations gets to "return null" line, but at the moment I have no way of verifying this.
    I'm finally getting to my question. In order for me to understand what's going on, I need to enable debugging of AccessControlContext. I can do this by setting java.security.debug system property. Again, I have no problem enabling debugging on a local system, but not under WebStart.
    Here's what the relevant markup in the .jnlp file looks like:
    <resources>
    <j2se version="1.5" max-heap-size="128m" initial-heap-size="32m" java-vm-args="-Djava.security.debug=all">
    </j2se>
    <!-- a bunch of jar declarations -->
    <property name="java.security.auth.login.config" value="jar:swing-app-SNAPSHOT.jar!/jaas_login.properties">
    </property>
    <property name="java.security.debug" value="all">
    </property>
    </resources>
    this seems to have no effect and no debugging output appears. Any ideas why? Is there anything else I can do to enable debugging of AccessControlContext under WebStart?
    I don't expect too many replies to my post (unless 3 sleepless weeks made me miss something really obvious), but if anyone can offer a hit/hit/insightful comment :), that would be great.
    Dmitry

    Hey
    I have just finished such a policy implemention - boy could I have done with your help!
    I've never seen the java.security.debug property before - not to say it doesn't exist, but don't confuse system properties and security properties. Try setting it programmatically via Security.setProperty() or the Java Admin console [if you can], or even in the JRE WebStart uses via the java.security file.
    When you run it locally with security switched on, do you observe the 3-to-1 behaviour also? I'm not sure if this is important - depends on your answer. As for the checks being performed from the same stack frame, the AC iterates over the protection domains as it checks them; the 3-to-1 behaviour is the result of there being 3 extra frames to check, possibly due to the fact your executing from JWS [although I'd expect JWS to be considered system code]. If the execution in AC gets to return null; then Debug.isOn("failure") must evaluate to true [...I'd slump in my chair at this point] but there's no way to figure out accurately what the semantics of this is AS THERE'S NO FRICKIN SRC AVAILABLE [...this really annoys me]. The only thing I can suggest for that is to not try and switch debugging on.
    I suspect you are using JAAS [hence the dynamic policy need]? I have an idea if you are.
    I totally know what you mean about the sleepless nights mate - I'm glad I done it all now, learnt all about security within Java which I knew nothing about 6 months ago.
    Warm regads,
    D

  • Any example customer has migrated from Oralce Forms to ADF?

    Any benchmark or how many customers have done the migration from Forms to ADF?
    Btw, is all kind of Froms convertible by Froms2ADF tools ?
    thanks for any suggestion.

    Here is my view on this:
    In general, people tend to underestimate the effort involved in migrating from Forms to ADF.
    Migration tools like the JHeadstart Forms2ADF Generator can be of help, but are by no means a silver bullet.
    When does JHeadstart save time
    The amount of work that can be saved by using the JHeadstart Forms2ADF Generator (JFG) very much depends on the structure of the Oracle Forms application at hand. The JHeadstart Forms2ADF Generator provides most savings for forms that have the following characteristics:
    - Standard-Forms data retrieval and data manipulation through blocks based on database tables, with master-detail relations defined between the block
    - Complex user interface, many (stacked) canvasses, many tabs, many list of values, and other display types
    - PL/SQL logic mostly limited to user interface dynamics: conditionally showing/hiding user interface items, and conditionally changing the properties of user interface items. While JHeadstart does not convert PL/SQL logic, this type of logic is easily implemented in the ADF application because JHeadstart provides many declarative property settings to implement this behavior.
    PL.SQL Logic
    JHeadstart has made the deliberate choice to not automatically convert the PL/SQL logic to Java. The reasons for this are:
    - It is impossible to automate the migration of a two-tier architecture (logic in Forms or in the database) to a three tier Model-View-Controller architecture as is common in JEE web applications, including ADF-based applications.
    - The architecture of the converted application should be identical to the best-practice architecture of an ADF application that is build from scratch. If the architecture is the same, the same skill set can be used to maintain both migrated applications and ADF applications build from scratch. In addition, by going for a best practice architecture, the application is more flexible, and can be maintained easier at lower cost.
    - When using the JHeadstart Forms2ADF Generator, you get this best-practice ADF architecture that is identical to ADF/JHeadstart applications that are built from scratch.
    Other Forms2ADF Considerations
    Even if it turns out the JFG adds value, there are many other questions the customer should ask himself before embarking on a Foms2ADF project. For example:
    - Apart from technical reasons like old Forms verisions no longer supported, are there real business reasons and business benefits for migrating that justify the migration effort?
    - To what extent is the application still meeting functional requirements?
    - Are there issues with stability and end user friendliness?
    - Old forms applications are typical "window-on-data" screens, you see the structure of the datamodel through the layout of the screens. Modern web 2.0 composite applications are more task-oriented with good support for human workflow. The customer should consider to what extent it wants to leverage all these new user interfaces capabilities that come with ADF Faces and WebCenter.
    - How does the application fits in the overall IT landscape of the customer? What interfaces to other systems exist, what (old/obsolete?) technology is used to implement those interfaces?
    - What about batch functionality and reporting facilities?
    - May be part of the functionality of the current system can be replaced with standard off-the-shelf software?
    - How sound, well structured and future proof is the underlying datamodel?
    - To what extent is the customer looking at service-orientated architectures? Whats the SOA maturity level of the customer?
    - Above questions help to answer the key question: how desirable and beneficial is it to migrate an old monolitic forms application 1:1 to a monolitic ADF aplication? How does that fit in overall IT strategy?
    - Organisational isues: who will migrate the system, who will maintain the system? Is outsourcing considered? etc.
    Some customer experiences
    Over the years I have been involved with a number of customers that migrated from Forms to ADF. With some of these customers we used the Forms2ADF Generator in the proof-of-concept phase to convince them of the combined power of ADF and JHeadstart. However, with NONE of these customers we used the Forms2ADF Generatpr during actual migration, for various reasons as listed above. All customers eventually chose to truly re-engineer the application while rebuilding in ADF achieving signifcant new business benefits that justified the investment. A choice recommended and encouraged by me, despite the fact I am the creator of the JFG. Note that ALL customers use JHeadstart heavily forbuilding the re-engineered ADF application, they just don't use the Forms2ADF generator, but the JHeadstart Application generator to create the ADF app from scratch.
    Other resources
    You also might want to take a look at the following presentations:
    - http://www.slideshare.net/stevendavelaar/forms2-adfsoa-ukoug
    - http://www.slideshare.net/stevendavelaar/jhs11-forms2-adfukoug
    - http://www.slideshare.net/oracle_imc_team/oracle-forms-modernization-strategies
    - http://www.slideshare.net/lucasjellema/forms-2-future-the-ongoing-journey-into-the-future-for-oracle-based-organizations
    Hope this helps,
    Steven Davelaar,
    JHeadstart Team

  • Do I have to release IBOutlet?

    Do I have to release IBOutlet objects? My guess is no because I did not do the init myself. But if I look into the generated appdelegate the window seems to be released. Any ideas?

    A pointer is retained if the setter method retains it; if not, not.
    If you've declared @property(retain) and have then used @synthesize to ask Objective-C to create a setter for you automatically, the setter will retain the pointer it is given, just as you requested.
    Apple's recommended behaviour in dealloc is risky programming practice, because whether it is correct or not depends on how you happen to have set up @property in the header file. A change to @property, from assign to retain or vice versa, will cause bugs that aren't picked up by the compiler.
    Far safer is to do something like this:
    -dealloc
    {self.oneOutletPointer=nil;
    self.anotherOutletPointer=nil;
    [super dealloc];
    The member assignments will use the setter if there is one.
    If the setter was declared with 'retain', they will release the old value. This is correct.
    If the setter was declared with 'assign', they will do nothing to the retain count. This is also correct.
    Note that you do require 'self.' in front of the member names. If you don't use it, the values will be overwritten directly without the setter being used.

  • [iPhone] Question about properties/ivars and retain/release

    I'm not sure I am understanding how the retain/release policy works for properties fully. I have the following property declaration:
    @property (nonatomic, retain) AudioPlayer *audioPlayer;
    An instance is created using the following code:
    self.audioPlayer = [[AudioPlayer alloc] initWithDelegate:self];
    If I call the following, the dealloc method of audioPlayer does not get called:
    [audioPlayer release];
    audioPlayer = nil;
    If I call this, the dealloc method does get called:
    [audioPlayer release];
    self.audioPlayer = nil;
    What about setting the pointer to nil using the 'dot' property notation makes the reference count get to zero when it does not in the above code block?

    The synthesized property adds 1 to the retain count. But the object was born with a retain count of 1, and 1+1=2.
    Splitting the first line into two may make it clearer:
    AudioPlayer * temp=[[AudioPlayer alloc] initWithDelegate:self];
    allocates the object with a retain count of 1.
    self.audioPlayer=temp;
    increases the retain count by 1.
    To get the result you want (retain count=1), do this:
    AudioPlayer * temp=[[AudioPlayer alloc] initWithDelegate:self]; // 1
    self.audioPlayer=temp; // 2
    [temp release]; // 1
    or this:
    self.audioPlayer=[[[AudioPlayer alloc] initWithDelegate:self] autorelease];
    This creates the object with a retain count of 1, increases the retain count by 1 because the object pointer is being stored into a property, and arranges for the retain count to be decremented by 1 in the not too distant future.
    You could also do this:
    audioPlayer=[[AudioPlayer alloc] initWithDelegate:self];
    which doesn't invoke the property setter but stores the pointer directly in the class variable. If you confine yourself strictly to doing this once only, at the beginning of everything, then it's quite safe. Otherwise the autorelease form is probably the best compromise in terms of readability.

Maybe you are looking for

  • Thoroughly Disappointed By your lack of understanding!!

    Dear Sirs,  On September 4th this year my Partner, Anastasia and I went to your Champaign, IL Store on Prospect Ave and we specifically asked for a Color Laser Printer that had Duplex facility, we were sold an HP Laser Jet Pro 200, which does not hav

  • Creating asset with reference

    Hi, I am facing the following problem: When we use transaction AS01 to create a new asset and use another asset as a reference none fields are copy to the new asset. I think that this must be a customising issue but i do not finf anything relative to

  • Blob upload using either forms 9i or plsql

    I would like to upload over 100 thousand different images (.doc, .pdf, .txt, .gif, .xls, etc.) into an Oracle 9i database using either Forms 9i Release 2 or plsql. I would like to do this in one batch program... Would anyone please give me some ideas

  • Variable on Characterstic description

    Hi All, My Report Requirement is user want to enter desription as input in the variable screen of the Report. E.g. user want to enter Sales Organisation description in the Variable screen instead of Sales organisation Key. Can anyone help me to get t

  • Problem using agent-update.bin to roll out SunMC agents

    Greetings, I want to use agent-update.bin to roll out SUNMC agents to solaris 9 and 10 hosts. I use the es-agentupdate.sh tool to create the installation package and the seed file on the SunMC server in /var/opt/SUNWsymon/agentupdate. I copy the bina