Setting Portlet Properties in Development

I am trying out the Portal 9.2 Trial, so am very new to this.
I have created a very simple JSP Portlet in Workshop and created a "Message" Preference for this Portlet with a default value of "Hello World". I have created an instance of this Portlet in a Portal and run it on the server, and in my JSP it displays the default "Hello World" message.
However how do I set another value for this Portlet Preference in my Portal within Workshop? So for example how can I overide the "Hello World" value with something else. I can see how do this through the Administration Console on my Staging site, but not sure how to do the same on the development side within Workshop.
Not sure I really understand the difference between setting up the .portal file in Workshop and the Staging Administration Application.

Curt,
Sure you can.
Just define separate user property sets and store the information based on
the page the user is on.
You can easily determine the page id using portal API (for example look at
the jsp which renders the page tabs in the framework directory).
Regards,
Michael Goldverg
"Curt" <[email protected]> wrote in message
news:[email protected]..
>
Hello,
New to Personalization so I apologize if this is obvious.
Is there a way to have the same portlet available on multiple
pages and allow a user to set different properties in a profile
based on the page the portlet is in? For example, if portlet X
is available on page A and page B and the edit tab allows the
user to set value Val1 in a property, is there a way to qualify
the Val1 property with a namespace so that it is associated with
the page it is on? Currently if I have some properties defined
in a profile and I set those profile values in an edit page
and get them in the top portlet, then those same profile values
will be associated with that portlet on all pages. That is with
using the um:getProperty tag. Is there some way through roles
to namespace profile values based on the page the portlet is on?
Thanks,
Curt

