Problem in setting the target property to _SELF of LinkToURL UI Element
Hi,
I have a LinkToURL UI Element in my web page which has to open up another page in the same window.
I tried setting the target property to _SELF, but it's not working.Instead the page is opened in a new child window.
Please tell me whether to set any other property to get that.
Thanks and Regards,
Padma Usha.
Hi,
Please give the target value in lowercase "_self".
Regards, Anilkumar
Similar Messages
-
How to set the target property of hyperlink through formula
Hi guyz,
I have a problem in setting the target property of hyperlink field. I'm using CR XI R2 with asp.net.
I want to set the target property of hyperlink as one of the frame on my webform. how can i do it through formula in crystal report.
I want to set it through CR because i don't have any way to identify the link fields uniquely. these link fields are generated dynamically from data base. I have some other links on my webform. If i try to get all links through javascript and change the target property it may effect some other functionalities, so i'm avoiding using javascript to set the target property of hyperlinks.
your help will be highly appreciated.
Thanks in advance
DeepakYou may want to look at the HyperlinkTarget property of the CrystalReportViewer. If you want all hyperlinks in the report to go to that frame, it should work for you.
-
Problem in setting the target directory in communication channel
hi...
my idoc 've been send successfully from the sender system and it also reached the receiver system. i conform it by checking the inbounds in IDX5.
but it is not generating the xml file in the target directory.
plz help me...Hi,
Check the status of the receiver communication channel in RWB
Configure Your Receiver File Channel as Following
http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d03341771b4c0de10000000a1550b0/frameset.htm
File to File scenario:
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1 - File to File Part 1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 - File to File Part 2
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/flatFILETOFLATFILE&
Regards
Seshagiri -
In the simple example below I define three classes:
MyComputerRoleClass (with base Microsoft.Windows.ComputerRole)
MyLocalApplicationClass (with base Microsoft.Windows.LocalApplication)
MyApplicationComponentClass (with base Microsoft.Windows.ApplicationComponent)
As well as a hosting relationship
MyLocalApplicationClassHostsMyApplicationComponentClass
that let's MyLocalApplicationClass host MyApplicationComponentClasses.
In a timed PowerShell discovery targeting the RootManagementServer (Root Management Server Emulator) I create
1 MyComputerRoleClass instance
1 MyLocalApplicationClass instance and
2 MyApplicationComponentClass instances hosted on the instance of MyLocalApplicationClass
By setting the PrincipalName property for the instances of MyComputerRoleClass
and MyLocalApplicationClass I implicitly create hosting relationship instances of
Microsoft.Windows.ComputerHostsComputerRole and Microsoft.Windows.ComputerHostsLocalApplication
respectively.
But why do I have to set PrincipalName on instances of MyApplicationComponentClass as well? If I don't I'll get this error:
Microsoft.EnterpriseManagement.Common.DiscoveryDataMissingKeyException,Missing key in the discovery data item.
Key property name: Microsoft.Windows.Computer.PrincipalName
Here my discovery script:
param($sourceId,$managedEntityId)
$api = new-object -comObject "MOM.ScriptAPI"
$api.LogScriptEvent('DiscoverClassesAndRelationships.ps1', 1001, 0, "Discovery started (12)")
$discoveryData = $api.CreateDiscoveryData(0,$sourceId,$managedEntityId)
$computer = 'SomeServer.SomeDomain'
$myComputerRoleClass = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyComputerRoleClass']$")
$myComputerRoleClass.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyComputerRoleClass instance on $computer")
$myComputerRoleClass.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer)
$discoveryData.AddInstance($myComputerRoleClass)
$myLocalApplicationClass = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClass']$")
$myLocalApplicationClass.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyLocalApplicationClass instance on $computer")
$myLocalApplicationClass.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer)
$discoveryData.AddInstance($myLocalApplicationClass)
$myApplicationComponentClass1 = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']$")
$myApplicationComponentClass1.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyApplicationComponentClass instance")
$myApplicationComponentClass1.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer) # Why is this needed
$myApplicationComponentClass1.AddProperty("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']/Name$", "Number 1")
$discoveryData.AddInstance($myApplicationComponentClass1)
$myApplicationComponentClass2 = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']$")
$myApplicationComponentClass2.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyApplicationComponentClass instance")
$myApplicationComponentClass2.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer) # Why is this needed
$myApplicationComponentClass2.AddProperty("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']/Name$", "Number 2")
$discoveryData.AddInstance($myApplicationComponentClass2)
$relationshipInstance1 = $discoveryData.CreateRelationshipInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass']$")
$relationshipInstance1.Source = $myLocalApplicationClass
$relationshipInstance1.Target = $myApplicationComponentClass1
$discoveryData.AddInstance($relationshipInstance1)
$relationshipInstance2 = $discoveryData.CreateRelationshipInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass']$")
$relationshipInstance2.Source = $myLocalApplicationClass
$relationshipInstance2.Target = $myApplicationComponentClass2
$discoveryData.AddInstance($relationshipInstance2)
$api.LogScriptEvent('DiscoverClassesAndRelationships.ps1', 1002, 0, "Discovery ended - data returned now")
#$api.return($discoveryData)
$discoveryData
Here my classes and relationships:
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="MyDiscoveryDemoManagementPack.MyComputerRoleClass" Base="Windows!Microsoft.Windows.ComputerRole" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false"/>
<ClassType ID="MyDiscoveryDemoManagementPack.MyLocalApplicationClass" Base="Windows!Microsoft.Windows.LocalApplication" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false"/>
<ClassType ID="MyDiscoveryDemoManagementPack.MyApplicationComponentClass" Base="Windows!Microsoft.Windows.ApplicationComponent" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false">
<Property Key="true" ID="Name" Type="string"/>
</ClassType>
</ClassTypes>
<RelationshipTypes>
<RelationshipType ID="MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass" Base="System!System.Hosting" Abstract="false" Accessibility="Internal">
<Source ID="Source" Type="MyDiscoveryDemoManagementPack.MyLocalApplicationClass"/>
<Target ID="Target" Type="MyDiscoveryDemoManagementPack.MyApplicationComponentClass"/>
</RelationshipType>
</RelationshipTypes>
</EntityTypes>
</TypeDefinitions>
For anyone who would like to try this out, the complete management pack (you need to change $computer = 'SomeServer.SomeDomain' to match some managed computer in your system):
<?xml version="1.0" encoding="utf-8"?>
<ManagementPack SchemaVersion="2.0" ContentReadable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Manifest>
<Identity>
<ID>MyDiscoveryDemoManagementPack</ID>
<Version>1.0.0.28</Version>
</Identity>
<Name>MyDiscoveryDemoManagementPack</Name>
<References>
<Reference Alias="SC">
<ID>Microsoft.SystemCenter.Library</ID>
<Version>7.0.8433.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="Windows">
<ID>Microsoft.Windows.Library</ID>
<Version>7.5.8501.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
<Reference Alias="System">
<ID>System.Library</ID>
<Version>7.5.8501.0</Version>
<PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
</Reference>
</References>
</Manifest>
<TypeDefinitions>
<EntityTypes>
<ClassTypes>
<ClassType ID="MyDiscoveryDemoManagementPack.MyComputerRoleClass" Base="Windows!Microsoft.Windows.ComputerRole" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false" />
<ClassType ID="MyDiscoveryDemoManagementPack.MyLocalApplicationClass" Base="Windows!Microsoft.Windows.LocalApplication" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false" />
<ClassType ID="MyDiscoveryDemoManagementPack.MyApplicationComponentClass" Base="Windows!Microsoft.Windows.ApplicationComponent" Accessibility="Internal" Abstract="false" Hosted="true" Singleton="false">
<Property Key="true" ID="Name" Type="string" />
</ClassType>
</ClassTypes>
<RelationshipTypes>
<RelationshipType ID="MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass" Base="System!System.Hosting" Abstract="false" Accessibility="Internal">
<Source ID="Source" Type="MyDiscoveryDemoManagementPack.MyLocalApplicationClass" />
<Target ID="Target" Type="MyDiscoveryDemoManagementPack.MyApplicationComponentClass" />
</RelationshipType>
</RelationshipTypes>
</EntityTypes>
</TypeDefinitions>
<Monitoring>
<Discoveries>
<Discovery ID="MyDiscoveryDemoManagementPack.MyDiscovery" Target="SC!Microsoft.SystemCenter.RootManagementServer" Enabled="true" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="MyDiscoveryDemoManagementPack.MyComputerRoleClass" />
<DiscoveryClass TypeID="MyDiscoveryDemoManagementPack.MyLocalApplicationClass" />
<DiscoveryClass TypeID="MyDiscoveryDemoManagementPack.MyApplicationComponentClass" />
<DiscoveryRelationship TypeID="MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass" />
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.TimedPowerShell.DiscoveryProvider">
<IntervalSeconds>300</IntervalSeconds>
<SyncTime />
<ScriptName>DiscoverClassesAndRelationships.ps1</ScriptName>
<ScriptBody><![CDATA[param($sourceId,$managedEntityId)
$api = new-object -comObject "MOM.ScriptAPI"
$api.LogScriptEvent('DiscoverClassesAndRelationships.ps1', 1001, 0, "Discovery started (12)")
$discoveryData = $api.CreateDiscoveryData(0,$sourceId,$managedEntityId)
$computer = 'SomeServer.SomeDomain'
$myComputerRoleClass = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyComputerRoleClass']$")
$myComputerRoleClass.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyComputerRoleClass instance on $computer")
$myComputerRoleClass.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer)
$discoveryData.AddInstance($myComputerRoleClass)
$myLocalApplicationClass = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClass']$")
$myLocalApplicationClass.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyLocalApplicationClass instance on $computer")
$myLocalApplicationClass.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer)
$discoveryData.AddInstance($myLocalApplicationClass)
$myApplicationComponentClass1 = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']$")
$myApplicationComponentClass1.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyApplicationComponentClass instance")
$myApplicationComponentClass1.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer) # Why is this needed
$myApplicationComponentClass1.AddProperty("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']/Name$", "Number 1")
$discoveryData.AddInstance($myApplicationComponentClass1)
$myApplicationComponentClass2 = $discoveryData.CreateClassInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']$")
$myApplicationComponentClass2.AddProperty("$MPElement[Name='System!System.Entity']/DisplayName$", "MyApplicationComponentClass instance")
$myApplicationComponentClass2.AddProperty("$MPElement[Name='Windows!Microsoft.Windows.Computer']/PrincipalName$", $computer) # Why is this needed
$myApplicationComponentClass2.AddProperty("$MPElement[Name='MyDiscoveryDemoManagementPack.MyApplicationComponentClass']/Name$", "Number 2")
$discoveryData.AddInstance($myApplicationComponentClass2)
$relationshipInstance1 = $discoveryData.CreateRelationshipInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass']$")
$relationshipInstance1.Source = $myLocalApplicationClass
$relationshipInstance1.Target = $myApplicationComponentClass1
$discoveryData.AddInstance($relationshipInstance1)
$relationshipInstance2 = $discoveryData.CreateRelationshipInstance("$MPElement[Name='MyDiscoveryDemoManagementPack.MyLocalApplicationClassHostsMyApplicationComponentClass']$")
$relationshipInstance2.Source = $myLocalApplicationClass
$relationshipInstance2.Target = $myApplicationComponentClass2
$discoveryData.AddInstance($relationshipInstance2)
$api.LogScriptEvent('DiscoverClassesAndRelationships.ps1', 1002, 0, "Discovery ended - data returned now")
#$api.return($discoveryData)
$discoveryData]]></ScriptBody>
<Parameters>
<Parameter>
<Name>sourceId</Name>
<Value>$MPElement$</Value>
</Parameter>
<Parameter>
<Name>managedEntityId</Name>
<Value>$Target/Id$</Value>
</Parameter>
</Parameters>
<TimeoutSeconds>120</TimeoutSeconds>
</DataSource>
</Discovery>
</Discoveries>
</Monitoring>
<LanguagePacks>
<LanguagePack ID="ENU" IsDefault="true">
<DisplayStrings>
<DisplayString ElementID="MyDiscoveryDemoManagementPack.MyComputerRoleClass">
<Name>A demo Computer Role (base Microsoft.Windows.ComputerRole)</Name>
<Description></Description>
</DisplayString>
<DisplayString ElementID="MyDiscoveryDemoManagementPack.MyLocalApplicationClass">
<Name>A demo Local Application (base Microsoft.Windows.LocalApplication)</Name>
<Description></Description>
</DisplayString>
<DisplayString ElementID="MyDiscoveryDemoManagementPack.MyApplicationComponentClass">
<Name>A demo Application Component (base Microsoft.Windows.ApplicationComponent)</Name>
<Description></Description>
</DisplayString>
<DisplayString ElementID="MyDiscoveryDemoManagementPack.MyDiscovery">
<Name>My Demo Discovery</Name>
<Description>Script based discovey of all demo classes and relationships in this demo. To run at the Root Management Server Simulator</Description>
</DisplayString>
</DisplayStrings>
<KnowledgeArticles></KnowledgeArticles>
</LanguagePack>
</LanguagePacks>
</ManagementPack>According to
System Center Authoring Hub:
"Any key properties of the class being discovered and the key properties of any of its parents must be provided. Values for other properties are optional. In this example [as well as mine], the class being discovered is hosted by Windows Computer
and the key property of that class is added to the instance."
http://social.technet.microsoft.com/wiki/contents/articles/14261.operations-manager-management-pack-authoring-discovery-scripts.aspx
So that's why :-)
Michael -
How to set the cardinality property as 1..n for a dynamically created node
Hi...everybody
I am creating Dropdown by index UI element and the
context atrributes dynamically.To bind multiple data to a dropdown
the cardinality property of the node should be 0..n or 1..n,
But i could not set the property of the dynamically created context node to 0..n ...
can any body suggest me..
I implemented the following code in WDDoModify View
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
IWDNodeInfo node = wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,
null,null);
IWDAttributeInfo strinfo=node.addAttribute("Value","ddic:com.sap.dictionary.string");
dbyindex.bindTexts(strinfo);
tc.addChild(dbyindex);
I could successfully display one value in the drop down,by adding the following code before the line tc.addchild(dbyindex);
IWDNode node1=wdContext.getChildNode("DynamicNode",0);
IWDNodeElement nodeElement=node1.createElement();
nodeElement.setAttributeValue("Value","Hello");
node1.addElement(nodeElement);
but when
i am trying to bind multiple values i am getting Exception ,,,,hi
you are getting the exception because of cardinality property.
i.e true,false and
you are trying to add morethan one element.
so,if you want to add morethan one than one element you have to set the cardinality property to true,true (or) false,true.
In your code do the following modification for changing the cardinality.
For 0..n -->false,true
1..n-->true,true
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
IWDNodeInfo node = wdContext.getNodeInfo().addChild("DynamicNode",null,true,true,false,false,false,true,null,
null,null);
IWDAttributeInfo strinfo=node.addAttribute("Value","ddic:com.sap.dictionary.string");
dbyindex.bindTexts(strinfo);
tc.addChild(dbyindex);
hope this will solve your problem.
In addchild(..) the parameters are
addChild("Name ,
Element class for model node ,
Is singleton? ,
Cardinality ,
Selection cardinality ,
Initialise lead selection? ,
Datatype ,
Supplier function ,
Disposer function);
Regards
sowmya -
How to set the target directory from source filename using adaptor module.
Hi,
How im using a logical bypass scenario.I have to set the target directory using the sorce filename.There is no chance of using a Java UDF as my scenario does not have a Mapping(as it is a Bypass Scenario).The only option that i got is to use a Adaptor module.Can anyone help me this.
Thanks,
BhargavHi,
See this link,
http://help.sap.com/saphelp_nw04/helpdata/en/e9/61e1407e858031e10000000a1550b0/content.htm
hope it helps.
Regards,
Akshay Jamgaonkar.
Reward points if find useful. -
How to set the 'text' property of a 'Header' region dynamically?
Hi,
I have a requirement to display the 'text' property of a 'Header' region, based on a query.
So I need to set the text property programatically in CO.
Can I use setText("..") by getting the handler to the 'Header' region?
If so, How to get the handler for the 'Header' region?
Message was edited by:
user594528How to get the handler for the 'Header' region to call the setText()?
OAHeaderBean Header1 = (OAHeaderBean)...........................
Header1.setText("...."); -
Setting the editable property of a datagrid column dynamically
Hi,
Im trying to set the editable property and renderer is editable property for a datagrid column to false on the creation complete event of the datagrid.But It does not work.While visible property works.why doesnt the editable property work.The particular column has a renderer which is a text box.and the editable property is set to false initially.Any Suggestions or ideas on how to achieve this will be of great help.Eu tenho vontade de estar devidamente por dentro de tudo isso.
-
Problem in setting the smtp in a apple mail account.
Can anyone help me resolve a problem in setting the mail preferrences? I have multiple email accounts and the smtp address is being deleted to a none smtp in an account then when I fix the problem in one account it deletes an smtp address in another email account. When I fix that account it deletd another smtp address and so on an so forth. Is this a virus or is there a fix for this problem?
Mail in IOS iPhone or OS X?
Anyway You select each account and assign or create new smtp. -
Revision: 8903
Author: [email protected]
Date: 2009-07-29 11:17:43 -0700 (Wed, 29 Jul 2009)
Log Message:
Tiny adjustment to the previous change in revision 8902 - this actually allows the fx: language namespace qualification to opt out of setting the id property in all scenarios.
QE notes: N/A
Doc notes: N/A
Bugs: SDK-21700
Reviewer: Discussed with Paul
Tests run: Checkintests, Mustella AdvancedCSS
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-21700
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ComponentBuilder.jav aRemember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them. This may or may not be unique to Arch Arm, so you might try asking on their forums as well.
-
Error when tried to set the PreserveSequence property in a map to "yes"
Hi there,
I have a lab ORU^R01 msgs that has multiple OBR and OBX segments, I tried to preserve the order by setting the PreserveSequence property but in run time i get this error:
The variable or parameter "http://schemas.microsoft.com/Biztalk/2003/var:v14' is either not defined or it is out of scope.
I have to geth this sorted as the users do not want them out of order.
Can I get help on this please,
sushmaHi Shushmakad,
If you set Preserve Sequence Property=true. BizTalk will always expect source node will be in sequence, but you have option to change sequence of destination schema by updating xslt.
Can you test your map with sample input message with sequence.
Debug xslt (use this url for reference)
http://msdn.microsoft.com/en-us/library/ms255602(v=vs.110).aspx
Regards
Suman -
How to set the actionname property in B2B 11g
I have an outbound file sent via AS2 over http. I gather from other b2b forums/documents that for preserving the file name I have to set the actionname property. I have a BPEL process which is setting the fromTP, toTP, document TYPE etc, and then invoking the B2B and sending the document. Can I set the actionname property in the BPEL?
When I am trying to assign a value like "contentType:application/octet-stream;filename:abc.xml", I don't see any actionname property in the "To" side.As there are three ways through which you may pass a message to B2B, so there are three ways to set Action name property.
If you are using SCA/Fabric then set below properties -
b2b.fileName
b2b.contentType
If you are using JCA JMS adapter, then set below property -
jca.jms.JMSProperty.ACTION_NAME
If you are using JCA AQ adapter then set -
ACTION_NAME
Regards,
Anuj -
Unable to set the colorIndex Property of the Interior Class
HI
Iam trying to Update the Accound Dim with New Property 'CostAcc" IN SAP BPC.
i entered the text and lenth of the property then i clicked on Modify The Dim Property. then its giving a warning message"Unable to set the colorIndex Property of the Interior Class"
BPC Experts pls send me a sollution
Thanks in advance
Regards
NarsiP
SAP BPC Consultant
OutLookSoft SADid you process your account dimension before to add you property?
Are you sure that your account dimension was working before to apply your modification?
Did you add just one property ore more properties?
Did you delete any existing properties?
Did you try to do modify account dimension without adding any porperties to see if that dimension is fine?
Regards
Sorin Radulescu -
Hi,
I am getting the user PreferredName from user profile and trying to assign the value to column of type person/group as below
lblPreferredName.Text = (profile["PreferredName"].Value).ToString();
SPUser user = subSiteWeb.EnsureUser(lblPreferredName.Text);
SPListItem itemToAdd = CurrentList.Items.Add();
itemToAdd["Nominated"] = user.ID;
subSiteWeb.AllowUnsafeUpdates = true;
itemToAdd.Update();
subSiteWeb.AllowUnsafeUpdates = false;
But i am getting the error as below.
Plase correct me if i am wrong
Updates are currently disallowed on GET requests. To allow updates on a GET, set the 'AllowUnsafeUpdates' property on SPWeb.
Regards,
Sudheer
Thanks & Regards, SudheerHi,
So you are trying to save the SPUser value in the "Nominated" column.If yes then this code snippet will be helpful.
using (SPSite site = new SPSite(SPContext.Current.Site.Url))
using (SPWeb web = site.OpenWeb())
SPUser userObj = SPContext.Current.Web.EnsureUser("Murugesan");
SPFieldUserValue userValue = new SPFieldUserValue(SPContext.Current.Web, userObj.LoginName);
SPList list = web.Lists["Project"];
SPListItem item = list.Items.Add();
item["Title"] = "Project-2";
item["Manager"] = userValue;
item.Update();
Run this code with elevated privilege.
Murugesa Pandian.,MCTS|App.Devleopment|Configure -
Revision: 8024
Author: [email protected]
Date: 2009-06-19 16:59:25 -0700 (Fri, 19 Jun 2009)
Log Message:
Fixed an injection where setting the 'content' property of Spark text component to a TextFlow would cause you to get a TextFlow nested inside a TextFlow.
QE Notes: None
Doc Notes: None
Bugs: SDK-21906
Reviewer: Carol to review
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-21906
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as
flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.asWell, I've already solved one of the two issues
In order to display the icons on my buttonbar buttons, I just needed to point at {hostComponent.data.data} instead of {hostComponent.data}. I'm not sure why, but {hostComponent.data} in my skin class is a handle on my instance of ButtonBarButton, not its "data" property. Any explanation is welcomed
I still have got the first issue though. Oddly enough my design works if I put an mx Image instead of the spark BitmapImage for the client logo. That will do the trick for the moment but I'd prefer to deliver a 100% pure spark component in my prototype, and I can see no reason why BitmapImage works inside my ButtonBarButtons and doesn't otherwise...
Maybe you are looking for
-
The screen on my MacBook goes black often. I can still see a faint image of what's on the screen, and can only get it to illuminate by moving it back and forth. What could the issue be? How can it be fixed?
-
Hi guys, Not sure if it's something I've done or if it would sort itself out if I restarted AI but I thought I'd drop a quick message in here just in case. When I try 'placing' an image into a AI document, it appears to be embedding the file [be it a
-
Using Transitions in Premiere Pro CS6
I am creating a movie using video clips and photos. How do I use transitions between photos? I tried dragging the transition from the effects onto the photo but it doesn't seem to work. Is there something I'm doing wrong or have to adjust?
-
Need help with RAW conversion in 1.5
Previous tests on RAW conversion have confirmed that Aperture and CI pretty much all in camera settings except white balance. In my previous tests with everything set to pretty much "normal" in camera Aperture's RAW conversion was close but not exact
-
Mail tries to index, then freezes - help!
Hi there everyone I've had a bit of trawl around here looking for a solution to my problem and it looks like my inbox is overstuffed (about 700MB) but I can't get mail to stay operational long enough to delete anything before it hangs. It starts to i