Setting value to RichOutputText
Hello!!
I have a RichOutputText in my class:
private RichOutputText usuarioLogado;
//getters / setters
//somewhere in a method:
this.usuarioLogado = new RichOutputText();
this.usuarioLogado.setValue(mesaUsuarioBean.getUsuarioLogadoMesa(m).getNome());
AdfFacesContext.getCurrentInstance().addPartialTarget(getUsuarioLogado());
RichPopup popup = this.getPopup();
RichPopup.PopupHints hints = new RichPopup.PopupHints();
popup.show(hints);
and on page:
<af:popup childCreation="deferred" autoCancel="disabled" id="p2"
binding="#{AcessoMB.popup}">
<af:dialog id="d3" title="Mesa em uso" type="none">
<af:outputText clientComponent="true" value="O usuario #{AcessoMB.usuarioLogado} está operando a Mesa. Você deseja forçar 'logof' deste Usuário?" id="ot3"
inlineStyle="text-align:center; vertical-align:middle;"/>
<f:facet name="buttonBar">
<af:panelGroupLayout layout="horizontal" halign="right"
styleClass="AFStretchWidth">
<af:commandButton text="Yes" id="yes" actionListener="#{AcessoMB.popUpAction}" partialSubmit="true"/>
<af:commandButton text="No" id="no" actionListener="#{AcessoMB.popUpAction}" partialSubmit="true"/>
</af:panelGroupLayout>
</f:facet>
</af:dialog>
</af:popup>
The problem I have, is instead showing the ".getNome()" (its a string) on the message, it shows me "O usuario RichOutputText[UIXFacesBeanImpl, id=j_id14] está operando a Mesa. Você deseja forçar 'logof' deste Usuário?"
How can I show the actual value of the String instead "RichOutputText[UIXFacesBeanImpl, id=j_id14]" on the value of my outputText?
Thanks
Well, that's what you ask it to do as you output the instance address of the RichOutputText. instead of using a richOutputText variabel use a normal string variable, add getter and setter for the variable and use this:
private String usuarioLogado;
//getters / setters
//somewhere in a method:
this.usuarioLogado = (String)mesaUsuarioBean.getUsuarioLogadoMesa(m).getNome();
This should work.
Timo
Similar Messages
-
Dynamic action with set value on date field
Hi,
I'm using APEX 4.02
I'm trying to calculate the age based on the date of birth dynamically on a form. I'm trying to do this with a (advanced)dynamic action with set value.
I'm able to get this kind of action working based on a number field etc, but NEVER on a date field.
I've read all posts on this subject but so far no solution. Even if I try to simply copy the value over to another date field or typecast it to a string ( to_char function ) it does not work. So for me the problem seems to be in the source field being a date field.
I've tried using the source value as is in a select statement :
select :P33_GEBOORTEDATUM from dual;
and also type casted based on the date format :
select TO_DATE(:P33_GEBOORTEDATUM,'DD-MON-YYYY') from dual
but still no luck.
On the same form I don't have any issues as long as the calculation is based on number fields, but as soon as I start using dates all goes wrong.
Any suggestions would be greatly appreciated. If you need any extra info just let me know.
Cheers
Bas
b.t.w My application default date format is DD-MON-YYYY, maybe this has something to do with the issue .... ?
Edited by: user3338841 on 3-apr-2011 7:33Hi,
Create a dynamic action named "set age" with following values.
Event: Change
Selection Type: Item(s)
Item(s): P1_DATE_OF_BIRTH
Action: Set value
Fire on page load: TRUE
Set Type: PL/SQL Expression
PL/SQL Expression: ROUND( (SYSDATE - :P1_DATE_OF_BIRTH)/365.24,0)
Page items to submit: P1_DATE_OF_BIRTH
Selection Type: Item(s)
Item(s): P1_AGE
Regards,
Kartik Patel
http://patelkartik.blogspot.com/
http://apex.oracle.com/pls/apex/f?p=9904351712:1 -
SQL Query (updateable report) Region - Conditionally Hide and Set Values
SQL Query (updateable report) Region - Conditionally Hide and Set Values
Outline of requirement :-
Master / Detail page with Detail updated on same page using SQL Query (updateable report).
The detail region has the following source
SELECT item_id,
contract_id,
CASE WHEN hardware_id IS NOT NULL THEN
'HA'
WHEN backup_dev_id IS NOT NULL THEN
'BD'
WHEN hardware_os_id IS NOT NULL THEN
'HS'
END item_type,
hardware_id,
backup_dev_id,
hardware_os_id
FROM "#OWNER#".support_items
WHERE contract_id = :P26_CONTRACT_IDThe table support_items implements arced relationships and has the following columns
CREATE TABLE SUPPORT_ITEMS
ITEM_ID NUMBER NOT NULL,
CONTRACT_ID NUMBER NOT NULL,
HARDWARE_ID NUMBER,
BACKUP_DEV_ID NUMBER,
HARDWARE_OS_ID NUMBER
)A check type constaint on support_items ensures that only one of the fk's is present.
( hardware_id IS NOT NULL
AND backup_dev_id IS NULL
AND hardware_os_id IS NULL
OR ( hardware_id IS NULL
AND backup_dev_id IS NOT NULL
AND hardware_os_id IS NULL
OR ( hardware_id IS NULL
AND backup_dev_id IS NULL
AND hardware_os_id IS NOT NULL
) Hardware_Id is a FK to Hardware_Assets
Backup_dev_id is a FK to Backup_Devices
Hardware_os_id is a FK to Hardware_op_systems
The Tabular Form Element based on item_type column of SQL query is Displayed As Select List (based on LOV) referencing a named list of values which have the following properties
Display Value Return Value
Hardware Asset HA
Backup Device BD
Computer System HSThe Tabular Form Elements for the report attributes for hardware_id, backup_dev_id and hardware_os_id are all Displayed As Select List (Based on LOV).
What I want to do is only display the Select List for the FK depending on the value of the Select List on Item Type, e.g.
Item_Type is 'HA' then display Select List for hardware_id, do not display and set to NULL the Select Lists for backup_dev_id and hardware_os_id.
Item_Type is 'BB' then display Select List for backup_dev_id, do not display and set to NULL the Select Lists for hardware_id and hardware_os_id.
Item_Type is 'HS' then display Select List for hardware_os_id, do not display and set to NULL the Select Lists backup_dev_id and hardware_id.
There are properties on elements to conditionally display it but how do we reference the values of the SQL query Updateable region? they are not given a page item name?
Also on the Tabular For Elements there is an Edit tick against a report item - however when you go to the Column Attributes there is not a property with which you can control the Edit setting.
What's the best way of implementing this requirement in APEX 3.1?
Thanks.>
Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "user13515136".
When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
<li>Full APEX version
<li>Full DB/version/edition/host OS
<li>Web server architecture (EPG, OHS or APEX listener/host OS)
<li>Browser(s) and version(s) used
<li>Theme
<li>Template(s)
<li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
I have a multi-row region that displays values and allows entries in a number of fields.Provide exact details of how this has been implemented. (An example on apex.oracle.com is always a good way to do this.)
I should like the fields to be conditional in that they do not permit entry, but still display, if certain conditions apply (e.g. older rows greyed out). Can this be done? Almost anything can be done, often in multiple ways. Which are appropriate may be dependent on a particular implementation, the skills available to implement it, and the effort you're willing to expend on it. Hence it's necessary to provide full details of what you've done so far... -
How to set value from one view to other view's context node attr b4 save
HI all,
My requirement is as below:
There are two views in component BP_CONT.
BP_CONT/ContactDetails IMPL class
BP_CONT/SalesEmployee SALESEMPLOYEE STRUCT.SALESEMPLOYEE
I want to set value from first view to second view's context node's attribute.
i get Sales Employee BP number in ContactDetails view, from here i want to set that value in to STRUCT.SALESEMPLOYEE
of second view in the same component.
please send me code snippet for doing the same.
Thanks in advance.
seemaHi Seema
You can access the fields from different views by either using custom controllers or by using component controllers, in your case you can access the Sales employee BP number from the Component controller.
first access the component controller as below in BP_CONT/SalesEmployee (in do_prepare_output method) or in (specific setter method)
lv_compcontroller type ref to CL_BP_CONT_BSPWDCOMPONENT_IMPL,
lv_partner type ref to cl_crm_bol_entity,
lv_role type string,
lv_partner_no type string.
lv_employee TYPE REF TO if_bol_bo_property_access,
lv_compcontroller = me->COMP_CONTROLLER.
lv_partner ?= lv_compcontroller ->typed_context->-partner->collection_wrapper->get_current( ).
lv_role = lv_partner->get_property( iv_attr_name = 'BP_ROLE' )
IF LV_ROLE = 'SALESEMPLOYEE'
lv_partner_no ?= lv_current->get_property( iv_attr_name = 'BP_NUMBER' ).
endif.
now set the value
lv_employee ?= me->typed_context->salesemployee->collection_wrapper->get_current( )
CHECK lv_employee IS BOUND.
lv_employee->set_property( iv_attr_name = 'SALESEMPLOYEE' iv_value = lv_partner_no )
Thanks & Regards
Raj -
Help to set value of an attribute based on value selected in another field
Hi all,
I want to set the value of an attribute STRUCT.ITM_TYPE to a default value whenever i select one of the value from dropdown list in LC_STATUS.
I tried to add an event in the get_p method of the lc_status but there i cant able to access the context of the ITM_TYPE as the fields are in different views.
Please Help,
Rewards will be awarded.
NaveennHi Vineet,
Thanks for the suggestion.
Please chech my code and suggest me for any corrections.
In the Get_P_LCSTATUS method of Context Node BTADMINH in View1.
METHOD GET_P_LCSTATUS.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
rv_value = 'ACT_STATUS_SELECTED'.
ENDCASE.
ENDMETHOD.
In event handler method in Context Node BTADMINI in View2
method EH_ONACT_STATUS_SELECTED.
* Added by wizard: Handler for event 'ACT_STATUS_SELECTED'
data: lr_ent1 type ref to cl_crm_bol_entity,
lr_ent2 type ref to cl_crm_bol_entity.
lr_ent1 = me->typed_context->BTADMINH->collection_wrapper->get_current( ).
check lr_ent1 is bound.
* To Get Value of First Attribute
lv_attr1 = lr_ent1->get_property_as_string( 'LC_STATUS' ).
* To Set Value of 2nd Input Field now based upon this value
lr_ent2 = me->typed_context->BTADMINI->collection_wrapper->get_current( ).
*lr_ent2->lock( ).
lr_ent2->set_property_as_string( iv_attr_name = 'ITM.TYPE' iv_value = 'RREQ' ).
endif.
endmethod.
but during syntax check its showing error messge as BTADMINH is unknown.
2) How and where to bind the context node in custom controller.
Please help. -
Dynamic Action on tabular form: to auto set value for all changes rows
Hi All:
I am using APEX4.2.3 and I am not very familar with JQUERY or Javascript.
I am having a tabular form to support Update and Delete action. The tabular form has 4 columns:
Column A: ID (Number) : Read-only column
column B: Name (Varchar2) : Editable
Column C: Age (Number) : Editable
Column D: ChangeFlag (Varchar2) : Read-only column ==> however, I want this column been automatically upldated by my APEX application
Here is the requirement: First user update Column B, or C or both for # of rows; then user click "Save Change" button. For ALL updated rows, I need to automatically update Column D with below logic:
For a given row,
IF Column D IS NULL THEN
set value = 'M' -- M means modified
ELSE --- column D has a value already
IF last character of Column D is 'M', THEN
don't do anything;
ELSE
set value of D = existing value + 'M' (here + means concatenate
END IF;
END IF;
I thought this can be done by creating dynamic action on tabular form ... I have researched this on this forum and can't find a good match example ..
I know I can implement this using a DB trigger; however, I want to learn if this can be achived via Dynamic Action.
Thanks!
KevinHi Expert:
Anyone can offer any direction or help on this?
Thanks!
Kevin -
How to set value in combox by code
how to set value in combox by code
Dear
You can use the following code to set the values in combobox by a query
strQuery = "select ItemCode,ItemName from OITM"
oRecSet = Me.SBO_Company.GetBusinessObject(BoObjectTypes.BoRecordset)
oRecSet.DoQuery(strQuery)
oCombo = Me.oForm.Items.Item(encontrolName.colEmpType).Specific
If oRecset.Fields.Count > 0 Then
While oRecset.EoF = False
oCombo.ValidValues.Add(oRecset.Fields.Item(0).Value, oRecset.Fields.Item(1).Value)
oRecset.MoveNext()
End While
End If
Regards
Rupinder -
How to set value in selectOnemenu using binding
hi all.
i have bind htmlSelectOneMenu. it contains some value. I want to set or display a value after a process.
How to change value
i have tried using setValue method of both binding property and value property of htmlSelectOneMenu.
Same issue is with InputTextArea. how to set value in it via code(RowSelectionListener of icefaces)Balaji wrote:
hi all.
i have bind htmlSelectOneMenu. it contains some value. I want to set or display a value after a process.
How to change value
i have tried using setValue method of both binding property and value property of htmlSelectOneMenu.
Same issue is with InputTextArea. how to set value in it via code(RowSelectionListener of icefaces)The html SelectOneMenu is bound to a value of a backing bean. You have to change the value of that backing bean, not the JSF component directly. JSF takes care of updating the model, you shouldn't be touching it unless you know what you are doing. -
How to set value of a column in report region
Hi,
I have a report region based on a query.In this my first column is selectlist "select row" having to values "yes" & "No".
I have two buttons on top of the region "Check all" and "uncheck all".
My requirement is when I click check all button all rows corresponding to "select row" column gets selected to Yes and when I click No all rows gets selected to "No".
Thanks
VikramActully I want to set the value of a column in report region.
There are replies in the forum but in those the item is in form but not in the report region.
I am generating report region by using htmldb_item.selectlist and i dont know how to set value in these type of items. -
How do I add a set value to a form field calculation?
I'm creating a form where I need a set value added to the sum of other editable fields - e.g. Field A + Field B +$125 = Sum
For the addition of Field A and B I've been using the pre-set functions in Adobe X, but I'm clueless as to how to add the $125 to the sum calculation. I'm absolutely new to Java, so I'd need something I can cut and paste.
Thanks!One last question:
I have existing code for a Submit by Email form that has a subject line and message content. I'm trying to add a second email to it but can't seem to figure out how.
this.mailDoc({
bUI: false,
cTo: "[email protected]",
cSubject: "Here is my Renovation Draw Request",
cMsg: "You will find my completed Renovation Draw Request attached. I’m excited to move forward, so please contact me as soon as possible." -
How to set values in JMS Adapter using Adanced specific Message Attributes
Hi Frnds,
in my scenarios i have to add extra header information MQ Message,
using Adanced specific Message Attributes i defined 7 parameters(Transaction,Environment,shema......) all are type Interger.But i have to set values ( Transaction type,Enviroment,shema....).
Where i can set values ??
help me on this...
Regards,
Raja SekharHi Vijay,
Thanks for your replay,as per your input i creted dynamic configuration method,
i taget structure luks like this
<Data>
<Mesage>
<gl_update>
<header>
<ean1>
<ean2>
</header>
<gl_update>
<Message>
i written UDF and mapped to header element gl_update,
but i am getting below error message in MONI
SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_ ffjms_</SAP:P1>
<SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>
<SAP:P3>on: Cannot create target element /ns0:MT_jms_ _a</SAP:P3>
<SAP:P4>sync_out/Data/Message/ GLUpdate. Values missi~</SAP:P4>
<SAP:AdditionalText />
<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_ ffjms_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:MT_jms_ asyncout/Data/Message/ GLUpdate. Values missi~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
i want to know i mapped to UDF to GL_Update is is correct, to which element i have to map.
i think there is no prob with UDF,its executing ,giving warning messages
help me on this,
Regaards
Raj -
Mapping in BPM - set value of collection item
Hello,
is it possible to set value to exact item of collection in mapping step in netweaver BPM?
I need something like set(<collection_variable>,<item_index>,<item_value>) - so exact opposite of GET generic function, which gets specific item from collection.
Is it possible in NW BPM?You dont have to apologize. I didnt meant that as offend.
I appreciate the possibility to discuss that topic with somebody, because discussion itself sometimes shows other perspective to the problem, which can lead to solution
Of course I wrote EJB function to solve that - but I cant believe that it isnt standard solution to that pretty common use case.
I think, that problem lays in very limited implementation of XPath into Netweaver BPM. I will bet my left hand, that in some future SP of BPM will SAP introduce something like this:
myCollection[1]/notificationId = notificationId
which is standard XPath way to do that -
ALC-DSC-000-000 on a "Set Value" activity
I have in my form some hidden fields I want to set in the process, before user assignement. For this, I use the Set Value activity.
But when I tried to set a field of my form with a value, I got this error:
Internal error.: ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:683)
at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:688)
at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:974)
at com.adobe.workflow.datatype.CoercionUtil.toType(CoercionUtil.java:168)
at com.adobe.workflow.datatype.runtime.impl.pojo.POJODataTypeNode.getBoundValue(POJODataTypeNode.java:71)
at com.adobe.workflow.datatype.runtime.impl.xml.XMLDataTypeNode.replaceContent(XMLDataTypeNode.java:267)
at com.adobe.workflow.dom.InstanceElement.replaceContent(InstanceElement.java:241)
at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionContextImpl.java:806)
at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATExecutionContextImpl.java:374)
at com.adobe.idp.workflow.dsc.service.SetValueService.execute(SetValueService.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)
at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:153)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:342)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(EjbTransactionCMTAdapterBean.java:212)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EJSLocalStatelessEjbTransactionCMTAdapter_caf58c4f.doSupports(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvider.java:104)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInterceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStrategyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateInterceptor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:132)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:115)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:118)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:91)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:215)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:57)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.workflow.engine.PEUtil.invokeAction(PEUtil.java:724)
at com.adobe.workflow.engine.SynchronousBranch.handleInvokeAction(SynchronousBranch.java:465)
at com.adobe.workflow.engine.SynchronousBranch.execute(SynchronousBranch.java:862)
at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBean.java:2773)
at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncInvokeProcessCommand(ProcessEngineBMTBean.java:704)
at com.adobe.workflow.engine.EJSLocalStatelessadobe_ProcessEngineBMTEJB_7d3cbd67.asyncInvokeProcessCommand(Unknown Source)
at com.adobe.workflow.engine.ProcessCommandControllerBean.doOnMessage(ProcessCommandControllerBean.java:156)
at com.adobe.workflow.engine.ProcessCommandControllerBean.onMessage(ProcessCommandControllerBean.java:99)
at com.ibm.ejs.container.MessageEndpointHandler.invokeMdbMethod(MessageEndpointHandler.java:1014)
at com.ibm.ejs.container.MessageEndpointHandler.invoke(MessageEndpointHandler.java:747)
at $Proxy0.onMessage(Unknown Source)
at com.ibm.ws.sib.api.jmsra.impl.JmsJcaEndpointInvokerImpl.invokeEndpoint(JmsJcaEndpointInvokerImpl.java:201)
at com.ibm.ws.sib.ra.inbound.impl.SibRaDispatcher.dispatch(SibRaDispatcher.java:768)
at com.ibm.ws.sib.ra.inbound.impl.SibRaSingleProcessListener$SibRaWork.run(SibRaSingleProcessListener.java:584)
at com.ibm.ejs.j2c.work.WorkProxy.run(WorkProxy.java:419)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
Caused by: ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@10e410e4 of type: [B to type: interface org.w3c.dom.Document
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.adobe.idp.dsc.util.DOMUtil.parseDocumentFromString(DOMUtil.java:167)
at com.adobe.idp.dsc.util.DOMUtil.parseDocumentFromString(DOMUtil.java:129)
at com.adobe.idp.dsc.util.DOMUtil.parseDocumentFromStream(DOMUtil.java:235)
at com.adobe.idp.dsc.util.CoercionUtil.toDOMDocument(CoercionUtil.java:670)
... 54 more
It seems to be an xml parsing problem. Maybe a mistake in the xml schema of my form? For the moment, I don't see any mistake in my schema.
Any idea?Here is a screenshort of the part of my workflow:
In the mappings of the "Set Value" activity, I have one line with those properties:
Location: /process_data/bonusValidationForm/object/data/xdp/datasets/data/BonusValidationForm/buMan agerID
Expression: /process_data/currentUser/object/@userId
Where:
bonusValidationForm is a process variable of my workflow that point my xdp form
buManagerID is the textfield I want to set
currentUser is a process variable (type User) that was well setted by the task Find BU Manager -
How to get/set value in illustrator preference file using ActionScript 3.0
Hi all,
I want to get/set the flex panel components preference in illustrator preference file using ActionScript 3.0.
I tried to achieve this like --
import com.adobe.illustrator.Preferences;
var pref : Prefereneces = new Preferences();
//To set value I used this...
pref.setStringPreference("url", id1.text);
//To get value I used this..
id1.text = pref.getStringPreference("url");
i think there is prb in creating Preference variable but I am unable to resolve.
plz help.
Thanks.I am having trouble with setStringPreference. It seems to be setting the value to 0 in the Prefs file. When I first wrote the code, it was working, but something is keeping it from saving the right value now. Did you get yours working? Any ideas?
-
How to set value to Model Node of cardinality 0..N
hi
I am looking for a way to set value to a model node of cardinality 0..N
i imported a WSDL into my applicaion , which has the following Node Structure.
Context
--- ModelNode_Request
---ModelNode2_Input
---ModleNode3_Roles [ cardinality 0..n singleton 1..1]
****Model_Attribute RoleID <<<<<<<<<<<<
****Model_Attribute SysID <<<<<<<<<<<<
---ModelNode_Response
i tried with the below code but effort went in vain.
i tried following ways to set the value but , i get Nullpointer expection error.
wdContext.nodeRequest__SubmitRequest().nodeRequestDetails().nodeRoles().
currentRolesElement().setRoleId("BASIC");
wdContext.nodeRequest__SubmitRequest().nodeRequestDetails().nodeRoles().
currentRolesElement().setSysId("R3_220");
i aslo looked into the forum https://www.sdn.sap.com/irj/scn/thread?messageID=2035342 but couldnt find any solid solution.
It would be great if some one can throw some snippets on the same.
Thanks
Edited by: RR on Dec 22, 2008 5:48 PMHi RR,
As far as i know u can set model nodes and values nodes are different. whats shown in the link is for values node. u should do differently for model node..
Since this is a model node...u first need to create an object of the node type. then create an arraylist for that and then add values..
try this..
// Create an object for structures in the node to be used
Yweb_Po_Items objPOItems = null; // where Yweb_Po_Items is the structure of the node...
// Create an abstractlist for structures in the RFC node to be used, if u are planning to give single or multiple rows (in node/table) as input to the RFC
AbstractList POObjAbsList = new Yweb_Po_Items.Yweb_Po_Items_List();
objPOItems = new Yweb_Po_Items();
// /set first set of values
objPOItems.setColumn1(u201Cabcu201D); // here hard codede for example
objPOItems.setColumn2(u201Cabcfghu201D);
// add the object to the abstract list
POObjAbsList.add(objPOItems);
// /set second set of values
objPOItems.setColumn1(u201Cnewabcu201D);
objPOItems.setColumn2(u201Cnewabcfghu201D);
// add the object to the abstract list again
POObjAbsList.add(objPOItems); // now u got 2 records
// now set the abstractlist to the node in the RFC
objGoodsReceiptPO.setPo_Items_In(POObjAbsList);
Hope this information is useful...
Thanks
Md. Yusuf
Maybe you are looking for
-
[SOLVED] Login to Gnome Session fails when not online
Sry, this is weird and i don't know how to fix it. Whenever i am not online during login stage in gdm i cannot start the Gnome Shell. I get the "Oops" Screen and need to logout. All is fine when i am Online however. Even weirder: When i try to login
-
in Lion, that is!
-
Hello to eveyone. I'm new to java, and i have downloaded the j2ee 1.4 Beta and j2se.after installing the virtual machine and the sdk i didn't see any kind of IDE. it's normal or we have to adquire and install it seperatly? Sugestions are always welco
-
How long should an Ipad3 be charged?
-
Dynamically changing width of controls
hi, how to achieve dynamically changing width of controls on a webpage? For example, the width of a button should be according to the length of its caption... Thanks, Girish