V2 style trigger

Hi all
I am having a form in which somebody has written a code in pre insert trigger
but whenever i tried to open this trigger i got the following error message
FRM-11604: V2-style triggers cannot be edited in Form Builder.
How can i see the code written in V2-style Trigger.
I am using Forms 6i
Any help in this matter will be appreciated.

You will need your old copy of Forms 4.5 to edit the trigger (if you have it).
You may be able to convert your *.fmb to a text file *.fmt and have a look - not sure.

Similar Messages

  • Converting Forms - V2 Style triggers

    My doubt today is:
    Didn´t Oracle created a way to convert V2 style triggers into PL/SQL?
    I have to migrate some forms from 4.5 to 10g, and there are lots of these V2 triggers.
    Do I really have to convert them manually or are there other ways to do it?

    You are about 15 years too late. V2 style triggers came in, strangely enough, version 2 of Forms. Version 3 had PLSQL as a major feature and you were unable to create V2 style trigger in v3 so your forms must have originated in v2. If there was a converter in version 3 I don't know, perhaps someone in this forum knows. If there was, it is no more so you are looking at redoing them manually I am afraid.

  • Forms 3 to Forms 6

    Hi,
    I have an application with forms 3 and v2 triggers. I can use ifcmp60 to convert files .inp to forms 6i, but triggers don't match. impossible to open them.
    Does any body know what to do.
    It's important and urgent, so I need your help.
    Thank you so much in advance.

    When you try to upgrade an inp which is having v2 style triggers, some time you will face problem and also, the upgrade will to the work for Forms 3.0 inp not for 2.3.
    More over, in Forms6i, you can not see or edit the v2 style trigger steps. So, better upgrade all your v2 style triggers to pl/sql style trigger then upgrade.
    As a tools company, we have tool for upgrade all your v2 styles triggers to plsql style triggers in Forms 2.3 or Form 3.0 or Forms 4.5 or Forms 6i. For more details, you can contact us.

  • How to make Dynamically Shortened Text With "Show More"

    Hi there! i want to know how to make dynamically shortened text with show more or read more in my website using HTML 5 pages  or ASP.NET ?
    example like these paragraphs 
    Lorem Ipsum är en utfyllnadstext från tryck- och förlagsindustrin. Lorem ipsum har varit standard ända sedan 1500-talet, när en okänd boksättare tog att antal bokstäver och blandade dem för att göra ett provexemplar av en bok. Lorem ipsum har inte bara överlevt fem århundraden, utan även övergången till elektronisk typografi utan större förändringar. Det blev allmänt känt på 1960-talet i samband med lanseringen av Letraset-ark med avsnitt av Lorem Ipsum, och senare med mjukvaror som Aldus PageMaker.
    Det är ett välkänt faktum att läsare distraheras av läsbar text på en sida när man skall studera layouten. Poängen med Lorem Ipsum är att det ger ett normalt ordflöde, till skillnad från "Text här, Text här", och ger intryck av att vara läsbar text. Många publiseringprogram och webbutvecklare använder Lorem Ipsum som test-text, och en sökning efter "Lorem Ipsum" avslöjar många webbsidor under uteckling. Olika versioner har dykt upp under åren, ibland av olyckshändelse, ibland med flit (mer eller mindre humoristiska).
    I motsättning till vad många tror, är inte Lorem Ipsum slumvisa ord. Det har sina rötter i ett stycke klassiskt litteratur på latin från 45 år före år 0, och är alltså över 2000 år gammalt. Richard McClintock, en professor i latin på Hampden-Sydney College i Virginia, översatte ett av de mer ovanliga orden, consectetur, från ett stycke Lorem Ipsum och fann dess ursprung genom att studera användningen av dessa ord i klassisk litteratur. Lorem Ipsum kommer från styckena 1.10.32 och 1.10.33 av "de Finibus Bonorum et Malorum" (Ytterligheterna av ont och gott) av Cicero, skriven 45 före år 0. Boken är en avhandling i teorier om etik, och var väldigt populär under renäsanssen. Den inledande meningen i Lorem Ipsum, "Lorem Ipsum dolor sit amet...", kommer från stycke 1.10.32.
    Den ursprungliga Lorem Ipsum-texten från 1500-talet är återgiven nedan för de intresserade. Styckena 1.10.32 och 1.10.33 från "de Finibus Bonorum et Malorum" av Cicero hittar du också i deras originala form, åtföljda av de engelska översättningarna av H. Rackham från 1914.

    Moved to the main Dreamweaver support forum.
    There are several ways you could approach this. Here's one you might try:
    Give the first paragraph an ID, such as "first", and wrap the paragraphs you want to hide in a <div> with another ID, such as "more". Then add the following block of JavaScript just before the closing </body> tag of the page:
    <script>
    var first = document.getElementById('first'),
         more = document.getElementById('more'),
         trigger = document.createElement('span');
    trigger.id = 'trigger';
    trigger.innerHTML = 'Show less';
    first.appendChild(trigger);
    function toggleDiv() {
      var state = more.className,
           text = trigger.innerHTML;
      more.className = (state == 'open') ? 'closed' : 'open';
      trigger.innerHTML = (text == 'Show more') ? 'Show less' : 'Show more';
    toggleDiv();
    if (trigger.addEventListener) {
        trigger.addEventListener('click', toggleDiv, false);
    } else if (trigger.attachEvent) {
      trigger.attachEvent('onclick', toggleDiv);
    } else {
      trigger.onclick = toggleDiv;
    </script>
    This gets references to the "first" paragraph and the "more" <div>. It also creates a <span> with the ID "trigger" that's appended to the "first" paragraph. The rest of the script defines a function called toggleDiv(), which toggles the "more" <div> open and closed, and changes the text in the "trigger" <span>.
    You also need to create the following style rules for the various elements:
    <style>
    #trigger {
        text-decoration: underline;
        color: blue;
        cursor: pointer;
    #more {
        transition: ease-out .7s;
        overflow: hidden;
    #more p:first-child {
        margin-top: 0;
    #more.closed {
        height: 0;
        -webkit-transform: translateY(-600px);
        transform: translateY(-600px);
    #more.open {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        max-height: 600px;
    #more + p {
        margin-top: 0;
    </style>
    This solution hides the text and creates the "trigger" <span> only if JavaScript is enabled in the browser. It should work in all browsers, including Internet Explorer 8 and earlier.

  • Getting V2 style Step Trigger Content using API

    I have written a C++ code for getting forms trigger text using API. In which, I am not able to get V2 style step trigger text from Forms6/6i API. Can anyone help me to sort this out?
    Thanks
    Kannan M.

    Kannan,
    V2-Trigger-Steps are sub-objects of pl/sql triggers. They are exposed from Forms6i patch 3 (or 4?) and onwards. For an example on how to get to them checkout FormsAPI Master from www.orcl-toolbox.com ... in there you will find a script that does this.
    Regards, Stefan

  • Unable to trigger my event

    dear experts,
                            I need to add some extra features to title bar of my alv report.i got some documents and iam trying on that.Here in my program its displaying the newly created icon but when i click on that icon its not displaying or teriigering my event -
    class lcl_event_receiver definition deferred.
    TYPE-POOLS: ICON.
    data: con type ref to cl_gui_custom_container,
          gr_alvgrid type ref to cl_gui_alv_grid.
    DATA: ITAB_EXCLUDE TYPE UI_FUNCTIONS.
    DATA: WA_EXCLUDE TYPE UI_FUNC.
    data: it_toolbar  TYPE stb_button.
    data: begin of itab occurs 0.
            include structure mara.
    data: end of itab.
    data: event_receiver TYPE REF TO LCL_EVENT_RECEIVER.
    select * from mara into table itab.
    call screen 1000.
          CLASS lcl_event_receiver DEFINITION
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        class-methods: handle_toolbar for event toolbar of cl_gui_alv_grid importing e_object e_interactive,
        handle_menu_buttons for event menu_button of cl_gui_alv_grid importing e_object e_ucomm,
        handle_USER_COMMAND for event user_command   of cl_gui_alv_grid importing e_ucomm.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
          CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver implementation.
      method handle_toolbar.
        move 'DETAIL-TAIL' TO IT_TOOLBAR-FUNCTION.
        MOVE ICON_DETAIL TO IT_TOOLBAR-ICON.
        MOVE 2 TO IT_TOOLBAR-BUTN_TYPE.
        APPEND IT_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
      ENDMETHOD.                    "handle_toolbar
      METHOD HANDLE_MENU_BUTTONS.
        IF E_UCOMM = 'DETAIL'.
          CALL METHOD e_object->add_function
            EXPORTING
              fcode = 'DISPLAY'
              text  = 'DISPLAY'.
        ENDIF.
      ENDMETHOD.                    "HANDLE_MENU_BUTTONS
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'DISPLAY'.
            MESSAGE 'Menu Clicked' TYPE 'I'.
        ENDCASE.
      ENDMETHOD.                           "handle_user_command
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION
    MODULE STATUS_1000 OUTPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      CREATE OBJECT CON
        EXPORTING
       PARENT                      =
          CONTAINER_NAME              = 'CO_CON'
       STYLE                       =
       LIFETIME                    = lifetime_default
       REPID                       =
       DYNNR                       =
       NO_AUTODEF_PROGID_DYNNR     =
    EXCEPTIONS
       CNTL_ERROR                  = 1
       CNTL_SYSTEM_ERROR           = 2
       CREATE_ERROR                = 3
       LIFETIME_ERROR              = 4
       LIFETIME_DYNPRO_DYNPRO_LINK = 5
       others                      = 6
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT GR_ALVGRID
        EXPORTING
        I_SHELLSTYLE      = 0
        I_LIFETIME        =
          I_PARENT           =  CON
        I_APPL_EVENTS     = space
        I_PARENTDBG       =
        I_APPLOGPARENT    =
        I_GRAPHICSPARENT  =
        I_NAME            =
        I_FCAT_COMPLETE   = SPACE
      EXCEPTIONS
        ERROR_CNTL_CREATE = 1
        ERROR_CNTL_INIT   = 2
        ERROR_CNTL_LINK   = 3
        ERROR_DP_CREATE   = 4
        others            = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      WA_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_MAXIMUM.
      APPEND WA_EXCLUDE TO ITAB_EXCLUDE.
      WA_EXCLUDE = CL_GUI_ALV_GRID=>MC_mb_SUM.
      APPEND WA_EXCLUDE TO ITAB_EXCLUDE.
      CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
       I_BUFFER_ACTIVE               =
       I_BYPASSING_BUFFER            =
       I_CONSISTENCY_CHECK           =
          I_STRUCTURE_NAME              = 'MARA'
       IS_VARIANT                    =
       I_SAVE                        =
       I_DEFAULT                     = 'X'
       IS_LAYOUT                     =
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
          IT_TOOLBAR_EXCLUDING          = ITAB_EXCLUDE
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
       IT_EXCEPT_QINFO               =
       IR_SALV_ADAPTER               =
        CHANGING
          IT_OUTTAB                     = ITAB[]
       IT_FIELDCATALOG               =
       IT_SORT                       =
       IT_FILTER                     =
    EXCEPTIONS
       INVALID_PARAMETER_COMBINATION = 1
       PROGRAM_ERROR                 = 2
       TOO_MANY_LINES                = 3
       others                        = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT event_receiver.
      SET HANDLER event_receiver->handle_user_command
                  event_receiver->handle_menu_buttons
                  event_receiver->handle_toolbar FOR ALL INSTANCES.  "*Calling the interactive toolbar method of ALV
      CALL METHOD GR_ALVGRID->set_toolbar_interactive.
    ENDMODULE.                 " STATUS_1000  OUTPUT
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT

    hi marcin, thanks a lot for your help..i have coded but still unable to trigger user_commaned method.Could you check this in your machine-
    class lcl_event_receiver definition deferred.
    TYPE-POOLS: ICON.
    data: con type ref to cl_gui_custom_container,
          gr_alvgrid type ref to cl_gui_alv_grid.
    DATA: ITAB_EXCLUDE TYPE UI_FUNCTIONS.
    DATA: WA_EXCLUDE TYPE UI_FUNC.
    data: it_toolbar  TYPE stb_button.
    data: begin of itab occurs 0.
            include structure mara.
    data: end of itab.
    data: event_receiver TYPE REF TO LCL_EVENT_RECEIVER.
    select * from mara into table itab.
    call screen 1000.
          CLASS lcl_event_receiver DEFINITIONL
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        class-methods:
        handle_menu_buttons for event menu_button of cl_gui_alv_grid importing e_object e_ucomm,
        handle_USER_COMMAND for event user_command   of cl_gui_alv_grid importing e_ucomm,
    handle_toolbar for event toolbar of cl_gui_alv_grid importing e_object e_interactive.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
          CLASS lcl_event_receiver IMPLEMENTATION
    CLASS lcl_event_receiver implementation.
      method handle_toolbar.
        move 'DETAIL-TAIL' TO IT_TOOLBAR-FUNCTION.
        MOVE ICON_DETAIL TO IT_TOOLBAR-ICON.
        MOVE 2 TO IT_TOOLBAR-BUTN_TYPE.
        APPEND IT_TOOLBAR TO E_OBJECT->MT_TOOLBAR.
      ENDMETHOD.                    "handle_toolbar
      METHOD HANDLE_MENU_BUTTONS.
        IF E_UCOMM = 'DETAIL-TAIL'.
          CALL METHOD e_object->add_function
            EXPORTING
              fcode = 'DISPLAY-TAIL'
              text  = 'DISPLAY'.
        ENDIF.
      ENDMETHOD.                    "HANDLE_MENU_BUTTONS
      METHOD handle_user_command.
        CASE E_UCOMM.
          WHEN 'DISPLAY-TAIL'.
            MESSAGE 'THESE IS TEST EVENT' TYPE 'I'.
            ENDCASE.
            ENDMETHOD.
            ENDCLASS.
    MODULE STATUS_1000 OUTPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    CREATE OBJECT CON
        EXPORTING
       PARENT                      =
          CONTAINER_NAME              = 'CO_CON'
       STYLE                       =
       LIFETIME                    = lifetime_default
       REPID                       =
       DYNNR                       =
       NO_AUTODEF_PROGID_DYNNR     =
    EXCEPTIONS
       CNTL_ERROR                  = 1
       CNTL_SYSTEM_ERROR           = 2
       CREATE_ERROR                = 3
       LIFETIME_ERROR              = 4
       LIFETIME_DYNPRO_DYNPRO_LINK = 5
       others                      = 6
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT GR_ALVGRID
        EXPORTING
        I_SHELLSTYLE      = 0
        I_LIFETIME        =
          I_PARENT           =  CON
        I_APPL_EVENTS     = space
        I_PARENTDBG       =
        I_APPLOGPARENT    =
        I_GRAPHICSPARENT  =
        I_NAME            =
        I_FCAT_COMPLETE   = SPACE
      EXCEPTIONS
        ERROR_CNTL_CREATE = 1
        ERROR_CNTL_INIT   = 2
        ERROR_CNTL_LINK   = 3
        ERROR_DP_CREATE   = 4
        others            = 5
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      WA_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_MAXIMUM.
      APPEND WA_EXCLUDE TO ITAB_EXCLUDE.
      WA_EXCLUDE = CL_GUI_ALV_GRID=>MC_mb_SUM.
      APPEND WA_EXCLUDE TO ITAB_EXCLUDE.
    CALL METHOD GR_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
       I_BUFFER_ACTIVE               =
       I_BYPASSING_BUFFER            =
       I_CONSISTENCY_CHECK           =
          I_STRUCTURE_NAME              = 'MARA'
       IS_VARIANT                    =
       I_SAVE                        =
       I_DEFAULT                     = 'X'
       IS_LAYOUT                     =
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
          IT_TOOLBAR_EXCLUDING          = ITAB_EXCLUDE
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
       IT_EXCEPT_QINFO               =
       IR_SALV_ADAPTER               =
        CHANGING
          IT_OUTTAB                     = ITAB[]
       IT_FIELDCATALOG               =
       IT_SORT                       =
       IT_FILTER                     =
    EXCEPTIONS
       INVALID_PARAMETER_COMBINATION = 1
       PROGRAM_ERROR                 = 2
       TOO_MANY_LINES                = 3
       others                        = 4
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CREATE OBJECT event_receiver.
      SET HANDLER  event_receiver->handle_menu_buttons
                  event_receiver->handle_toolbar
                  event_receiver->handle_user_command
                  FOR ALL INSTANCES.
      CALL METHOD GR_ALVGRID->set_toolbar_interactive.
    ENDMODULE.                 " STATUS_1000  OUTPUT
    *&      Module  USER_COMMAND_1000  INPUT
          text
    MODULE USER_COMMAND_1000 INPUT.
    ENDMODULE.                 " USER_COMMAND_1000  INPUT

  • Trigger Problum

    HI i have table audit_any_table
    CREATE TABLE audit_any_table
        user_name VARCHAR2(100),
        Primary_key1 VARCHAR2(100),
        table_name VARCHAR2(30),
        col_name VARCHAR2(30),
        old_value VARCHAR2(1000),
        new_value VARCHAR2(1000),
        UPDATE_DATE DATE
       );and i create a trigger
    CREATE OR REPLACE TRIGGER AUDIT_SALE_ORDER
    BEFORE UPDATE OR DELETE OR INSERT ON sale_order_detail
    REFERENCING OLD AS OLD NEW AS NEW
    FOR each ROW
    DECLARE
    v_sale_order_no sale_order.sale_order_no%TYPE;
    v_update_by sale_order.update_by%TYPE;
    CURSOR C1 IS SELECT DISTINCT(sale_order_no),update_by FROM sale_order WHERE ID=:OLD.id;
    BEGIN
    OPEN C1;
    FETCH C1 INTO v_sale_order_no,v_update_by;
    DBMS_OUTPUT.PUT_LINE(v_sale_order_no||v_update_by);
    IF INSERTING THEN
    INSERT INTO audit_any_table
       VALUES(v_update_by,v_sale_order_no,'sd',:NEW.prod_id,
              :new.style,:new.color,SYSDATE);
    END IF;
    CLOSE c1;
    END;AFTER INSERTINg VALUES In sale_order_detail the TWO COLOUMS ALWAYS NULL
    USER_NAME and PRIMARY_KEY1
    Please Guide
    Thanks And Regards
    Vikas

    vikas singhal wrote:
    AFTER INSERTINg VALUES In sale_order_detail the TWO COLOUMS ALWAYS NULL
    USER_NAME and PRIMARY_KEY1The :old record is not populated during INSERT operations. Your query isn't finding anything because you're matcing :old.id (null) with an "=" operator. Try using the :new record
    INSERT INTO audit_any_table
       VALUES(v_update_by,v_sale_order_no,'sd',:NEW.prod_id,
              :new.style,:new.color,SYSDATE);Its always a good idea to provide a VALUES clauses for your insert statements - provides self-documentation for the code and helps a lot when making changes later.
    T

  • How can I trigger a lightbox slide show with a single image using Dreamweaver?

    I'm trying to build a page for a cosmetics company in which clicking on a color swatch opens a lightbox-style slide show of model shots using that color makeup. Each swatch should trigger a different slideshow. I'm using Dreamweaver (CS6), and I'm sure there must be an easy way to do this, but I haven't figured it out yet. (It would be a snap in Flash, but alas, the site needs to work on a broad range of devices).
    I'd appreciate any ideas, and please make your instuction easy to follow if possible—pretend you're talking to a dog, or an eighty-six-year-old—because I may not be as experienced as I ought to be. Probably not.
    Thanks in advance for any advice.
    best,
    wendy

    DW doesn't do this for you. 
    Get the jQuery Fancybox plugin.
    See this Primer for Using jQuery Plugins
    http://alt-web.blogspot.com/2012/11/primer-for-using-jquery-plug-ins.html
    Nancy O.

  • I'm trying to get a style switcher going for my site(for the colour scheme)

    I'd like to give my users the choice of changing the colour
    scheme of my site (
    http://chaoscoalition.net) at
    will, through css style changing buttons such as the ones on the
    forum's theme(
    http://forum.chaoscoalition.net).
    I've read many articles and tutorials on how to set up
    alternate stylesheets for a webpage, but I can't quite get it
    right. Every time I seem to have gotten it right, it either opens
    the php file that sets the cookie, or it opens the stylesheet as
    text. I want to end up with something like the forum's theme
    changing module, but for the homepage.
    I have 5 different versions of the page made, all as
    different pages(php format), but I don't understand how to link the
    buttons at the top to trigger the stylesheet change, and I don't
    even knwo if it's possible to rely on a css file to change the
    whole colour scheme of the page(which is image based).
    It'd be great if someone could walk me through this, or offer
    some tutorial that explains how to do this from scratch.
    Thank you.

    First, never use Fireworks or any graphics app to build HTML and CSS for you.  The resulting code is rigid, fragile and only good for quick comps or prototypes to show a client.  Use DW to generate actual site code.
    Secondly, external stylesheets must not contain JavaScripts or X/HTML code as your green.css does.  Only CSS rules and comments are allowed inside external stylesheets - like so:
    /**Green CSS**/
    body {
         margin:0 auto;/**this centers page**/
         padding:0;
         width: 900px;
         font-family: arial, helvetica, sans-serif;
         color: white;
         background: green; /**this is green**/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/

  • How to change the font size and style on run time

    dear all
    i try to change the font style and font size on runtime. I did the following:
    1- i created an item(:font_size) in which i will write the size of the font for the the other item ('customer_name')
    2 on the post_change trigger for 'font_size' i write this code
    SET_ITEM_PROPERTY('customer_name',FONT_size,(:font_size);
    i write 12 then then font size changed , then i write 18 , the size does not change. and when i write any value , no change happens. I do not know why
    the second problem is how to change the font style
    i made three checkbooks (bold,italic,underline)
    on the trugger when_checkbox_checked i write
         IF :BOLD = 'B' THEN
         SET_ITEM_PROPERTY('N_SAMPLE',FONT_STYLE,'BOLD');
         ELSE
    SET_ITEM_PROPERTY('N_SAMPLE',FONT_STYLE,'REGULAR');
         END IF;     
    no change happend at all.
    please help

    Hi friend,
    it's a really really strange tip... May be it's a Forms bug? I've tried with set_item_property..and.. you're right, it doesn't work..
    So.. you can try making this:
    - create a visual attribute with an specific font size....
    - use the
    SET_ITEM_INSTANCE_PROPERTY('block.item',CURRENT_RECORD,VISUAL_ATTRIBUTE,'you_visual_attribute');
    and call it from psot-change....
    It works
    Hope it helps,
    Jose.

  • INSTEAD OF TRIGGER Issue

    The following is the select statement for which I have created the view:
    (SELECT person.person_id, person.employee_number worker_number,
    pps.actual_termination_date, pps.date_start start_date,
    ppt.system_person_type,
    hr_person_type_usage_info.get_user_person_type
    (TRUNC (SYSDATE),
    person.person_id
    ) user_person_type,
    person.full_name, person.last_name, person.first_name,
    person.middle_names middle_initial, person.known_as preferred_name,
    person.mailstop mail_stop, person.office_number roomnumber,
    DECODE
    ('Y',
    (SELECT 'Y'
    FROM DUAL
    WHERE EXISTS (
    SELECT 'Y'
    FROM per_all_assignments_f sup
    WHERE sup.supervisor_id = person.person_id
    AND TRUNC (SYSDATE)
    BETWEEN sup.effective_start_date
    AND NVL (sup.effective_end_date,
    TRUNC (SYSDATE)
    OR EXISTS (
    SELECT 'Y'
    FROM per_all_assignments_f paaf, per_jobs mgr
    WHERE paaf.person_id = person.person_id
    AND TRUNC (SYSDATE)
    BETWEEN paaf.effective_start_date
    AND NVL (paaf.effective_end_date,
    TRUNC (SYSDATE)
    AND paaf.job_id = mgr.job_id
    AND UPPER (mgr.NAME) LIKE '%MANAGER%')), 'Y',
    'N'
    ) manager_flag,
    (SELECT supervisor.full_name
    FROM per_all_people_f supervisor
    WHERE supervisor.person_id = asg.supervisor_id
    AND TRUNC (SYSDATE) BETWEEN supervisor.effective_start_date
    AND supervisor.effective_end_date)
    supervisor,
    job.NAME job_name, pay.payroll_name payroll_name,
    asg.ass_attribute6 cc,
    (SELECT DISTINCT ffv.description
    FROM fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'VS_GL_COMPANY_GLOBAL'
    AND ffv.enabled_flag = 'Y'
    AND TRUNC (SYSDATE)
    BETWEEN TRUNC (NVL (ffv.start_date_active,
    SYSDATE
    AND TRUNC (NVL (ffv.end_date_active,
    SYSDATE
    AND ffv.flex_value = SUBSTR (asg.ass_attribute6, 1, 3))
    company,
    (SELECT DISTINCT ffv.description
    FROM fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name =
    'VS_GL_BUSINESS_UNIT_GLOBAL'
    AND ffv.enabled_flag = 'Y'
    AND TRUNC (SYSDATE)
    BETWEEN TRUNC (NVL (ffv.start_date_active,
    SYSDATE
    AND TRUNC (NVL (ffv.end_date_active,
    SYSDATE
    AND ffv.flex_value = SUBSTR (asg.ass_attribute6, 5, 4))
    business,
    (SELECT DISTINCT ffv.description
    FROM fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name =
    'VS_GL_DEPARTMENT_GLOBAL'
    AND ffv.enabled_flag = 'Y'
    AND TRUNC (SYSDATE)
    BETWEEN TRUNC (NVL (ffv.start_date_active,
    SYSDATE
    AND TRUNC (NVL (ffv.end_date_active,
    SYSDATE
    AND ffv.flex_value =
    SUBSTR (asg.ass_attribute6, 10, 4))
    department,
    loc.location_code location_name,
    DECODE (loc.style,
    'JP', (loc.address_line_1 || ' ' || address_line_2),
    'JP_GLB', (loc.address_line_1 || ' ' || address_line_2),
    ( loc.address_line_1
    || ' '
    || address_line_2
    || ' '
    || address_line_3
    ) location_address,
    DECODE (loc.style,
    'JP', address_line_3,
    'JP_GLB', address_line_3,
    town_or_city
    ) location_city,
    loc.region_2 location_state, loc.country location_country,
    loc.postal_code location_zip,
    (SELECT ph.phone_number
    FROM per_phones ph
    WHERE ph.party_id = person.party_id
    AND ph.phone_type = 'W1'
    AND TRUNC (SYSDATE) BETWEEN ph.date_from
    AND NVL (ph.date_to, TRUNC (SYSDATE))
    AND ph.date_from =
    (SELECT MAX (p.date_from)
    FROM per_phones p
    WHERE p.party_id = ph.party_id
    AND p.phone_type = 'W1'
    AND p.date_from <= TRUNC (SYSDATE))) work_number,
    (SELECT ph.phone_number
    FROM per_phones ph
    WHERE ph.party_id = person.party_id
    AND ph.phone_type = 'W2'
    AND TRUNC (SYSDATE) BETWEEN ph.date_from
    AND NVL (ph.date_to, TRUNC (SYSDATE))
    AND ph.date_from =
    (SELECT MAX (p.date_from)
    FROM per_phones p
    WHERE p.party_id = ph.party_id
    AND p.phone_type = 'W2'
    AND p.date_from <= TRUNC (SYSDATE))) voip_number,
    (SELECT ph.phone_number
    FROM per_phones ph
    WHERE ph.party_id = person.party_id
    AND ph.phone_type = 'M'
    AND TRUNC (SYSDATE) BETWEEN ph.date_from
    AND NVL (ph.date_to, TRUNC (SYSDATE))
    AND ph.date_from =
    (SELECT MAX (p.date_from)
    FROM per_phones p
    WHERE p.party_id = ph.party_id
    AND p.phone_type = 'M'
    AND p.date_from <= TRUNC (SYSDATE)))
    mobile_public_number,
    person.attribute5 acquisition_name,
    person.attribute6 acquisition_date, ad.email,
    ad.legacy_email, ad.primary_email_flag, ad.sam_account_name,
    ad.guid, ad.last_oracle_update_date, ad.last_ad_update_date,
    ad.opt_out_flag
    FROM per_all_people_f person,
    per_periods_of_service pps,
    per_all_assignments_f asg,
    per_person_types ppt,
    per_person_type_usages_f pptu,
    hr_locations loc,
    per_jobs job,
    pay_payrolls_f pay,
    xxvs_hr_sync_ad ad
    WHERE person.person_id = asg.person_id
    AND ad.person_id(+) = person.person_id
    AND TRUNC (SYSDATE) BETWEEN person.effective_start_date
    AND person.effective_end_date
    AND TRUNC (SYSDATE) BETWEEN asg.effective_start_date
    AND asg.effective_end_date
    AND asg.primary_flag = 'Y'
    AND ( ( asg.assignment_type = 'B'
    AND person.current_employee_flag IS NULL
    OR ( asg.assignment_type = 'E'
    AND person.current_employee_flag IS NOT NULL
    AND person.person_id = pps.person_id
    AND pps.date_start = (SELECT MAX (pps1.date_start)
    FROM per_periods_of_service pps1
    WHERE pps1.person_id = pps.person_id)
    AND pps.date_start >=
    NVL ((SELECT MAX (ppp1.date_start)
    FROM per_periods_of_placement ppp1
    WHERE ppp1.person_id = pps.person_id
    AND ppp1.date_start <= TRUNC (SYSDATE)),
    pps.date_start
    AND person.employee_number IS NOT NULL
    AND person.person_id = pptu.person_id
    AND TRUNC (SYSDATE) BETWEEN pptu.effective_start_date
    AND pptu.effective_end_date
    AND pptu.person_type_id = ppt.person_type_id
    AND ppt.active_flag = 'Y'
    AND ppt.system_person_type IN
    ('EMP', 'EX_EMP') -- only employees and ex-employees.
    AND ppt.business_group_id = person.business_group_id
    AND NOT EXISTS (
    SELECT 'x'
    FROM per_person_type_usages_f pptu1, per_person_types ppt1
    WHERE pptu1.person_id = person.person_id
    AND pptu1.effective_end_date =
    NVL (pps.actual_termination_date,
    TO_DATE ('31-DEC-4712', 'DD-MON-YYYY')
    AND pptu1.person_type_id = ppt1.person_type_id
    AND ppt1.business_group_id = person.business_group_id
    AND ppt1.user_person_type = 'Contract Labor')
    AND asg.location_id = loc.location_id(+)
    AND asg.job_id = job.job_id(+)
    AND asg.payroll_id = pay.payroll_id(+)
    AND TRUNC (SYSDATE) BETWEEN NVL (pay.effective_start_date(+),
    TRUNC (SYSDATE))
    AND NVL (pay.effective_end_date(+),
    TRUNC (SYSDATE)))
    UNION ALL
    (SELECT person.person_id, person.npw_number worker_number,
    ppp.actual_termination_date, ppp.date_start start_date,
    ppt.system_person_type,
    hr_person_type_usage_info.get_user_person_type
    (TRUNC (SYSDATE),
    person.person_id
    ) user_person_type,
    person.full_name, person.last_name, person.first_name,
    person.middle_names middle_initial, person.known_as preferred_name,
    person.mailstop mail_stop, person.office_number roomnumber,
    DECODE
    ('Y',
    (SELECT 'Y'
    FROM DUAL
    WHERE EXISTS (
    SELECT 'Y'
    FROM per_all_assignments_f sup
    WHERE sup.supervisor_id = person.person_id
    AND TRUNC (SYSDATE)
    BETWEEN sup.effective_start_date
    AND NVL (sup.effective_end_date,
    TRUNC (SYSDATE)
    OR EXISTS (
    SELECT 'Y'
    FROM per_all_assignments_f paaf, per_jobs mgr
    WHERE paaf.person_id = person.person_id
    AND TRUNC (SYSDATE)
    BETWEEN paaf.effective_start_date
    AND NVL (paaf.effective_end_date,
    TRUNC (SYSDATE)
    AND paaf.job_id = mgr.job_id
    AND UPPER (mgr.NAME) LIKE '%MANAGER%')), 'Y',
    'N'
    ) manager_flag,
    (SELECT supervisor.full_name
    FROM per_all_people_f supervisor
    WHERE supervisor.person_id = asg.supervisor_id
    AND TRUNC (SYSDATE) BETWEEN supervisor.effective_start_date
    AND supervisor.effective_end_date)
    supervisor,
    job.NAME job_name, pay.payroll_name payroll_name,
    asg.ass_attribute6 cc,
    (SELECT DISTINCT ffv.description
    FROM fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name = 'VS_GL_COMPANY_GLOBAL'
    AND ffv.enabled_flag = 'Y'
    AND TRUNC (SYSDATE)
    BETWEEN TRUNC (NVL (ffv.start_date_active,
    SYSDATE
    AND TRUNC (NVL (ffv.end_date_active,
    SYSDATE
    AND ffv.flex_value = SUBSTR (asg.ass_attribute6, 1, 3))
    company,
    (SELECT DISTINCT ffv.description
    FROM fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name =
    'VS_GL_BUSINESS_UNIT_GLOBAL'
    AND ffv.enabled_flag = 'Y'
    AND TRUNC (SYSDATE)
    BETWEEN TRUNC (NVL (ffv.start_date_active,
    SYSDATE
    AND TRUNC (NVL (ffv.end_date_active,
    SYSDATE
    AND ffv.flex_value = SUBSTR (asg.ass_attribute6, 5, 4))
    business,
    (SELECT DISTINCT ffv.description
    FROM fnd_flex_values_vl ffv,
    fnd_flex_value_sets ffvs
    WHERE ffv.flex_value_set_id = ffvs.flex_value_set_id
    AND ffvs.flex_value_set_name =
    'VS_GL_DEPARTMENT_GLOBAL'
    AND ffv.enabled_flag = 'Y'
    AND TRUNC (SYSDATE)
    BETWEEN TRUNC (NVL (ffv.start_date_active,
    SYSDATE
    AND TRUNC (NVL (ffv.end_date_active,
    SYSDATE
    AND ffv.flex_value =
    SUBSTR (asg.ass_attribute6, 10, 4))
    department,
    loc.location_code location_name,
    DECODE (loc.style,
    'JP', (loc.address_line_1 || ' ' || address_line_2),
    'JP_GLB', (loc.address_line_1 || ' ' || address_line_2),
    ( loc.address_line_1
    || ' '
    || address_line_2
    || ' '
    || address_line_3
    ) location_address,
    DECODE (loc.style,
    'JP', address_line_3,
    'JP_GLB', address_line_3,
    town_or_city
    ) location_city,
    loc.region_2 location_state, loc.country location_country,
    loc.postal_code location_zip,
    (SELECT ph.phone_number
    FROM per_phones ph
    WHERE ph.party_id = person.party_id
    AND ph.phone_type = 'W1'
    AND TRUNC (SYSDATE) BETWEEN ph.date_from
    AND NVL (ph.date_to, TRUNC (SYSDATE))
    AND ph.date_from =
    (SELECT MAX (p.date_from)
    FROM per_phones p
    WHERE p.party_id = ph.party_id
    AND p.phone_type = 'W1'
    AND p.date_from <= TRUNC (SYSDATE))) work_number,
    (SELECT ph.phone_number
    FROM per_phones ph
    WHERE ph.party_id = person.party_id
    AND ph.phone_type = 'W2'
    AND TRUNC (SYSDATE) BETWEEN ph.date_from
    AND NVL (ph.date_to, TRUNC (SYSDATE))
    AND ph.date_from =
    (SELECT MAX (p.date_from)
    FROM per_phones p
    WHERE p.party_id = ph.party_id
    AND p.phone_type = 'W2'
    AND p.date_from <= TRUNC (SYSDATE))) voip_number,
    (SELECT ph.phone_number
    FROM per_phones ph
    WHERE ph.party_id = person.party_id
    AND ph.phone_type = 'M'
    AND TRUNC (SYSDATE) BETWEEN ph.date_from
    AND NVL (ph.date_to, TRUNC (SYSDATE))
    AND ph.date_from =
    (SELECT MAX (p.date_from)
    FROM per_phones p
    WHERE p.party_id = ph.party_id
    AND p.phone_type = 'M'
    AND p.date_from <= TRUNC (SYSDATE)))
    mobile_public_number,
    person.attribute5 acquisition_name,
    person.attribute6 acquisition_date, ad.email,
    ad.legacy_email, ad.primary_email_flag, ad.sam_account_name,
    ad.guid, ad.last_oracle_update_date, ad.last_ad_update_date,
    ad.opt_out_flag
    FROM per_all_people_f person,
    per_periods_of_placement ppp,
    per_all_assignments_f asg,
    per_person_types ppt,
    per_person_type_usages_f pptu,
    hr_locations loc,
    per_jobs job,
    pay_payrolls_f pay,
    xxvs_hr_sync_ad ad
    WHERE person.person_id = asg.person_id
    AND ad.person_id(+) = person.person_id
    AND TRUNC (SYSDATE) BETWEEN person.effective_start_date
    AND person.effective_end_date
    AND asg.primary_flag = 'Y'
    AND asg.assignment_type = 'C'
    AND asg.effective_start_date =
    (SELECT MAX (asg1.effective_start_date)
    FROM per_all_assignments_f asg1
    WHERE asg1.person_id = asg.person_id
    AND asg1.assignment_type = 'C'
    AND asg1.primary_flag = 'Y')
    AND person.person_id = ppp.person_id
    AND ppp.date_start = (SELECT MAX (ppp1.date_start)
    FROM per_periods_of_placement ppp1
    WHERE ppp1.person_id = ppp.person_id)
    AND ppp.date_start >=
    NVL ((SELECT MAX (pps1.date_start)
    FROM per_periods_of_service pps1
    WHERE pps1.person_id = ppp.person_id
    AND pps1.date_start <= TRUNC (SYSDATE)),
    ppp.date_start
    AND person.npw_number IS NOT NULL
    AND person.person_id = pptu.person_id
    AND TRUNC (SYSDATE) BETWEEN pptu.effective_start_date
    AND pptu.effective_end_date
    AND pptu.person_type_id = ppt.person_type_id
    AND ppt.active_flag = 'Y'
    AND ppt.system_person_type IN ('CWK', 'EX_CWK') -- only CWK and ex-CWK.
    AND ppt.business_group_id = person.business_group_id
    AND asg.location_id = loc.location_id(+)
    AND asg.job_id = job.job_id(+)
    AND asg.payroll_id = pay.payroll_id(+)
    AND TRUNC (SYSDATE) BETWEEN NVL (pay.effective_start_date(+),
    TRUNC (SYSDATE))
    AND NVL (pay.effective_end_date(+),
    TRUNC (SYSDATE)))
    Update of per_all_people_f is firing the trigger while insert is not working...Please help.Is that bcz I have a outer join between per_all_people_f and xxvs_hr_sync_ad ?
    Following is my trigger:
    create or replace trigger XXVS_HR_SYNC_AD_T
    Instead of update or insert
    on xxvs_hr_ad_v
    for each row
    begin
    --raise_application_error('updates are prohibited')
    raise_application_error(-116,'error occured while inserting');
    insert into temp10 values ('New Person Id'||:new.person_id);
    insert into temp10 values ('Old Person Id'||:old.person_id);
    insert into temp10 values ('New email'||:new.email);
    insert into temp10 values ('Old email'||:old.email);
    insert into temp10 values('New account'||:new.sam_account_name);
    insert into temp10 values('Old account'||:old.sam_account_name);
    commit;
    raise_application_error(-117,'error occured while inserting');
    IF (:new.person_id=:old.person_id) and
    ((:new.email <>:old.email) or
    (:new.sam_account_name <>:old.sam_account_name)) THEN
    raise_application_error(-118,'error occured while inserting');
    update xxvs_hr_sync_ad
    set email =:new.email,
    sam_account_name=:new.sam_account_name
    where person_id =:old.person_id;
    if sql%rowcount = 0 then
    insert into XXVS_HR_SYNC_AD
    (PERSON_ID
    ,email
    ,sam_account_name)
    values
    (:new.person_id,:new.email,:new.sam_account_name);
    END IF;
    END IF;
    end;
    /

    Statements between /* */ are used for debugging purpose.
    Requirement is if there is an insert or update on per_all_people_f I need to perform insert or update in my staging table ie;xxvs_hr_sync_ad
    If there is an update on per_all_people_f trigger is working fine,for insert it is not working.
    create or replace trigger XXVS_HR_SYNC_AD_T
    Instead of update or insert
    on xxvs_hr_ad_v
    for each row
    begin
    --raise_application_error('updates are prohibited')
    raise_application_error(-116,'error occured while inserting');
    insert into temp10 values ('New Person Id'||:new.person_id);
    insert into temp10 values ('Old Person Id'||:old.person_id);
    insert into temp10 values ('New email'||:new.email);
    insert into temp10 values ('Old email'||:old.email);
    insert into temp10 values('New account'||:new.sam_account_name);
    insert into temp10 values('Old account'||:old.sam_account_name);
    commit;
    raise_application_error(-117,'error occured while inserting');
    IF (:new.person_id=:old.person_id) and.........
    Thanks

  • Unable to Trigger BPM Process from ECC --- Need Help

    Hi All,
    I have created a BPM and exposed the Process as a web service. Now when ECC team is trying to trigger the BPM through the provided Web Service, they are getting the below error.
    Issue is that the messages fails in ECC with the Status u201CSystem Erroru201D and this is due to reason below :
    "The RM Source endpoint requests this acknowledgement by including an
    <AckRequested> header block in the message. An RM Destination that
    receives a message that contains an <AckRequested> header block MUST
    respond with a message containing a <SequenceAcknowledgement> header
    block" (Web Services Reliable Messaging Protocol 1.0).
    Below is the structure of WSDL I gave to the ECC team.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/NewWSDLFile/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NewWSDLFile" targetNamespace="http://www.example.org/NewWSDLFile/">
    <wsdl:types>
    <xsd:schema targetNamespace="http://www.example.org/NewWSDLFile/">
    <xsd:element name="NewOperation">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="NewValue" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="NewOperationRequest">
    <wsdl:part element="tns:NewOperation" name="parameters"/>
    </wsdl:message>
    <wsdl:portType name="NewWSDLFile">
    <wsdl:operation name="NewOperation">
    <wsdl:input message="tns:NewOperationRequest"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="NewWSDLFileSOAP" type="tns:NewWSDLFile">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="NewOperation">
    <soap:operation soapAction="http://www.example.org/NewWSDLFile/NewOperation"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="NewWSDLFile">
    <wsdl:port binding="tns:NewWSDLFileSOAP" name="NewWSDLFileSOAP">
    <soap:address location="http://www.example.org/"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Please help.

    This below thread solved my problem.
    Start BPM Process Trigger - Read timed out
    SrinivaS

  • How to create a custom listview with a specific listview item style?

    Hi everybody, I am trying to implement a custom image gallery. It has a very distinct design though, It supports drag and drop reordering. Each item has a button on the left and a thumbnail. The drag and drop should happen only when we drag the thumbnail
    and drop on the + buttons. I tried a lot of ways but none of them seem to work properly. The design of the list view is as the image below. 
    the first item in the list view looks like this. a button and a thumbnail and the last item looks the same but instead of a thumbnail it has an icon. When the add button is clicked a open file dialog appears and we can insert a thumbnail when the add button
    which is on the left and right of the thumbnail is clicked. When the add button at the end is clicked it adds a thumbnail at the end. How do i implement something like this ? Any help is much appreciated. 
    This is the code that i have for the list view item container.
    <Style TargetType="ListViewItem" x:Key="ContainerStyle" >
    <Setter Property="KeyboardNavigation.IsTabStop" Value="False"/>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type ListViewItem}">
    <StackPanel Orientation="Horizontal">
    <Button x:Name="AddButton"
    Style="{StaticResource SeparatorButtonStyle}"
    Tag="{TemplateBinding Tag}" AllowDrop="True"
    HorizontalAlignment="Left"
    Click="AddBtn_Clicked" VerticalAlignment="Center" Margin="10,0,10,0"/>
    <Border x:Name="Bd" BorderBrush="Transparent" BorderThickness="5" Background="{TemplateBinding Background}" Margin="10,10,10,15" SnapsToDevicePixels="true">
    <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
    </Border>
    </StackPanel>
    <ControlTemplate.Triggers>
    <Trigger Property="IsSelected" Value="true">
    <Setter Property="Background" TargetName="Bd" Value="#098ae4" />
    </Trigger>
    <Trigger Property="IsEnabled" Value="false">
    <Setter Property="Background" TargetName="Bd" Value="#098ae4" />
    </Trigger>
    </ControlTemplate.Triggers>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    <Setter Property="IsSelected" Value="False" />
    </Style>
    The datatemplate looks like this..
    <DataTemplate DataType="{x:Type local:ThumbData}">
    <Border BorderThickness="3,3,3,3" x:Name="thumbnailborder" PreviewMouseMove="MouseOverImage" MouseLeave="thumbnailborder_MouseLeave_1" AllowDrop="True" Tag="{Binding ThumbNumber}" DataContext="{Binding}" Width="150" PreviewMouseDown="Page_PreviewMouseDown" PreviewStylusDown="Page_PreviewStylusDown">
    <StackPanel x:Name="border" Background="LightGray">
    <Border>
    <Grid>
    <Border x:Name="transpBk" Height="{Binding ActualHeight, ElementName=thumbImage}" Width="{Binding ActualWidth, ElementName=thumbImage}" VerticalAlignment="Center" HorizontalAlignment="Center" />
    <Image x:Name="thumbImage" Source="{Binding ImageSource}" VerticalAlignment="Center" HorizontalAlignment="Center" Stretch="Uniform" Width="150" Height="100" />
    </Grid>
    </Border>
    <Border Width="150" Height="20" x:Name="ThumbnailNumberPanel">
    <Border Background="{Binding PColor}" Opacity="0.8" Width="150" HorizontalAlignment="Center" Height="20">
    <TextBlock Text="{Binding ThumbNumber}" TextWrapping="NoWrap" TextTrimming="WordEllipsis" VerticalAlignment="Center"
    HorizontalAlignment="Center" FontFamily="Segoe UI" Foreground="White" FontSize="11" TextAlignment="Center"
    Width="150" Margin="0" PreviewMouseDown="Page_PreviewMouseDown" PreviewStylusDown="Page_PreviewStylusDown"/>
    </Border>
    </Border>
    </StackPanel>
    </Border>
    </DataTemplate>
    Thanks and Regards, JohnnyWalker.

    Hello Johnny,
    Can you describe what do you mean by say this:
    "we can insert a thumbnail and dropped on to the add button which is on the left and right of the thumbnail"
    And also could you describe in which part you have problem?
    If you don't know how to add a image to your listviewitem, please try check VisualTreeHelper Class, use it to the specific element you need and then add the element, like a image to it.
    See a code sample about it:http://rachel53461.wordpress.com/2011/10/09/navigating-wpfs-visual-tree/
    And check for details from MSDN:http://msdn.microsoft.com/en-us/library/system.windows.media.visualtreehelper(v=vs.110).aspx
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Hi Barry, Sorry that was a typo. What i meant to say was we can insert a new thumbnail when the + button which are on either side of the thumbnail is clicked.
    There are two problems that i am facing.
    How do i do drag and drop by dropping on to the + buttons? Drag and drop should not work when one thumbnail is dropped on to the other. Multiple thumbnails can be selected and dragged and dropped to reorder. The + buttons should not be dragged nor
    selected.
     Dragging the last "add thumbnail" should not be possible. It has to be there always at the end. And user should not be able to select, reorder or delete it.
    I have a class which holds the thumbnail and i am setting the observable collection as the item source of the list view. i do not have any problem in showing the thumbnails.
    Thanks and Regards, JohnnyWalker.

  • How to? change to different paragraph style only after column/frame break

    I'm all over paragraph styles and next styles option, all good, sweet. Love em but...
    But when I'm flowing in a long document with multiple text frames on different pages I would like the first paragraph in each of those text frames to be paragraphy style A, then using next styles let it follow on through B, C, etc, till then next time it see's a column/page/frame break character then go back to heading style A.
    I can't find a way to do this for love nor money.
    I've used objecy styles with paragraphy styles and next style turned on but this only seams to work on the first text box not the remaining text boxes that have flowed on text.
    HELP!!!!

    Eugene Tyson wrote:
    For Paragraph Style A go to the Keep Options in the style, and select to Start on Next Page or Next Column or Next Frame - whichever suits.
    Then it automagically does it
    If the content being flowed-in is correctly tagged with style names, then this would work.
    However, I believe the OP wants any paragraph that follows a flow break to be tagged with a specific style. If this is correct, either a script or a plug-in is probably necessary. in-tools.com has some terrific commercial composition tool products; perhaps one can do at least the first step - assigning a style to a paragraph that follows a break.
    In InDesign, assigning specific styles to the subsequent paragraphs based on the Next Style property, requires selecting the paragraphs to be assigned. I'm not sure if there's a plug-in or script that can use the break to trigger the Apply Next Style feature.
    Then, of course, is the question of how should this automation work if editing causes text to reflow across breaks. It's possible this could become the "yo-yo" effect that happens when more consecutive paragraphs than can fit in a text container are tagged with the keep options next and previous.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices
    Message was edited by: peter at knowhowpro

  • InDesign CS5.5 fonts not displaying correctly when applying styles

    Hi there,
    My problem is this - I've set up character and paragraph styles in a document. Yesterday everything in the document was working as expected. Today I open the file and some of the fonts are displaying incorrectly ie instead of a selection of type being bold (where a character style has been applyed) the whole paragraph is now bold and doesn't respond to having the character style removed.
    There are no error messages, the program loads, doesn't crash, did go slow but I resaved all the linked files and it moved along at it normal speed - it is quite a complicated document. Other files seem to behave, so I thought it might be a corrupt file. However when I tried to save to IDML  the process was interminable, so I cancelled it (tried this several times and with a simplified file - removed all the images).
    I've cleaned out the font caches.
    I  trashed the program preferences.
    Hope somebody out there has a idea.
    Thanks
    imac, OSX 6.8, 12 mgs ram, InDesign CS5.5 with the latest patch updated. Use Suitcasefusion for font management - have the latest version
    Message was edited by: ne18ell

    Most likely reasons for what you are seeing is the paragraph has the bold style assigned to the whole thing as a character style (maybe nested without a valid end trigger?), or the basic character attibutes of the paragraph style were changed to bold. Slightly less likely is that you managed to apply Bold to the whole paragraph as a local override (which owuld show up as a + sign next to the paragraph style name).

Maybe you are looking for