Programatically changing a portlets theme on first view only

I have a need to highlight a portlet when it is displayed on a page for a user
when the user first views the page. After this first page access i need to remove
the hightlight so it the portlet is the same as the exisiting ones.
I think i can do this by creating a highlight theme (like the Alert theme in the
samples app) and applying in the admin tool when the portlet is added to the page.
I can set the ThemeDefinitionId on the portlet instance using the PortletInstance
object but will this only be effective during this session ? I need somehow to
set the users personalization so that it knows the user has viewed the portlet
and then change the theme back to the default one for all other accesses.
Is it possible to do this or is there another solution that i can use. This will
have to be done on all portlets on all pages so performance is a big consideration.
TIA
Martin

Hello
The layout is defined in gd_layout.
I'm not sure if I understand.
The program does show the subtotals already. But I want a collapsed view like this.
http://www.filedump.net/dumped/200809021450331220359886.png

Similar Messages

  • How can i display a portlet in the Edit view only ?

    Dear All,
    I'm developing a portal in which the end user can change the content of the portal page (personalize) using Edit smart link and i ask How can i display a portlet in the Edit view only ? not shown in the production view ?

    Last time I heard with Oracle they said the only way is to look at the current URL. If it contais _mode=16 then we are in edit mode.
    This is a function I use:
    FUNCTION inEditMode return boolean is
    bEdit boolean := false;
    begin
    if PORTAL.wwpro_api_parameters.get_value('_mode', 'qaz') = '16' then
    bEdit := true;
    end if;
    return bEdit;
    end inEditMode;
    Kind regards
    Tomas Albinsson
    Stockholm, Sweden

  • Change background and font for first row only?

    Hi, 
    Have a tablix in SSRS (2008R2) and would like to change the background colour and font for the first row only, is this possible and if so how would I achieve this? 
    I have followed and example on setting alternate row background colour in the properties but can't see how to do this for just the first row. 
    =IIF(RowNumber(Nothing) MOD 2,”LightGrey”, “LightBlue”)
    Thanks 

    Hello,
    The Expression uses a Modulo function to calculate every second row. In your case just compare with equal 1 for the first row:
    =IIF(RowNumber(Nothing) = 1, ”LightGrey”, “LightBlue”)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I can't email a photo directly from iPhoto.  First, I only have two "themes" to choose from instead of 8, and when prompted to fill in the "to" and "from", the "from" box has "MobileMe" already in it, and I can't get rid of or change it. I have OSXLion

    I can't email a photo directly from iPhoto.  First, I only have two "themes" to choose from instead of 8, and when prompted to fill in the "to" and "from", the "from" box has "MobileMe" already in it, and I can't get rid of or change it. I have OSXLion

    I understand, as that was the place I would change it before 8.3 but now that option of Mail Days to Sync is not available?  Any idea why that would be?

  • Ok, so I have a PC and recently downloaded the newest version of iTunes. Somehow I canno't find my video Podcasts anywhere except for the recently played videos. Where can I first of all find them and secondly view them like in a list or gallery?

    Ok, so I have a PC and recently downloaded the newest version of iTunes. Somehow I canno't find my video Podcasts anywhere except for the recently played videos. Where can I first of all find them and secondly view them like in a list or gallery?

    replying to JS1111
    Now I only get one HKEYLOCALMACHINE\Software\
    QuicktimePlayerLib.QuicktimePlayerApp\CLSID.
    some folks have been having some success with pgfpdwife's technique in the following post:
    pgfpdwife: Re: Could not open key HKEYLOCALMACHINE\Software\Classic\Quicktime.Quicktime\
    note carefully that the technique involves a registry edit. be sure to make a backup of any keys you edit. if you're unfamiliar with your registry or registry editing, head to your XP help and support, do a search on registry, and read through the articles that come up.
    There are also some instructions on how to back up registry keys in the following document:
    Error 1406 or 1402 appears when you install iTunes or QuickTime for Windows

  • Reuse ALV - Only subtotals on first view...how

    Hello
    This is how my current report looks like.
    [http://www.filedump.net/dumped/200809021357031220356701.png]
    Want I want is the first column to be collapsed on first view. The help file had this to say:
    subtot
    'X' = Subtotals for control level changes
    o comp (INTERNAL USE ONLY)
    o expa
    Prequisite:
    IT_SORT-SUBTOT = 'X', that is, the sort criterion is also the
    subtotals criterion.
    If no complete breakdown but only a breakdown to totals level n that
    can be further expanded by the user should be displayed when the
    list is output for the first time, you must set the indicator for
    the totals level criterion of level n.
    I do not understand that part, and haven't found any threads that cover this. I'd de thankful if somebody could help me out.
    bye
    Here is my current code:
    *& Report ZDEMO_ALVGRID *
    *& Example of a simple ALV Grid Report *
    *& The basic requirement for this demo is to display a number of *
    *& fields from the EKKO table. *
    REPORT zdemo_alvgrid .
    TABLES: ekko.
    type-pools: slis. "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
    ebeln TYPE ekpo-ebeln,
    ebelp TYPE ekpo-ebelp,
    statu TYPE ekpo-statu,
    aedat TYPE ekpo-aedat,
    matnr TYPE ekpo-matnr,
    menge TYPE ekpo-menge,
    meins TYPE ekpo-meins,
    netpr TYPE ekpo-netpr,
    peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
    wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
    gd_tab_group type slis_t_sp_group_alv,
    gd_layout type slis_layout_alv,
    gd_repid like sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    DATA: T_SORT TYPE SLIS_T_SORTINFO_ALV.
    DATA: S_SORT LIKE LINE OF T_SORT.
    S_SORT-SPOS = '0'.
    S_SORT-FIELDNAME = 'EBELN'. "VENDOR field name.
    S_SORT-UP = 'X'.
    S_SORT-SUBTOT = 'X'.
    APPEND S_SORT TO T_SORT.
    *S_SORT-SPOS = '1'.
    *S_SORT-FIELDNAME = 'GL ACCOUNT FIELD NAME'.
    *S_SORT-UP = 'X'.
    *S_SORT-SUBTOT = 'X'.
    *APPEND S_SORT TO T_SORT.
    perform display_alv_report.
    *& Form BUILD_FIELDCATALOG
    "    * Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    "    * There are a number of ways to create a fieldcat.
    "    * For the purpose of this example i will build the fieldcatalog
    "manualy
    "    * by populating the internal table fields individually and then
    "    * appending the rows. This method can be the most time consuming
    "but can
    "    * also allow you more control of the final product."
    "    * Beware though, you need to ensure that all fields required are
    "    * populated. When using some of functionality available via ALV,
    "such as
    "    * total. You may need to provide more information than if you were
    "    * simply displaying the result
    "    * I.e. Field type may be required in-order for
    "    * the 'TOTAL' function to work.
    fieldcatalog-fieldname = 'EBELN'.
    fieldcatalog-seltext_m = 'Purchase Order'.
    fieldcatalog-col_pos = 0.
    fieldcatalog-outputlen = 10.
    fieldcatalog-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    "    * fieldcatalog-do_sum = 'X'.
    "    * fieldcatalog-no_zero = 'X'.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'EBELP'.
    fieldcatalog-seltext_m = 'PO Item'.
    fieldcatalog-col_pos = 1.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'STATU'.
    fieldcatalog-seltext_m = 'Status'.
    fieldcatalog-col_pos = 2.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'AEDAT'.
    fieldcatalog-seltext_m = 'Item change date'.
    fieldcatalog-col_pos = 3.
    *fieldcatalog-key = 'X'.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MATNR'.
    fieldcatalog-seltext_m = 'Material Number'.
    fieldcatalog-col_pos = 4.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MENGE'.
    fieldcatalog-seltext_m = 'PO quantity'.
    fieldcatalog-col_pos = 5.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'MEINS'.
    fieldcatalog-seltext_m = 'Order Unit'.
    fieldcatalog-col_pos = 6.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'NETPR'.
    fieldcatalog-seltext_m = 'Net Price'.
    fieldcatalog-col_pos = 7.
    fieldcatalog-outputlen = 15.
    fieldcatalog-do_sum = 'X'. "Display column total
    fieldcatalog-datatype = 'CURR'.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    fieldcatalog-fieldname = 'PEINH'.
    fieldcatalog-seltext_m = 'Price Unit'.
    fieldcatalog-col_pos = 8.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    endform. " BUILD_FIELDCATALOG
    *& Form BUILD_LAYOUT
    "    * Build layout for ALV grid report
    form build_layout.
    gd_layout-no_input = 'X'.
    gd_layout-colwidth_optimize = 'X'.
    gd_layout-totals_text = 'Totals'(201).
    gd_layout-totals_only = 'X'.
    *gd_layout-totals_only = 'X'.
    "    * gd_layout-f2code = 'DISP'. "Sets fcode for when double
    "    * "click(press f2)
    "    * gd_layout-zebra = 'X'.
    "    * gd_layout-group_change_edit = 'X'.
    "    * gd_layout-header_text = 'helllllo'.
    endform. " BUILD_LAYOUT
    *& Form DISPLAY_ALV_REPORT
    "    * Display report using ALV grid
    form display_alv_report.
    gd_repid = sy-repid.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    i_callback_program = gd_repid
    "    * i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    "    * i_callback_user_command = 'USER_COMMAND'
    "    * i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fieldcatalog[]
    it_sort = T_SORT
    "    * it_special_groups = gd_tabgroup
    "    * IT_EVENTS = GT_XEVENTS
    i_save = 'X'
    "    * is_variant = z_template
    tables
    t_outtab = it_ekko
    exceptions
    program_error = 1
    others = 2.
    if sy-subrc = 0.
    "    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    "    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endform. " DISPLAY_ALV_REPORT
    *& Form DATA_RETRIEVAL
    "    * Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
    from ekpo
    into table it_ekko.
    endform. " DATA_RETRIEVAL

    Hello
    The layout is defined in gd_layout.
    I'm not sure if I understand.
    The program does show the subtotals already. But I want a collapsed view like this.
    http://www.filedump.net/dumped/200809021450331220359886.png

  • Unable to change user interface theme

    hallo
    I want to change the color of the user interface in adobe muse from light gray to dark gray.
    on the adobe help page I've read that I must click "Edit" and then "Preferences" to open the "Preferences" window. there is then the first entry the possibility to change the color theme.
    with my muse, however, lacks this selection option in the window, there is the choice of language appears as the first.
    I use a windows pc 32bit and have Adobe Muse CC 2014

    Hallo Brad,
    thanks a lot for your answer ...
    i checkt my Muse version, see screenshot:
    After this, i uninstall my Muse and download Muse new time. take a look of this screenshot of creative cloud application:
    i can make what ever i want ... my creative cloud application load the version "CC" not "CC2014" !
    What can i do?
    Is it possible, my membership subsription ist education/student & teacher ?
    many greetings

  • Why is my Air application taking so long to show the first view on iOS devices?

    I built an Air application that runs on Android devices and iOS devices. The application uses Air 3.4 and Flex SDK 4.6. On my Android device, the application starts in 5 seconds. On my iPad device, the application starts in 90 seconds.
    My application has a splash screen, which is launched via the ViewNavigatorApplication property, splashScreenImage.
    The application was built in release mode and the SWF file is 1.384M. After I create the ad-hoc build, which includes the Air Captive Runtime, I see the following file sizes and startup times.
    iPad 2 - ipa size, 8.6M
    12 seconds of black screen. Then my splash screen appears. 80+ seconds of splash screen. Then my first view appears.
    Android Nexus 7 - apk size, 4.0M
    2.5 seconds of black screen. Then my splash screen appears. 2.5 seconds of splash screen. Then my first view appears.
    Here are more details about my app.
    It's a video conferencing app. So I have to set renderMode to "cpu". The app has 5 views and several popups. The popups use the SkinnablePopupContainer. The app uses dependency injection as provided by the Parsley framework to share two small data objects between the views. The app uses web service calls to manage the conference state.
    The problem occurs at startup. I haven't rendered a view with video logic, and the first view is a welcome page with a scrollable text area for terms and conditions, one button with an icon, one toggle button, and one hyperlink button.
    The app has about 400k of embedded images which are rendered using the MultiDPIBitmapSource.
    The app has 43.3K of icons for the various sizes as specified in the application xml file.
    Any help would be greatly appreciated.

    I figured out how to resolve the issue. I had to change the renderMode from "cpu" to "direct". That solved the problem, and the application performs perfectly. Even the video displays work ok. It's interesting that Adobe advises against using "gpu" or "direct" renderMode when displaying video. I need to figure out why and make sure the application is acceptable as is.
    I have more testing to conduct, but I'm very encouraged.

  • If I select multiple images to apply a change to all Aperture it does so only with the first selected. Why?

    If I select multiple images to apply a change to all openings it does so only with the first selected. Why?

    You probably have Primary Selection only on.
    Aperture identifies the images you’ve selected by displaying them with a white border. When you select a group of images, the actively selected image, called the primary selection, appears with a thick white border and the rest of the selected images appear with thin white borders.
    Primary Only button: Click this button to make changes to the primary image selection only.

  • Grab changes to Excel in a WD view

    Hi Guys,
    I am looking for a way to use the Office Plug - in ( in this case, Excel) to select changes and save them in a context node. How is the xstring attribute in the WD - context written to after the user has pressed "Save" in the Excel plug - in?  What method in IF_IOS_SPREADSHEET must be called to detect changes in the open XLS document in the Web Dynpro view? It is not entirely clear from the sample WD Component IOS_TEST_SPREADSHEET_MS in package SIOS how this is done
    Regards,
    Marc

    The attribute in the context had to be evaluated correctly.

  • Audio changes for Menu themes

    The menu themes in Premiere Elements 12 do not allow a change to the volume on the preset music scores in the Main Menu page; or allow for a change-out to another music choice on the presets for the "Scene Selection" page – how do I do those two things?
    The menu theme I selected for my video is SCREAMING loud and prompts the viewer to quickly turn down the volume, but then they have to crank it back up to hear the video.  I converted a VHS tape to a DVD video and then I added photos at the end for a wedding project.  This sound thing is driving me nuts every time I preview it and does the same thing on the DVD when I burn it.
    All of the tutorials I've checked, and the manual, show how to alter the pictures, but absolutely nothing about the audio needing to be corrected.  :-(

    TKpix
    Fine-Tuned....
    Premiere Elements 12/12.1
    Windows 7 64 bit
    Movie Menu: Entertainment/(A) Art-in-Motion
    Finding the theme's audio file to lower its volume
    Local Disk C
    Program Data
    Adobe
    Premiere Elements
    12.0
    Online
    DVD Templates
    All_Lang
    Entertainment
    (A) Art-in-Motion
    and in the (A) Art-in-Motion Folder is the music file that we seek....its name is Artistic Theme Menu_bg_audio.mp3.
    Right click the file, select Copy, and paste it to the computer desktop.
    Changing the Artistic Theme Menu_bg_audio.mp3 volume in Premiere Elements 12/12.1 (Go with the default project preset)
    Expert workspace
    Add Media
    Files and Folders
    Project Assets
    from Project Assets drag the music file to the Soundtrack
    Select/Highlight the music file in the Soundtrack, go to Adjust Tab/Adjustments Palette/Volume Panel expanded and use the
    volume slider there to adjust the music clip volume.
    Then Publish+Share/Computer/Audio with Presets = MP3 - High Quality.
    Replacing Original with volume adjusted one
    Go back to the (A) Art-in-Motion Folder and move the original Artistic Theme Menu_bg_audio.mp3 from there to a place for
    safe keeping, maybe Libraries/Music.
    Then move the volume lowered Artistic Theme Menu_bg_audio.mp3 from its save location that you designated at its export
    from Premiere Elements to the (A) Art-in-Motion Folder.
    Make sure that the name of the music file in the (A) Art-in-Motion Folder is exactly the same before and after all this.
    Note: Adobe has set the file name so that this music file applies to both the main menu and the scene menu.
    Any questions or need clarification, please do not hesitate to ask.
    Looking forward to your results.
    ATR

  • Programatically changing the id of a component

    Hi!
    I'm trying to solve the problem of duplicate id, without havind to manually give an id to all components.
    To accomplish this, i was trying to programatically change the id of all components that have the id null or that the id begun with _id with an PhaseListener.
    But i don't achive any results.
    Does anyone know how to do this?
    Thanks.

    Hi,
    Check View States.
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff1.html

  • How can I programatically change a reference to an item in a cluster?

    Hello!
    I'm trying to programatically change the text background color of the elements in a large cluster.
    I'm using LabVIEW 2010 SP1.  Attached is a test vi that I'm expermimenting with.  The test cluster has 6 elements and the final cluster will have 140.
    All elements will be the same data type.
    Based on the rate of change of the element value, I have to change the background color.
    Instead of creating a reference for each element in the cluster (as in my test vi), I'm looking for a way of changing the reference programatically.  Is there a way?
    I'm also considering building an array of references as a brute force alternative but I would like to see if there is something more elegant / efficient first!
    Am I making sense?
    thanks,
    mike
    Solved!
    Go to Solution.
    Attachments:
    cluster_color_change.vi ‏11 KB

    Mike,
    You can get references to the elements inside the cluster from the cluster reference using property node: All Objects[].  This is an array of references to the controls inside the cluster.
    Another way which might have advantages is to put a color box indicator behind each numeric.  Color the numeric backgrounds Transparent.  Then write the color to the color box.  I did a quick modification to your VI to show this possibility.  I did not adjust the size of the color box to match the numeric to emphasize what I did.
    Lynn
    Another note: If any of your users are color blind some of the combinations (black on red) might not be very visible.
    Attachments:
    cluster_color_change.2.vi ‏9 KB

  • MOVED: cannot change CPU Voltage??(first time here)

    This topic has been moved to Overclockers & Modding Corner.
    cannot change CPU Voltage??(first time here)

    In Cell Menu you will find something like CPU VID / Over VID. The first will be set to Startup (=you CPU default volts) and the 2nd will be disabled but you can set them manually to CPU VID = 1.4 and OverVID to 3.3% / 5% etc to let the CPU use higher volts when Oc'd.  Good luck !

  • How to change the Websheet theme?

    Hi,
    Can anybody tell me how can I change the websheet theme to match it with my current application theme?
    Thanks and Regards,
    MK

    Hi Shakeeb,
    so the basic layout (three column) is fixed as well, right?
    I would like to have the navigation tree in the first column and the contents in the middle, but this seems not to be possible, right?
    Thanks,
    Dietmar

Maybe you are looking for

  • I suddenly lost my complete mail and contacts

    I have been using mail for weeks on my ipad2 and now suddenly when I open Mail I have à blank screen.  I still have internet connection and also on my other laptop. I only receive mails on my laptop and not anymore on my ipad2. Manu thanks for any he

  • Solaris 10 JumpStart Error

    Strange issue with a Solaris 10 jumpstart using the SUNWcuser cluster (take a look at the end where is says I installed Solaris 9...): Rebooting with command: boot net install - w Boot device: /pci@1f,0/pci@1,1/network@1,1 File and args: install - w

  • SAP Installation Guide for ECC 6.0

    Hi, Anybody can help me, where i can get SAP ECC 6.0 installtion guide in service market place. Thanks in advance, it's urgent

  • Parsing "~" in the File class

    On the same (Linux) computer, sometimes, new java.io.File("~").isDirectory() returns 'true' and, sometimes, it doesn't. To be clearer, in some programs it returns true and in other programs it doesn't. This is driving me crazy! PS. I know I should be

  • Problem in stretching video using windows media player control

    Hello I am using windows media player 9 and set the stretchtofit property to true.But when I play a video of size 256X192 on a window media control player whose width and height is set to 640 and 384 respectively I find black areas on left and right