Assign action issue
Hello,
I have modeled a view which contains two text editors and one button.
The first text editor A is read-only, the second text editor B is not.
The button invokes an assign action which perfoms the following assignment:
@A = @B & @A
That means that the content of text editor B is copied to the beginning of text editor A, doesn't it?
However, the desired behaviour is only visible when clicking twice on the button. The first click seems to change nothing.
What am I doing wrong?
Best regards
Alexander
Hi Alexander,
I tried your scenario and it works perfectly fine , just with one click. [Here|http://img92.imageshack.us/img92/4408/texteditorot4.jpg], I have the two editors at runtime and also [assign action|http://img237.imageshack.us/img237/9712/assignqg3.jpg].
The input form has the 2 fields defined.
If you could share the design and define action or try what I have done, I am sure it would work. Let me know if it helps...
Good luck and Regards,
Dharmi
Edited by: Dharmi Tanna on Jul 23, 2008
Similar Messages
-
OSB : BEA-382510: OSB Assign action failed updating variable
Hi all,
I just started learning OSB and created a simple process .
This is my request :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
</soap:Header>
<soapenv:Body>
<hel:getGreeting xmlns:hel="http://hello.alsb.com/">
<!--Optional:-->
<arg0>string</arg0>
</hel:getGreeting>
</soapenv:Body>
</soapenv:Envelope>
im getting a error response in Assign:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>
BEA-382510: OSB Assign action failed updating variable "Test": weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element return { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type {http://www.w3.org/2001/XMLSchema}string
</faultstring>
<detail>
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-382510</con:errorCode>
<con:reason>
OSB Assign action failed updating variable "Test": weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element return { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type {http://www.w3.org/2001/XMLSchema}string
</con:reason>
<con:location>
<con:node>RouteTo_HelloWorldBiz</con:node>
<con:path>response-pipeline</con:path>
</con:location>
</con:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
This is my Xquery:
xquery version "1.0" encoding "Cp1252";
declare namespace xf = "http://tempuri.org/GoodbyeWorld_SB/XQuery/Hello_to_GoodBye/";
declare function xf:Hello_to_GoodBye($helloStr as xs:string)
as xs:string {
replace($helloStr, 'HELLO', 'Goodbye')
declare variable $helloStr as xs:string external;
xf:Hello_to_GoodBye($helloStr)
in my message response pipeln of the proxy service:
i have added the assign and given the expression : $body/hel:getGreetingResponse/return
var :Test
After the assign: i have given a replace activity:
xpath: ./hel:getGreetingResponse/return
varabile : body
Expression : string($Test)
when i test in OSB console:
im getting this error:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>
BEA-382510: OSB Assign action failed updating variable "Test": weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element return { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type {http://www.w3.org/2001/XMLSchema}string
</faultstring>
<detail>
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-382510</con:errorCode>
<con:reason>
OSB Assign action failed updating variable "Test": weblogic.xml.query.exceptions.XQueryTypeException: {err}XP0006: "element return { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type {http://www.w3.org/2001/XMLSchema}string
</con:reason>
<con:location>
<con:node>RouteTo_HelloWorldBiz</con:node>
<con:path>response-pipeline</con:path>
</con:location>
</con:fault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
aany suggestions on where the issue is.
im totaly stuck here:
TIA,
karthikit is not clear at which point you are invoking Hello_to_GoodBye, and using which argument
anyway it's likely that you are passing an Xml element (a node, something like <hello>Charlie</hello>) instead of a simple type (a string, like "Charlie")
you should use the function data($body/bla) or text ($body/bla/text() ) to extract the value (Charlie) of your element -
How to use one Assign action to create multiple context variables
Hello, everyone.
I read some tips from Oracle documentation that said:
Avoid creating many OSB context variables that are used just once within another XQuery
Context variables created using an Assign action are converted to XmlBeans and then reverted to the native XQuery format for the next XQuery. Multiple "Assign" actions can be collapsed into a single Assign action using a FLWOR expression. Intermediate values can be created using "let" statements. Avoiding redundant context variable creation eliminates overheads associated with internal data format conversions. This benefit has to be balanced against visibility of the code and reuse of the variables.
Oracle® Fusion Middleware Performance and Tuning Guide
+11g Release 1 (11.1.1)+
Part Number E10108-03
But I don't know how to do that. Can you show me ?
Thank in advance
Edited by: Doubt_Man on Aug 17, 2011 3:30 PMif you return sequences, you can declare the return type of your xquery as xs:double*
(notice the asterix at the end)
but I have the impression that in the assign action only the first element will be assigned to the context variable
(correct me if I am wrong)
So in fact you might indeed have to transform the sequence into a element()*, or concatenate it into a CVS string - for instance using string-join
http://www.xqueryfunctions.com/xq/fn_string-join.html -
MQ:OSB Assign action failed updating variable "ServiceRequest"
Hi
We have a problem with the MQ adapters in Oracle Service Bus.
If we (by accident/break testing) put messages on the queue that are invalid XML (such as "Banana" as plain text), the OSB goes into an infinte loop with this message, as it can never be dequeued due to:
<BEA-381901> <Exception in MQ Inbound Request: TransportException EndPoint: T20230_GoodsEvent/ProxyServices/T20230_G
oodsEvent, com.bea.wli.sb.transports.TransportException: OSB Assign action failed updating variable "ServiceRequest": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}FORG0
005: expected exactly one item, got 0 items
com.bea.wli.sb.transports.TransportException: OSB Assign action failed updating variable "ServiceRequest": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}FORG0005: expect
ed exactly one item, got 0 itemsThis even prevents the message from being put on the dead letter queue.
Any hints?Correct, but we have tried switching to Text to no avail.
-
MDM_WS_Generator not coming in Assigned actions list
Hi,
I have recently deployed MDM WEB SERVICES 7.1 7.11 on my Netweaver CE 7.2.
But when I try to assign the action MDM_WS_Generator it is not showing it in the Assigned action list of Netweaver CE.
Please help.
Regards,
Anand VHI John,
I have only deployed WS SCA.
I think for CE 7.2 only we need to deploy WS SCA.
Regards,
Anand V -
API's For assign action on element of Collection Plan
I have created Collection Plan and element through "QA_PLANS_PUB" API. But not able to assign action on created elements.
Please suggest any APl or interface.
Thanks in Advance
Regards,
JigneshI have created Collection Plan and element through "QA_PLANS_PUB" API. But not able to assign action on created elements.
Please suggest any APl or interface.
Thanks in Advance
Regards,
Jignesh -
Assign actions to roles programmatically
Hello guys,
Is possible to assign actions to roles programmatically using java? How can I do that?
I did a search on the UME Interfaces but i didn't find anything.
Regards
JoaoIt was not difficult
IRole role = UMFactory.getRoleFactory().getMutableRole(uniqueid);
role.addAttributeValue("com.sap.security.core.role","actions", <STRANGE ID OF ACTION?> );
role.commit();
The <STRANGE ID OF ACTION?> field was found assigning the Action to the Role manually in the Identity Management and watching the IRole object on Debug. -
CS4 in Snow Lepard Action Issues
Snow Lepard 10.6.1 / illCS4 14.0.0
I have a collection of actions (CS3) which are essential to my work. In particular, actions which call up Layer and Colour Palette functions which are not included in Keyboard mapping. These actions are triggered by Function keys. When I started on CS4 I have re-created these actions and saved a new set - specifically for CS4. When launching CS4 these new actions load in, but appear as "containers" only - action header, but no contents: (blanks).
When I replace actions through Action side Menu, my new set is restored but Function Key assignments are missing and have to be re-defined.
I have eliminated what I think are all Keyboard assignment conflicts in illustrator, as well all Keyboard services in System Preferences.
I would appreciate any help.Maybe not a cs4/snow leopard issue but an overprinting issue?
Is the white text that goes away set to overprint? -
Hi there,
I am using Captivate 6.
I have been building a course using several Advanced Actions on specific click boxes and on entering and exiting slides, which have been working as expected. However, now, when trying to assign an action to any slide on enter or exit, Captivate seems to default the action to ALL slides within the project AND any other project that I open afterwards. Also, when opening the project on another computer the issue is still present - even on other projects on other computers.
This was all working fine a few minutes before. I've tried clearing my cache, closing the project, shutting my system down and re-opening but nothing appears to be working.
Has this happened to anyone else?Never had that issue, and I'm using advanced actions all the time.
From your list I see that you didn't try yet to delete the Preferences folder. In the Captivate installation folder, subfolder Utils, you'll find a batch file to delete the Preferences folder. Do this while Captivate is closed, when restarting CP a fresh folder will be created and hopefully corruption is gone. But you also lose all customization
Lilybiri -
Error in phase of assigniment Action Script
Hello Guys!
I created the following action script named "sketch.as" :
package
import flash.display.Sprite;
import flash.events.MouseEvent;
import com.adobe.images.JPGEncoder;
public class sketch extends Sprite {
public function sketch():void {
//this is your documentclass constructor
stage.addEventListener(MouseEvent.MOUSE_MOVE, moveCursor);
Mouse.hide();
function moveCursor(event:MouseEvent):void
pencil.x = event.stageX;
pencil.y = event.stageY;
var canvas_mc:MovieClip = new MovieClip()
addChildAt(canvas_mc, 0);
canvas_mc.swapDepths
function sketch()
canvas_mc.graphics.beginFill(0xFFFFFF);
canvas_mc.graphics.drawRect(0, 0, 600, 500);
canvas_mc.graphics.endFill();
canvas_mc.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
canvas_mc.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
canvas_mc.addEventListener(MouseEvent.MOUSE_MOVE, makeLine);
function startDrawing(event:MouseEvent):void{
canvas_mc.graphics.lineStyle(1, 0, 1);
canvas_mc.graphics.moveTo(mouseX, mouseY);
canvas_mc.addEventListener(MouseEvent.MOUSE_MOVE, makeLine);
function stopDrawing(event:MouseEvent):void{
canvas_mc.removeEventListener(MouseEvent.MOUSE_MOVE, makeLine);
function makeLine(event:MouseEvent):void{
canvas_mc.graphics.lineTo(mouseX, mouseY);
sketch();
var serverPath:String = "";
function createJPG(m:MovieClip, q:Number, fileName:String)
var jpgSource:BitmapData = new BitmapData (m.width, m.height);
jpgSource.draw(m);
var jpgEncoder:JPGEncoder = new JPGEncoder(q);
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
var jpgURLRequest:URLRequest = new URLRequest ( serverPath+"jpg_encoder_download.php?name=" + fileName + ".jpg");
jpgURLRequest.requestHeaders.push(header);
jpgURLRequest.method = URLRequestMethod.POST;
jpgURLRequest.data = jpgStream;
var jpgURLLoader:URLLoader = new URLLoader();
//jpgURLLoader.load(jpgURLRequest);
navigateToURL(jpgURLRequest, "_blank");
save_btn.addEventListener(MouseEvent.CLICK, saveBtnPress);
save_btn.addEventListener(MouseEvent.ROLL_OVER, saveBtnOver);
save_btn.addEventListener(MouseEvent.ROLL_OUT, saveBtnOut);
function saveBtnPress(e:Event):void
createJPG(canvas_mc, 90, "sketch");
function saveBtnOver(e:Event):void
Mouse.show();
pencil.visible = false;
function saveBtnOut(e:Event):void
Mouse.hide();
pencil.visible = true;
Lately I created a file .fla in the same root of the file .as naming it "sketch.fla"
When I try, in the Adobe Flash CS4 Professional screen, to assign to ".fla" in the properties Publish my action script, the following message appears:
“A definition for the document class could not be found in the classpath, so one will be automatically generated in tha SWF file upon export.”
Obviously, it doesn’t function
Could somebody help me??i don't understand, "When I try, in the Adobe Flash CS4 Professional screen, to assign to ".fla" in the properties Publish my action script, the following message appears:"
but i do understand that error message. you need to assign the document class for your fla. in the properties panel with the backstage selected, assign sketch in the class or document class field. -
802.1X dyanmic VLAN assignment DHCP issue (Vista client)
I am labbing dynamic VLAN assignment and have run into a small problem. The switchport is succesfully changing to the new VLAN, but my test PC seems to get an IP address in the native data VLAN before being moved to the new dynamic assigned VLAN. So when the switch changes the VLAN the PC keeps its old IP address and nothing talks any more.
Is this a Vista issue? I thought all of these problems were just issues in XP? Do I need to tweak any interface dot1x timers?
(Cat3750 with 12.2.55 / ACS5.1. Everything else is running fine by the way.)if i do a show run on the switchport the config hasnt changed, but i dont expect it to, as its not a permanent config change that you would want to be saved by a different admin user saving the config. You can see the debug report it is changing the VLAN:
Apr 19 09:22:56.263: %AUTHMGR-5-START: Starting 'dot1x' for client (0014.c209.896f) on Interface Gi1/0/19 AuditSessionID C0A8FE250000000900291476
Apr 19 09:22:58.604: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/19, changed state to up
Apr 19 09:22:59.560: %DOT1X-5-SUCCESS: Authentication successful for client (0014.c209.896f) on Interface Gi1/0/19 AuditSessionID
Apr 19 09:22:59.568: %AUTHMGR-5-VLANASSIGN: VLAN 12 assigned to Interface Gi1/0/19 AuditSessionID C0A8FE250000000900291476
Apr 19 09:22:59.585: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan12, changed state to up
Apr 19 09:23:00.307: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/19, changed state to up
Apr 19 09:23:00.315: %AUTHMGR-5-SUCCESS: Authorization succeeded for client (0014.c209.896f) on Interface Gi1/0/19 AuditSessionID C0A8FE250000000900291476
as well as checking with the show int switchport command and it is in v12 which is the dynamically assigned vlan
DHCP server is the cat3750 for all local VLANs -
HR/ORG Assignment Integration issue
Hello All,
Basically I am not HR consultant .wondering if we are missing sap standard configurations.
We are following below steps to over come this issue which is really not advisable.
1) We lock the transaction: PPOME
2) We import transport following transport.
Object list of request
Comment entry: Released
PDMK924635 20070714 122520 NATT
HRDSYS: Logical information object client-dep. table E
SEGR_PLOGIAAAAAAAAAAAAAAA___0VVV
SEKZ_ORGAAAAAAAAAAAAAAAAA___1VVV
HRDSYS: physical information object client-dep. table E
355DC851BE6F0973E10000009B38F850
355DC852BE6F0973E10000009B38F850
355DC97CBE6F0973E10000009B38F850
355DC97DBE6F0973E10000009B38F850
Table contents
T77S0
T77S0
220PLOGIORGA
T77ST
220EPLOGIORGA
3) User will change some entries in PA30 (not sure what entries).
4)Import Original configuration
Object list of request
Comment entry: Released
PDMK925883 20071115 133627 NATT
HRDSYS: Logical information object client-dep. table E
SEGR_PLOGIAAAAAAAAAAAAAAA___0VVV
SEKZ_ORGAAAAAAAAAAAAAAAAA___1VVV
HRDSYS: physical information object client-dep. table E
355DC851BE6F0973E10000009B38F850
355DC852BE6F0973E10000009B38F850
355DC97CBE6F0973E10000009B38F850
355DC97DBE6F0973E10000009B38F850
View maintenance: Data
V_T77S0SC
T77S0
220PLOGIORGA
T77ST
220EPLOGIORGA
5) Unlock PPOME
Please give some solution regarding this issue. I am happy to provide more details regarding this. I am not sure which details are really required for your investigation.
Thanks in advance .
Kind Regards
RajHi Dianna Perron ,
Thanks for your update, I think it is quite difficulty to check the config in the transport i am sorry for this .
I got full history of this issue.
- It was the issue with integration between HR and Org assignment.
1)
There was a requirement to make cost canter field a input field on HR master as this could be used by PD resources in reporting. This was achieved by switching off the integration between Organisational Management/HR via Transport config.
2)
By doing above could maintain the cost canter field with relevant cost centers for watch HR record in PA30.
3)
Users reported few errors (Error screen you can see attached Screen 1) that there was some issue how the integration between HR and Org assignment is behaving. This was sorted out and the integration between HR and Organisanol Management was activated by transport .by activating this (step 2 PA30) again Cost Canter field Greyed please find Screen 2)
4) Because of the above issue we are deactivating the config with one transport and then again activating one transport.
Please let me know if you want to check the configs kindly provide me SPRO Path the i will provide
Kind Regards
Raj -
How to assign Action to multiple Users dynamically in GP
Hello Experts,
I have the following scenario in GP
I have created a Web Dynro GP Callable Object and from my Web Dynpro i need to a pass a list of Users to which a particular Action needs to be assigned.
I am able to return a single value from web dynpro to gp.
Can some one help me how to return a list of users to gp.
I have done the following: In the getDescription method I have added an attribute of multiplicity 1_N:
IGPStructureInfo outputStruct = technicalDescription.getOutputStructureInfo();
IGPAttributeInfo list1 = outputStruct.addAttribute("List1", IGPAttributeInfo.BASE_STRING);
list1.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_N);
then in the complete method I am trying to set an Arraylist to this variable:
IGPStructure output = execContext.getOutputStructure();
output.setAttributeValue("List1", userList);
Here userList is an Arraylist which contains the list of User Id's..
However I get the following exception:
com.sap.caf.eu.gp.exception.api.GPInvocationException: Multiplicity of attribute with name List1 and namespace null does not allow single values to be set/received
at com.sap.caf.eu.gp.structure.impl.GPStructure.setAttributeValue(GPStructure.java:114)
Can someone help me in knowing how I can return a list as an output parameter to GP from Web Dynpro...
Regards
SundeepHi Srinivasan,
Of course the Role is Runtime defined...
I would brief you again the mapping that I have performed in the Design time at the processlevel.
From Web Dynpro I return a List of type String and Multiplicity 1..N.
I map this List with the leaf item User Identifier contained in the User List Input parameter of the Assign User to Process Role callable object.
However since the User Identifier parameter is of cardinality 0..1 only the first value in the returned list is getting assigned to it. Thus the task is getting assigned to only one user.
Now it is not possible in Design time to Group or consolidate parameters of different types. Thus the List which is of type String cannot be mapped to User List or the User_Item contained within it which are both of type Structure and multiple cardinality.
I even created a Structure in Web Dynpro of cardinality 1..N and withing it i included a List of type String and cardinality 1..N. Now I returned this Structure from Web Dynpro and tried to map it to the User Item Structure of the Assign User to Process Role Callable object, but doint this the task did not get assigned to any user..
One question:
Don't you think that in order for the task assignment to happen using the Assign User to Process Role Callable Object the leaf item User Identifier parameter contained in the User_List input parameter of this callable object needs to be populated with the required User Id's.
But if the cardinality of this parameter is always 0..1 , is it possible to achive the assignment of an Action to multiple Users at runtime using this Callable Object?
Can you please explain the parameter mapping you followed in order to achive this...
Regards
Sundeep
I want to ensure that you remain in the top 3 contributors in this forum
I will continue to reward points for your answers
Edited by: Sundeep Sethi on Sep 4, 2008 1:47 PM -
Role Assignment Migration Issue
Hi All,
We migrated from EP6.0 to NW04 and encountered an issue with role assignment. We currently have two LDAPs (1 for external customers and 1 for internal customers), when we did the migration, what we noticed is that for the external users, all their roles were not attached and for internal users, some of the roles were not attached. Has anyone encountered this issue?
ThanksHi Reyna,
I did some research on this. I was unable to find anyone who migrated from a portal with two ldaps configured. I was aware of some issues if people changed ldaps or migrated the uses from one ldap to another. Or if they didn't use the migration tools. Since you used the tools and used the same ldap, I'm not sure what is going on.
If you haven't already, I suggest you open a message with SAP. Let us know here if you make any progress. If I find out more, I'll post here too.
Thanks,
John -
Assigning Actions to Radio Button Widget
I'd like to be able to use the radio button widget as a way to jump to slides. I created a variable for each option (assigning a value of 1 to each) and tied it to an advanced action I've attempted to create. I then added a button that executes that advanced option once the radio button is selected. It doesn't seem to be working.
Does anyone know how to do this, by chance?
My advanced action script looks like this:
Check if [var1 is equal to 1]
begin
Jump to slide Slide 4
end
Or Else
begin
end
Check if [var 2 is equal to 1]
begin
Jump to slide Slide 5
begin
end
Etc, etc.Hi,
Only one variable is sufficient to acheive this.I tried the following steps and it worked.
1. Create a variable say var1
2. Create advanced actions
Check if [var1 is equal to 1]
begin
Jump to slide Slide 4
end
Or Else
begin
end
Check if [var1 is equal to 2]
begin
Jump to slide Slide 5
begin
end
3. Insert the Radio Button widget
4. In Widget Parameters provide the comma seperated values like 1,2,3
5. Provide the variable name (var1)
6. Insert a button and call the above script.
thanks
ravi
Maybe you are looking for
-
Why can I view PDF files from the Web on my iMac even after I installed Adobe Reader and accepted the end user license agreement.I then quit the application relaunched it, as instructed snd still the PDF document comes out blank or black. Please advi
-
Hi I have configured all the steps necessary for uploading the photograph of the employees. But when at last step when i am running T Code OAAD, after entering all the details it is showing Repository A2 not accessible by HTTP What is the way out her
-
Cp7 - Text objects appear in filmstrip but are not visible in main window
Hi all A problem has surfaced this week. When I open up any existing quiz projects, text objects aren't appearing. You can see on the filmstrip in the attached screenshot that there are 5 text objects on slide 1. However, none are showing up in the m
-
HT204152 How to view app-specific password after generated
I would like to enter app-specific password on my 2nd Mac, but I don't have a way to view the app-specific password generated earlier. I know I could generate another app-specific password for the same app. But it doesn't make sense if i couldn't vie
-
IPad stuck in recovery mode while trying to update it, can't reset it
I tried to update it, got errors 4 and 14. Tried to restore it, got errors 4005, 11 and 4013. iTunes recognizes the iPad, but iTunes diagnostics doesn't. I also don't see it in Windows (even though Windows installs the drives when I connect the iPad)