Similar Messages

  • Setting portlet properties on different pages

    Hello,
    New to Personalization so I apologize if this is obvious.
    Is there a way to have the same portlet available on multiple
    pages and allow a user to set different properties in a profile
    based on the page the portlet is in? For example, if portlet X
    is available on page A and page B and the edit tab allows the
    user to set value Val1 in a property, is there a way to qualify
    the Val1 property with a namespace so that it is associated with
    the page it is on? Currently if I have some properties defined
    in a profile and I set those profile values in an edit page
    and get them in the top portlet, then those same profile values
    will be associated with that portlet on all pages. That is with
    using the um:getProperty tag. Is there some way through roles
    to namespace profile values based on the page the portlet is on?
    Thanks,
    Curt

    Curt,
    Sure you can.
    Just define separate user property sets and store the information based on
    the page the user is on.
    You can easily determine the page id using portal API (for example look at
    the jsp which renders the page tabs in the framework directory).
    Regards,
    Michael Goldverg
    "Curt" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hello,
    New to Personalization so I apologize if this is obvious.
    Is there a way to have the same portlet available on multiple
    pages and allow a user to set different properties in a profile
    based on the page the portlet is in? For example, if portlet X
    is available on page A and page B and the edit tab allows the
    user to set value Val1 in a property, is there a way to qualify
    the Val1 property with a namespace so that it is associated with
    the page it is on? Currently if I have some properties defined
    in a profile and I set those profile values in an edit page
    and get them in the top portlet, then those same profile values
    will be associated with that portlet on all pages. That is with
    using the um:getProperty tag. Is there some way through roles
    to namespace profile values based on the page the portlet is on?
    Thanks,
    Curt

  • Setting portlet properties associated with portlet

    I want to set object properties of a portlet. i am using the following code
    portletResponse.setSettingValue(SettingType.Portlet,"Categories","My CVategories")
    the changed value does not get reflected in the portlet object properties.
    please help me out.
    Regards,
    Prashant

    Prashant,
    I believe there is a distinction between object properties and portal preferences. IPortletResponse.setSettingValue sets a preference, not an object property. In other words, if you set a preference on the portlet, then go into Administration and look at the portlet object, you will not see the preference that you set.
    I hope this clears things up a bit for you, though I understand it is not a solution to what you are trying to accomplish.
    Regards,
    Andrew Bays
    bdg | [email protected] | http://www.thebdgway.com
    Edited by andrew.bays at 03/28/2007 6:49 AM

  • Setting object properties associated with portlet.

    I want to set object properties of a portlet. i am using the following code
    portletResponse.setSettingValue(SettingType.Portlet,"Categories","My CVategories")
    the changed value does not get reflected in the portlet object properties.
    please help me out.
    Regards,
    Prashant

    Hi Prashant,
    The code you are using will set Portlet Preferences not Portlet Object Properties.
    Thanks,
    Bharat

  • Set the properties Editor of Add-in for Outlook 2007

    Hi All,
    I've developed an add-in for outlook 2007, the setup doesn't give any errors but when I open the Outlook the add-in is disabled.
    May be because is the only add-in with <any Author>.
    How can I set this properties in visual studio 2010?
    Thanks,
    Thomas

    Hello Thomas,
    First of all, check out the Trust center settings in Outlook. Are macro security settings applied to add-ins as well? Are only signed add-in allowed to run?
    Microsoft Office applications can disable add-ins that behave unexpectedly. If an application does not load your add-in, the application
    might have hard disabled or soft disabled your add-in.
    Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer
    if you stop the debugger while the Startup event
    handler in your add-in is executing.
    Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. For example, an application
    might soft disable an add-in if it throws an unhandled exception while the Startup event
    handler is executing.
    When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. If the problem that initially caused
    the application to soft disable the add-in has not been fixed, the application will soft disable the add-in again.
    Read more about that in the How to: Re-enable an Add-in That
    Has Been Disabled article.
    P.S. You need to sing the add-in files with a digital signature to see the author name in Outlook. 

  • How to set CORS properties for BLOB Storage using node?

    Hi - I just got started with Azure using a Node-based web site and mobile services.
    I am following various documentation in order to provide an API for users to upload images via a time-restricted SAS for the BLOB Storage.
    In order to upload my image, I need to set the CORS configuration for the BLOB Storage. Unfortunately this cannot be done via the management portal.
    I'm unclear as to how to accomplish this. I'm considering using the startup.js file in my mobile service to make a post request to the BLOB Storage REST API:
    http://msdn.microsoft.com/en-us/library/windowsazure/hh452235.aspx
    Are there appropriate methods in the Node SDK to make this easier, especially the signing part?
    What is the recommended way for setting CORS properties for the BLOB Storage via Node?
    Thanks for your help
    Stefan

    Unfortunately Node SDK does not support CORS functionality yet. Your option would be to write code which consumes the REST API for setting CORS. Not sure if it helps but there's a free tool out there written by my company which you can use to set CORS
    on your storage account. More information about this tool can be found here:
    http://blog.cynapta.com/2013/12/cynapta-azure-cors-helper-free-tool-to-manage-cors-rules-for-windows-azure-blob-storage/
    Hope this helps.

  • How do I set file properties (win XP) ?

    Does anyone know how to set/modify a windows file properties inside Labview ? For exemple : change the author, the comment... etc.
    Thank you !
    J.K.

    Hello,
    It is not possible with advanced file I/O LabVIEW VIs.
    There is a possible workaround by using low level Windows functions in a dll.
    Perhaps the easier would be to set your properties at the top of your file.
    You will find some explanations here :
    http://forums.ni.com/ni/board/message?board.id=170&message.id=85101&requireLogin=False
    regards
    Marc L.
    NIF

  • Labels pointing to pie slices with lines (or how 2 set chart properties in code behind)

    I want to be able to create lines outside of my pie chart with labels and have those lines drawn to connect to the pie chart.  I saw that this can be done in code behind in the following thread:
    MSDN thread on lines to pie slices
    But my problem is I never declared an instance of my chart when I am using my code behind.  My code that makes the reports visible is basically (but not completely) the following:
    ReportDataSet.Tables.Add(ReportDataTable)
    ReportViewer.Visible = True
    Dim ReportDataSource As ReportDataSource = New ReportDataSource("ReportDataSource", ReportDataSet.Tables(0))
    ReportViewer.LocalReport.ReportPath = ReportToDisplay.RDLCFileName
    ReportViewer.LocalReport.DataSources.Clear()
    ReportViewer.LocalReport.DataSources.Add(ReportDataSource)
    ReportDataSource.Name = ReportToDisplay.DataSetName
    ReportViewer.DataBind()
    ReportViewer.LocalReport.Refresh()
    ReportViewer.ShowReportBody = True
    ReportViewer.Width = RVWidth
    ReportViewer.Height = RVHeight
    So how do I set chart properties for my report given the above code?  As long as I can set my chart properties with the above code, I should be able to get this to work given the above thread and the link to the Label-Outside-of-Pie and Line-Color properties
    (or whatever) info on Microsoft's info page

    Hello,
    Based on your description, you want to design a
    pie chart with outside lables and pie line inside a .rdlc report. If so, you can add the Chart report item into the report after open a client report definition (.rdlc) file in graphical design mode. And then Set the
    PieLabelStyle property and PieLineColor property. Please refer to the following screen shot:
    The link your post above it about the
    Chart Web server control. As pre my undersntand, you cannot reference a Web server control inside .rdlc file.
    If you have any question about using Chart Web server control, you can post a question on
    Chart Controls for .NET Framework forum.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Correctly setting up a C++ development environment with clang++

    I'm going to reinstall Arch x64 soon, as the current installation was not done properly, and I have some doubts on how I should set up my development environment correctly.
    My compiler of choice is clang++ 3.4 SVN and my IDE of choice is QTCreator git.
    I currently get and install those manually, but I may use the AUR in my next Arch installation.
    Anyway, the issue is that QTCreator and other applications use /usr/bin/c++ by default, which is g++.
    To solve (horribly) the issue, I changed my /usr/bin/c++ to an executable bash script that fowards the arguments to clang++.
    This lead to issues such as warnings and errors not being catched by the IDE.
    My question is: what is the correct way to set up a clang++ development environment?
    How can I set clang++ as the default compiler for everything except AUR packages?
    If you use clang++ as your main compiler, how did you solve this issue?

    The canonical method of setting your (C++) compiler is to set the CXX environment variable.
    Searching Google for "qtcreator compiler" yields things like: https://qt-project.org/doc/qtcreator-2. … hains.html

  • How do I set individual properties for a column in report layout at runtime

    How do I set individual properties for a column in report layout at runtime? I need to change this based on a user's input. This is for v10g.
    I need to change either the "Read from File" attribute or the "File Format" attribute for one column based on the user's input. IS this possible?
    Thanks in advance!

    Hi,
    define 2 columns and use format triggers to show the one or the other column.
    Regards
    Rainer

  • Dreamweaver Help | Set text properties in the Property inspector

    This question was posted in response to the following article: http://helpx.adobe.com/dreamweaver/using/set-text-properties-property-inspector.html

    The note at the bottom of the first section (About formatting text (CSS versus HTML)) says -
    "You can combine CSS and HTML 3.2 formatting within the same page. Formatting is applied in a hierarchical manner: HTML 3.2 formatting overrides formatting applied by external CSS style sheets, and CSS embedded in a document overrides external CSS."
    Please be aware that embedded CSS will ONLY override external CSS if the external CSS link is closer to the  tag than the embedded CSS (i.e., it comes earlier in the flow of the document).  If the embedded CSS comes first in the flow of the document, it will be overridden by the external CSS instead.

  • Setting MCF Properties in ESB RS

    Hi,
    Earlier I found out how to set MCF properties in BPEL for the FTP adapter to FTP to a given host that is determined dynamically on runtime. Is the same possible for ESB? I found out how to set header variable properties like filename and directory using the setheader xpath function in the xslt. But what would be the function/xpath expression for the mcf properties?
    Thanks in advance.
    Regards,
    Martien

    Hi James,
    The security risk is only if you have the MCF properties in the wsdl populated with real-live data, right? I would not use the values set as default in the wsdl, they could have un-real, dummy values. What I want to do is to have a scheduler (in our case Appworx) to maintain the destination values. And call our processes with the correct endpoint values. That way SoaSuite need not know what the end points are and also I do not have to have an FTP end point for each destination.
    So if I have one FTP endpoint that creates a certain file in a certain format I could reuse that by simply let it be called for another host,port,username,password by the scheduler.
    Regards,
    Martien

  • OMB: unable to set SQLLoader properties in a Mapping (TRAILING_NULLCOLS...)

    Hello,
    I've created a Mapping from a Flatfile to a table.
    Since SQL-Loader is used I have to set several properties (TRALING_NULLCOLS, FILELOCATION, etc)
    However, every property I try to set fails by the same error:
    OMBALTER MAPPING 'MAP_DIM_UNIT_TEST' \
          SET PROPERTIES (TRAILING_NULLCOLS) VALUES ('true')
    --> OMB02902: Error setting property TRAILING_NULLCOLS of MAP_DIM_UNIT_TEST: MMM1034: Property TRAILING_NULLCOLS does not exist.Reading and setting these properties on Mappings created by the Design Center was no problem.
    What am I missing?
    When configuring a Mapping in the Design Center I have to create the "SQL Loader Data Files".
    Maybe that's got something to do with it. I have no idea how to do that with OMBPlus.
    Any clue?
    Regards
    uhuebner

    Hi
    You should set the GENERATION LANGUAGE property to SQLLOADER for the map. The property set is different depending on the type of the map, the UI does some tricks I think and sets up, but the API does not (it does at certain points like generation/validation).
    Here are some other snippets you will find useful.....
    1. To add a source data file to a mapping:
    OMBALTER MAPPING 'LOAD_LOCATIONS' ADD SOURCE_DATA_FILE 'LOCATIONS_APAC'
    2. To define the discard file info
    OMBALTER MAPPING 'LOAD_LOCATIONS' MODIFY SOURCE_DATA_FILE 'LOCATIONS_APAC' SET PROPERTIES (DISCARD_FILE_LOCATION,DISCARD_FILE_NAME) VALUES ('APAC_FILE_STG_LOC', 'apac_discard.txt')
    3. To define the data file info
    OMBALTER MAPPING 'LOAD_LOCATIONS' MODIFY SOURCE_DATA_FILE 'LOCATIONS_APAC' SET PROPERTIES (DATA_FILE_LOCATION, DATA_FILE_NAME) VALUES ('APAC_FILE_STG_LOC', 'apac_data.txt')
    4. To define the bad file info
    OMBALTER MAPPING 'LOAD_LOCATIONS' MODIFY SOURCE_DATA_FILE 'LOCATIONS_APAC' SET PROPERTIES (BAD_FILE_LOCATION,BAD_FILE_NAME) VALUES ('APAC_FILE_STG_LOC', 'apac_bad.txt')
    5 To query the files it is not obvious (or consistent with other commands)...
    OMBRETRIEVE MAPPING 'SR_AGS_LDR' GET SOURCE_DATA_FILE
    Notice the 'GET SOURCE_DATA_FILE' is singular even though it possibly return a list (in most other commands some form of the plural is used ie. GET TABLE OPERATORS).
    Cheers
    David

  • How to set image properties ?

    Dear All,
    I need your help to set image properties like (Title , Subject , Comments .... )
    thanks

    NVidia writes the DDS file format plugin, you need to talk to them about it.

  • Format plug-in: Setting file properties/metadata

    Hello,
    I am currently writing a plug-in to import a proprietary image format into Photoshop. The people who will use this plug-in believe it would be useful to have some file information displayed in the File Info dialog.
    The problem I'm running into is finding the functions necessary to set these properties in the File Info dialog, as currently they are all entirely blank.
    As a simple example, if I wanted to have the Document Title, Author, Description and Keywords read "Hello, world!" after I've read in an image, what functions would my plug-in have to call to set each of these text fields?
    Is there a struct that my plug-in needs to modify, or a group of get/set functions to change these properties?
    Any information would be extremely helpful, as documentation on the subject is very difficult to find in the SDK.
    Thanks a lot!
    Jack

    Thanks for your help, Toby.
    I've got an idea of how to configure the properties at this point. Simple properties work now, but I am still running into a bit of trouble setting complex options such as the Caption tag. I create a handle, populate it with the null-terminated string for the caption, and then I use setPropertyProc to link that handle to propCaption. The code would go something like this:
    >Handle h = sPSHandle->New( captionLength );
    >if( h )
    >{
    > Boolean locked;
    > Ptr p;
    >
    > sPSHandle->SetLock( h, true, &p, &locked );
    > // In here, use memcpy to copy a typical C string into p
    > sPSHandle->SetLock( h, false, &p, &locked );
    >
    >sPSProperty->setPropertyProc(kPhotoshopSignature,propCaption,0,0,h);
    >}
    Basically when I run my plugin and open a file, the Description field is still blank, as it was before I tried to populate the fields.
    Is there something wrong with my approach? Incidentally, I also encounter the same problem when I use the same property and handle suite methods that you do (FormatRecord->PropertyProcs and FormatRecord->HandleProcs instead of sPSProperty and sPSHandle respectively). From looking at other available code online, I'm assuming that there isn't a difference in behaviour. Please correct me if I'm wrong! :)

Maybe you are looking for