Custom Property update in coding - throws AccessDeniedException
Hi,
I am using the following code to update the newly created custom property in KM
RID rid1 = RID.getRID("/documents/MWRD/internet/Departments/Engineering/Engineering_Reports/Reports/"+res.getDisplayName());
IResource fileResource = ResourceFactory.getInstance().getResource(rid1, context);
IPropertyName propName = new PropertyName("http://mwrd/xmlns/propertiesnamespace","DepartmentName");
IProperty property = fileResource.getProperty(propName);
if(property == null){
property = new Property(propName,"Engineeringreports");
fileResource.setProperty(property);
During the execution of the line set property following error is displayed "AccessDeniedExceptionPermission denied: uri=/documents/Engineering/Engineering_Reports/Reports/10-2008-Excessive_Infiltration_Vol_36.pdf, permission=leaf_write_properties, user=anonymous
Please help me to solve the issue
Yes The code was modified to handle version issues
IVersionController vc = (IVersionController) folderResource.as(IVersionController.class);
IResourceList rc = folderResource.getChildren();
if (vc != null){vc.disable(true);};
fileResource.setProperty(mutableProperty);
if (vc != null){vc.enable(rc);};
Similar Messages
-
Hi All,
We have a requirement to capture additional metadata for each Term (Ex: Requested for, Requested date, Requested by). these properties are not available in Sharepoint 2010 OOTB but can be acheived using Term.SetCustomProperty(). where as in SharePoint 2013,we
have option to add/update/delete custom Properties in Term Store management window(Custom propertiesTabs) , which is OOTB.
Just want to understand is there any way to get that Custom Property Tab interface in 2010. Or any other way to manage(Add/Update/delete) custom properties from the browser itself.
Is there any codeplex/other solution which will allow us to manage properties from browser with out doing the code.
Any suggestions on this would be helpful
Thanks in advance
ragava_28Hi,
According to your description, you want to manage term custom property in SharePoint 2010.
As you know, there is no OOTB method to meet your requirement.
If you want to do it without coding, you can take a look at this tool about managing term store:
http://www.metavistech.com/product/term-store-manager
As this is a third party tool, we are not sure whether it has risks, please use with caution.
Best regards
Patrick Liang
TechNet Community Support -
People Search and a Custom Property
I am trying to surface a custom property in the people search query results. For example,
http://<servername:port>/_api/search/query?querytext='*'&sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'
I get XML results but when I look at the properties returned for each of the people result, there are no custom properties from user profile properties. How can I modify the custom properties so that they start showing in the XML results for people search?
Rank, DocId, AboutMe, AccountName, BaseOfficeLocation, Department etc.
Please let me know.
Thanks!
Update: I am using SearchExecutor class and its ExecuteQuery API.Hi,
Thank you for your sharing! It will be beneficial to others in this forum who meet the same issue in the future.
Best Regards,
Wendy
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
I wrote a macro in a Word 2010 template with a custom property called HeaderFooter (a Yes/No value). When the property is changed to No, the header and footer are hidden, otherwise, the header and footer are displayed.
I added the template to a SharePoint 2010 Document library, with a content type DocInformation and a column name HeaderFooterOffOn that I want to map to the custom property HeaderFooter in the Word Document.
The macro isn't working in SharePoint, though, because when the user clicks on the HeaderFooterOffOn in the DIP of the Word Document, the Word Custom Property (HeaderFooter) isn't changing with it.
How do I get these two synced up, so that when the SharePoint column is changed, the Word Document's custom property simultaneously updates with it?Hi kevinkevinc,
There is no direct way to run macro in SharePoint
As a workaround, I suggest you use SharePoint Event Receiver to run some custom code when column changed.
Here is a similiar thread for your reference:
http://social.msdn.microsoft.com/Forums/office/en-US/249249e2-3263-4001-86fa-bda342d95f35/run-word-macro-on-newly-uploaded-sharepoint-word-documents?forum=sharepointdevelopmentlegacy
More information:
SharePoint Event Receiver:
http://msdn.microsoft.com/en-us/library/ee231563.aspx
http://msdn.microsoft.com/en-us/library/ff398052.aspx
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Zhengyu Guo
TechNet Community Support -
Read navigation url OR Custom property for a term in Taxonomy using Javascript
Hi All,
we have followed the below steps to retrieve the managed metadata terms.
http://sympmarc.com/2013/10/11/spservices-stories-18-retrieve-managed-metadata-using-javascript-and-spservices/
and we have achieved and constructed the same through JavaScript.
Below is the screen shot.
Issue:-
we are unable to retrieve the term navigation url. Can you please help us to retrieve navigation url OR Custom property.
Thanks in Advance.Hi,
According to your description, you want to manage term custom property in SharePoint 2010.
As you know, there is no OOTB method to meet your requirement.
If you want to do it without coding, you can take a look at this tool about managing term store:
http://www.metavistech.com/product/term-store-manager
As this is a third party tool, we are not sure whether it has risks, please use with caution.
Best regards
Patrick Liang
TechNet Community Support -
Writing a Custom Property Renderer
Hello all,
I am new to KMC development. I want to know how to go about writing a custom property renderer. Detail step by step instructions as to where to start and what are the configurations, etc. would be a great help for me.
Thanks in advance.
Vicky R.Hello Vicky,
Step by Step guide to creating Property renderer is:
1. Program an implementation of AbstractPropertyRenderer.
2. Implement a RFServerWrapper service to register your property renderer with CrtClassLoaderRegistry.
CrtClassLoaderRegistry.addClassLoader(this.getClass().getClassLoader());
3. Technical mapping to your coding in the Property Metadata service.
4.Restart your server for the changes to take effect.
Check this link for more infos:
https://forums.sdn.sap.com/thread.jspa?threadID=41619
Also check the implementations of RFServerWrapper service in examples at this link:
http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c739e546-0701-0010-53a9-a370e39a5a20
Greetings,
Praveen Gudapati -
Allow user to apply custom property or Workflow to DAM folder
Hi,
Is it possible to allow an author user the ability to set a custom property (or workflow) to a folder in the DAM?
i.e. can I create a custom property "Approved" against a DAM folder and expose it via the UI (or update it via a workflow)
I want to apply to an entire folder (not single or multiple assets)
Thanks!yes it is possible to add custom property to dam and workflow. To add custom property to dam asset you have to override "/libs/dam/components/asseteditor" form page in your application.
also you can refer - http://dev.day.com/docs/en/cq/current/dam/customizing_and_extendingcq5dam.html
To add custom property in workflow you have to create custom workflow component using sling resource super type as "cq/workflow/components/model/process" and add custom property in dialog. you can take example of existing workflow under /libs/wcm/workflow area.
also you can refer - http://dev.day.com/docs/en/cq/current/workflows/wf-extending.html -
Custom Property Renderer - class not found error?
Hi,
I am trying to create a custom property renderer in KM - just a basic Hello World for now, as in some of the other threads on SDN.
When I use the renderer for a property in my layout set, nothing is displayed.
My code is as follows:
public class SBPCPropertyRenderer extends AbstractPropertyRenderer
public Component renderProperty(IProperty property, IResource res, int maxLength)
throws WcmException
TextView t = new TextView();
t.setText("Hello World");
return t;// renders a property
public interface IRFServiceWrapper extends IService
public static final String KEY = "com.company.project.km.SBPCPropertyRenderer";
public class RFServiceWrapper implements IRFServiceWrapper
private IServiceContext mm_serviceContext;
* Generic init method of the service. Will be called by the portal runtime.
* @param serviceContext
public void init(IServiceContext serviceContext)
mm_serviceContext = serviceContext;
CrtClassLoaderRegistry.addClassLoader(this.getKey(), this.getClass().getClassLoader());
* This method is called after all services in the portal runtime have already been initialized.
public void afterInit()
* configure the service : @param configuration
public void configure(IServiceConfiguration configuration)
* This method is called by the portal runtime when the service is destroyed.
public void destroy()
* This method is called by the portal runtime when the service is released.
public void release()
* @return the context of the service, which was previously set by the portal runtime
public IServiceContext getContext()
return mm_serviceContext;
* This method should return a string that is unique to this service amongst all
* other services deployed in the portal runtime.
* @return a unique key of the service
public String getKey()
return KEY;
However, when I try to render using this bespoke renderer, I get the following error in the Default Trace:
#1.5#000BCDEE0DD8005600000082000006C00004497AFED42BF7
#1206692517085
#com.sapportals.wcm.rendering.property.PropertyRendererUtil
#sap.com/irj
#com.sapportals.wcm.rendering.property.PropertyRendererUtil
#username
#6737
#ITNSAPNT06_J2E_4316950
#username
#9cf6bb00fc9e11dcbc54000bcdee0dd8
#SAPEngine_Application_Thread[impl:3]_34
#0
#0
#Error
#Plain
#Either the class com.company.project.km.SBPCPropertyRenderer could not be found oder the following error occurs while rendering: java.lang.ClassNotFoundException: com.company.project.km.SBPCPropertyRenderer
at com.sapportals.wcm.crt.CrtClassLoaderRegistry.findClass(CrtClassLoaderRegistry.java:176)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at com.sapportals.wcm.rendering.property.PropertyRendererUtil.renderProperty(PropertyRendererUtil.java:122)
at
My PortalApp.xml is as follows:
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
</application-config>
<components/>
<services>
<service name="default">
<service-config>
<property name="className" value="com.company.project.km.SBPCPropertyRenderer"/>
<property name="startup" value="true"/>
</service-config>
</service>
<service name="RFServiceWrapper">
<service-config>
<property name="className" value="com.company.project.km.RFServiceWrapper"/>
<property name="startup" value="true"/>
</service-config>
</service>
</services>
</application>
Can anyone spot what I am doing wrong?
Thanks,
TomHi Tom,
I've implemented similar behaviour but with the state of resource. The code is following:
private static final class URLs {
private static final String BEFORE_APPROVAL = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/s_s_ledr.gif";
private static final String APPROVAL = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/s_s_ledy.gif";
private static final String PUBLISHED = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/s_s_ledg.gif";
private static final String ARCHIVED = "/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/etc/public/mimes/images/s_s_ledi.gif";
public Component renderProperty(IProperty property, IResource res, int maxLength){
Image image = null;
try {
IRepositoryServiceFactory factory = ResourceFactory.getInstance().getServiceFactory();
IURLGeneratorService ug = (IURLGeneratorService)factory.getService(IServiceTypesConst.URLGENERATOR_SERVICE);
IStatemanagementManager stateManager = (IStatemanagementManager) factory.getRepositoryService(res,IWcmConst.STATEMANAGEMENT_SERVICE);
IStatemanagementUtilsResource sResource = stateManager.getStatemangementResource(res).getUtils();
Locale locale = res.getContext().getLocale();
IState state = sResource.readState();
if (state.getID().equalsIgnoreCase(States.BEFORE_APPROVAL))
image = new Image(ug.createAbsoluteUri(new UriReference(URLs.BEFORE_APPROVAL,null,null)).getPath(), state.getDescription(locale));
if (state.getID().equalsIgnoreCase(States.ARCHIVED))
image = new Image(ug.createAbsoluteUri(new UriReference(URLs.ARCHIVED,null,null)).getPath(), state.getDescription(locale));
if (state.getID().equalsIgnoreCase(States.APPROVAL))
image = new Image(ug.createAbsoluteUri(new UriReference(URLs.APPROVAL,null,null)).getPath(), state.getDescription(locale));
if (state.getID().equalsIgnoreCase(States.PUBLISHED))
image = new Image(ug.createAbsoluteUri(new UriReference(URLs.PUBLISHED,null,null)).getPath(), state.getDescription(locale));
return image;
} catch (Exception e) {
StatePropertyRenderer.log.fatalT(e.getMessage());
return image;
But you can simply take one of the properties of your resource with the method res.getProperty(<IPropertyName>) instead of state and check the value of this IProperty. I took images from KM but you can also add necessary images to your project and use them.
Regards
Pavel -
Is it possible to show a custom property in a notification email?
Hi all
I would like to know if it is possible to display a custom property in a notification email? As I can understand from Darin Krasles answer here: https://forums.sdn.sap.com/click.jspa?searchID=3062750&messageID=1284727 and his article here: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/90626697-0901-0010-2ca7-86e2a50ce70d there does not seem to be an (easy) answer to this question. But perhaps Detlev, Patricio, Robert or you could help me with this question?
Where can one by the way find the java/class file relating to the email notifications? Is it com.sapportals.wcm.repository.service.subscription.wcm.SubscriptionEventMapStandard?
Kind regards,
Martin SøgaardHi Martin,
would you have some updates on this question. i am also facing one similar requirement.
1. users wants a mail notification based on expiry date(custom property) before expiring.
2. In the mail notification, they need some custom properties like document number and other information.
could you please help me in some directions on this? any standard or way to custom part?
thanks,
SK -
How to get my custom controller updated with the global custom controller?
Hi all,
I'm new to CRM Web UI and need some advice from the expert. Currently I'm working on component ICCMP_BT_DATES and noticed something weird with this component. When this component is first launch it display the dates of a service ticket correctly. However when I navigate to another screen, save a new ticket and back, the dates are not reflected. When I went in and debug the component, I noticed that the context is still tied to the previous ticket. I think the custom controller is not updated with the latest from the global custom controller.
My question is how do I get my custom controller updated with the latest.
Regards,
RickyYou have to bind your custom controllers context node to the event NEW_FOCUS of the collection wrapper on the global custom controller.
Best place to do this might be the CONNECT_NODES of the context of your custom controller.
Get the global CuCo with GET_CUSTOM_CONTROLLER() and then the appropriate context node. Now:
SET HANDLER yourMethod for lr_global_cuco->typed_context->thecontextnode->collection_wrapper activation iv_activate.
Of course you have to implement a method similar to ON_NEW_FOCUS as it is on many other nodes.
cheers Carsten -
How can I get the value of a custom property from a resource object?
I am trying to get the value(s) of a custom property, called "status" within a method. The method has an object of type IResource available to it.
I have tried the following:
PropertyName propName = new PropertyName("","status");
value = res.getProperty(propName).toString();
However, I am getting a NullPointerException when I try to create the PropertyName instance.
Is there a better way to get the value of a specific property from a resource object?
Thanks,
TomThanks Praveen.
I was missing the default namespace of "http://sapportals.com/xmlns/cm" - I thought I could just pass an empty string for the namespace, but it looks like I must always specifiy, even if it is default.
Tom -
How do I map custom property from portal api ptsearchresponse?
I want to map the search results to my datatable.
I can execute the search fine. But how do I map the property value? My property id is 101.
In other words which ptSearchResponse method do I use?
IPTSession ptSession;
IPTSearchRequest ptSearchRequest;
IPTSearchResponse ptSearchResponse;
IPTSearchQuery ptSearchQuery;
string serverConfigDir = ConfigPathResolver.GetOpenConfigPath();
IOKContext configContext = OKConfigFactory.createInstance(serverConfigDir, "portal");
PortalObjectsFactory.Init(configContext);
ptSession = PortalObjectsFactory.CreateSession();
ptSession.Connect(1, "", null);
// Create a SearchRequest object
ptSearchRequest = ptSession.GetSearchRequest();
// Set search settings (constraints)
// Set maximum results desired (100)
ptSearchRequest.SetSettings(
PT_SEARCH_SETTING.PT_SEARCHSETTING_MAXRESULTS, 100);
// Set the folder in which to search (array to support multiple folders)
ptSearchRequest.SetSettings(
PT_SEARCH_SETTING.PT_SEARCHSETTING_DDFOLDERS,
new int[] { Convert.ToInt32(ConfigurationManager.AppSettings["DocumentFolderId"]) });
// Include subfolders of the folder
ptSearchRequest.SetSettings(
PT_SEARCH_SETTING.PT_SEARCHSETTING_INCLUDE_SUBFOLDERS, true);
// Restrict search to just portal documents
// (not ALI Collaboration or ALI Publisher)
ptSearchRequest.SetSettings(
PT_SEARCH_SETTING.PT_SEARCHSETTING_APPS, PT_SEARCH_APPS.PT_SEARCH_APPS_PORTAL);
// get documents only
ptSearchRequest.SetSettings(
PT_SEARCH_SETTING.PT_SEARCHSETTING_OBJTYPES, new int[] { PT_CLASSIDS.PT_CATALOGCARD_ID });
// Request the intrinsic PT_PROPERTY_PROVIDERCLSID and custom property 101
ptSearchRequest.SetSettings(
PT_SEARCH_SETTING.PT_SEARCHSETTING_RET_PROPS,
new int[] { PT_INTRINSICS.PT_PROPERTY_PROVIDERCLSID, 101 });
//Use IPTFilter to create search filter with clause with two statements
IPTFilter ptFilter;
IPTPropertyFilterClauses ptFilterClause;
IPTPropertyFilterStatement ptFilterStmt1;
IPTPropertyFilterStatement ptFilterStmt2;
// Create the filter itself
ptFilter = PortalObjectsFactory.CreateSearchFilter();
// Create the filter clause
ptFilterClause = (IPTPropertyFilterClauses)ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_CLAUSES);
ptFilterClause.SetOperator(PT_BOOLOPS.PT_BOOLOP_OR);
// Attach it to the filter itself
ptFilter.SetPropertyFilter(ptFilterClause);
// Put two statements into the clause
ptFilterStmt1 = (IPTPropertyFilterStatement)
ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
ptFilterStmt1.SetOperand(101);
ptFilterStmt1.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
ptFilterStmt1.SetValue(tbSearch.Text.Trim());
ptFilterClause.AddItem(ptFilterStmt1, ptFilterClause.GetCount());
ptFilterStmt2 = (IPTPropertyFilterStatement)
ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
ptFilterStmt2.SetOperand(1);
ptFilterStmt2.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
ptFilterStmt2.SetValue(tbSearch.Text.Trim());
ptFilterClause.AddItem(ptFilterStmt2, ptFilterClause.GetCount());
// Make the filter into an actual search query
ptSearchQuery = ptSearchRequest.CreateAdvancedQuery(ptFilter);
// Run the search and return results
ptSearchResponse = ptSearchRequest.Search(ptSearchQuery);
// How many things matched the search?
int totalMatches = ptSearchResponse.GetTotalMatches();
// How many items were returned? (Not necessarily all)
int returnedMatches = ptSearchResponse.GetResultsReturned();
// create DataTable and map results to
// datatable fields
DataTable dtSearchResults = new DataTable("Documents");
dtSearchResults.Columns.Add("Name");
dtSearchResults.Columns.Add("Excerpt");
dtSearchResults.Columns.Add("DocSubject");
dtSearchResults.Columns.Add("DocTopic");
dtSearchResults.Columns.Add("DocType");
dtSearchResults.Columns.Add("DocKeywords");
dtSearchResults.Columns.Add("Url");
dtSearchResults.Columns.Add("ImageURL");
DataRow dr;
// Print the name of each result
for (int i = 0; i < returnedMatches; i++)
dr = dtSearchResults.NewRow();
String strName = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTNAME);
String strText = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTSUMMARY);
String strURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_DOCUMENTURL);
String strImageURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTIMAGEUUID);
dr["Name"] = strName;
dr["Excerpt"] = strText;
dr["Url"] = strURL;
dr["ImageURL"] = "pt://images/plumtree/portal/public/img/sml" + strImageURL + ".gif";
dtSearchResults.Rows.Add(dr);
Edited by [email protected] at 04/11/2008 7:26 PM
Edited by [email protected] at 04/11/2008 7:27 PMProblem solved. I should use JsonObject instead of JSONObject :D
-
How can I add a custom property to an object, like a paragraph?
Hi,
We have a merge process that combine multiple document into one and I need to store the filename of the imported file at the beginning of each merge point. Each document that we merge contains a Title paragraph and I was wrongly assuming that I could set the label property of this paragraph with my value for future references, but only to find out that the paragraph object doesn't have a label property.
I also tried setting a custom property by doing this
paragraph.properties["myCustomProperty"] = "value";
It doesn't crash, but if I try reading the value it is always undefined.
I'm looking for alternative, or on how would you approach this, can you please advice?
Your help is much appreciated.
ThanksPeter Kahrel wrote:
You could label the paragraph's parent story. Is that any good?
Peter.
Well I tought about it, but then I have to find a way to keep track of which paragraph this value belongs to and so far I havent found a way to uniquely identify a paragraph and I can't assume that the merged document won't be edited so I can't use the index.
Peter Kahrel wrote:
Otherwise use a paragraph property that you never use and that doesn't affect composition, such as .bulletsTextAfter
P.
It may be an alternative, but that may cause problem in the furture if they ever decide to use or change that properties. Plus, I'm not sure if can put anything I want in there, but that would be worth the try. -
How to reference a custom property in a vo transient attribute expr + bug
Hi all
I have created a transient attribute with an expression that evaluate null content to replace it by a appropriate text.
<ViewAttribute
Name="DescriptionUI"
IsUpdateable="false"
IsSelected="false"
IsPersistent="false"
PrecisionRule="true"
Type="java.lang.String"
ColumnType="VARCHAR2"
AliasName="VIEW_ATTR"
SQLType="VARCHAR">
<TransientExpression><![CDATA[((Description == null) ? 'Pas de description' : Description)]]></TransientExpression>
</ViewAttribute>I have defined a custom property for that attribute that contains the message text. I was surprised to see that the custom property was not associate with the attribute in the source file. Don't understand where the association is done
<Properties>
<CustomProperties>
<Property
Name="flex.tree.noLabel"
ResId="flex.noDescription"/>
</CustomProperties>
</Properties>I had some difficulties to use the custom property editor. When creating a new related one by using an existing resource the property column value is not changed and the content 'Property' is generated. Because no relationships exists between attribute and the property, the entry is lost in the table referring custom property list for the attribute when your come back into the view object or if you save an another entry in an another attribute.
So my first question ? Is the attribute editing part the right part to define custom property pairs if they are not related to attributes ? is it a bug ?
My second question is : is it possible to evaluate the bundle in the expression (replacing the literal 'Pas de description' by an expression) ? What is the expression to use ? Where it is described to do such things in the help or in the documentation ?
Thank youThis is wrong
((Label == null) ? {FlexParameterModelBundle['flex.tree.noLabel']} : Label)
What is the correct syntax to refer to the project model standard bundle in the groovy expression ?
Thank for the help ! -
How to create Image as Custom Property Type used in Configurable Web Part?
I wanted to create custom configurable web part property for Image.
Example - the screenshot of Image property used in Image web part is shown below:
My goal is to create as many images as possible in custom configurable web part.
I tried to write the code:
[WebBrowsable(true),
WebDisplayName("Example Photo"),
WebDescription("Example Photo of the user"),
Category("Custom User Profile"),
Personalizable(PersonalizationScope.Shared)]
public Image ExampleUserPhoto { get; set; }
However, the result does not display Image configurable web part property.
I wonder why the data type Image does not cause the custom web part to have Image configurable web part property.
Other data types such as Boolean, Enum, Integer, String and DateTime can be used.
How can I create Image as Custom Property Type used in Configurable Web Part?I have examined that context node __00 has been enhanced,and has a class name z___00. But when I created a new attirubute by right click " Attributes" with wizard under context node __00.There is still a error message "view is not enhaced or copied with wizard".
But when I created a method "getvaliation " in the class of context node zcl__00, the attribute 'valiation' automatically created(at the same time the method "getvaliation' automatically created for the attribute 'valiation') and I need not to create attibute 'validation' by wizard . It seemed as if the problem is resloved. But when I make test for it in web ui .There is a runtime erro message.
Do I need to make some configurations in the business object layer for the checkbox? but the checkbox is only used as a flag to decide whether a backgoud job is needed to be executed.
Edited by: samhuman on Jun 22, 2010 10:31 AM
Maybe you are looking for
-
Error while trying to copy template from another application
Hi, I am getting this error while trying to copy template from another application: report error: ORA-06502: PL/SQL: numeric or value error: character string buffer too small This report is located here: Home-Application Builder-Application 150-Share
-
Ipod not recognised by itunes after restore
what do i have to do to get it recognised by itunes again after restore??? all help needed
-
G'day. I am using iMovie 11 and need to clear disk space. How can I do that using an external drive, leaving me the option to go back and make changes or access old events or projects from that external drive?
-
Problem using a vector of strings as patterns to search a text file
Ideas? Goal is to use several patterns from one file to search for matches in a second file, one pattern at a time. I have added the file of patterns to a vector and created an iterator to grab each pattern successively. I also can effectively search
-
At the moment i have a deployment system whereby: - Virtual machines are created by various means. - A 'post installation' powershell script is executed by the answer file at the final stages of install. - This script is used to do things like set-up