Assigning values to array in soa 10.1.3
Dear team,
I am working on soa10.1.3 server. we have a complex element of string array.we created a varaible of that element. In while loop we need to pass values to array elements.How can we do that..we tried with indexvaraible..but getting error.
Regards,
Radha
schema is
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/BPELProcess4"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="BPELProcess4ProcessRequest">
<complexType>
<sequence>
<element name="input" type="string"/>
</sequence>
</complexType>
</element>
<element name="BPELProcess4ProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
<element name="element5">
<complexType>
<sequence>
<element name="result" minOccurs="0" maxOccurs="unbounded"
type="string"/>
</sequence>
</complexType>
</element>
</schema>
wdsl is
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="BPELProcess4"
targetNamespace="http://xmlns.oracle.com/BPELProcess4"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:client="http://xmlns.oracle.com/BPELProcess4"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TYPE DEFINITION - List of services participating in this BPEL process
The default output of the BPEL designer uses strings as input and
output to the BPEL Process. But you can define or import any XML
Schema type and use them as part of the message types.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xmlns.oracle.com/BPELProcess4" schemaLocation="BPELProcess4.xsd" />
</schema>
</types>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MESSAGE TYPE DEFINITION - Definition of the message types used as
part of the port type defintions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<message name="BPELProcess4RequestMessage">
<part name="payload" element="client:BPELProcess4ProcessRequest"/>
</message>
<message name="BPELProcess4ResponseMessage">
<part name="payload" element="client:BPELProcess4ProcessResponse"/>
</message>
<message name="BPELProcessMessage">
<part name="payload" element="client:element5"/>
</message>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PORT TYPE DEFINITION - A port type groups a set of operations into
a logical service unit.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<!-- portType implemented by the BPELProcess4 BPEL process -->
<portType name="BPELProcess4">
<operation name="initiate">
<input message="client:BPELProcess4RequestMessage"/>
</operation>
</portType>
<!-- portType implemented by the requester of BPELProcess4 BPEL process
for asynchronous callback purposes
-->
<portType name="BPELProcess4Callback">
<operation name="onResult">
<input message="client:BPELProcess4ResponseMessage"/>
</operation>
</portType>
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PARTNER LINK TYPE DEFINITION
the BPELProcess4 partnerLinkType binds the provider and
requester portType into an asynchronous conversation.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<plnk:partnerLinkType name="BPELProcess4">
<plnk:role name="BPELProcess4Provider">
<plnk:portType name="client:BPELProcess4"/>
</plnk:role>
<plnk:role name="BPELProcess4Requester">
<plnk:portType name="client:BPELProcess4Callback"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions>
bpel file is
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
Oracle JDeveloper BPEL Designer
Created: Fri Aug 27 10:01:38 IST 2010
Author: ruck
Purpose: Asynchronous BPEL Process
-->
<process name="BPELProcess4"
targetNamespace="http://xmlns.oracle.com/BPELProcess4"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:ns4="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:ns1="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns3="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:ns2="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:client="http://xmlns.oracle.com/BPELProcess4"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<!--
PARTNERLINKS
List of services participating in this BPEL process
-->
<partnerLinks>
<!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="client" partnerLinkType="client:BPELProcess4"
myRole="BPELProcess4Provider"
partnerRole="BPELProcess4Requester"/>
</partnerLinks>
<!--
VARIABLES
List of messages and XML documents used within this BPEL process
-->
<variables>
<!-- Reference to the message passed as input during initiation -->
<variable name="inputVariable"
messageType="client:BPELProcess4RequestMessage"/>
<!-- Reference to the message that will be sent back to the requester during callback -->
<variable name="outputVariable"
messageType="client:BPELProcess4ResponseMessage"/>
<variable name="elementMessage"
messageType="client:BPELProcessMessage"/>
<variable name="count" type="xsd:int"/>
</variables>
<!--
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
-->
<sequence name="main">
<!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess4.wsdl) -->
<receive name="receiveInput" partnerLink="client"
portType="client:BPELProcess4" operation="initiate"
variable="inputVariable" createInstance="yes"/>
<!--
Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
-->
<assign name="Assign_1">
<copy>
<from expression="number(1)"/>
<to variable="count"/>
</copy>
</assign>
<while name="While_1"
condition="bpws:getVariableData('count') <= number(5)">
<assign name="Assign_2">
<copy>
<from expression="'value'"/>
<to variable="elementMessage" part="payload"
query="/client:element5/client:result[bpws:getVariableData('count')]"/>
</copy>
<copy>
<from expression="bpws:getVariableData('count')+number(1)"/>
<to variable="count"/>
</copy>
</assign>
</while>
<invoke name="callbackClient" partnerLink="client"
portType="client:BPELProcess4Callback" operation="onResult"
inputVariable="outputVariable"/>
</sequence>
</process>
For the count 1 code is working fine.. for count=2 thrwoing exception
<while>
Assign_2
[2010/08/27 10:23:20] Updated variable "elementMessage" less
-<elementMessage>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="payload">
-<element5 xmlns="http://xmlns.oracle.com/BPELProcess4">
<result>value
</result>
</element5>
</part>
</elementMessage>
[2010/08/27 10:23:20] Updated variable "count" More...
<count>2
</count>
Assign_2
[2010/08/27 10:23:20] Error in <assign> expression: <to> value is empty at line "86". The XPath expression : "" returns zero node, when applied to document shown below: More...
[2010/08/27 10:23:20] "{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure" has been thrown. More...
</while>
</sequence>
[2010/08/27 10:23:20] "BPELFault" has not been caught by a catch block.
[2010/08/27 10:23:20] There is a system exception while performing the BPEL instance, the reason is "faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} messageType: {} parts: {{summary=XPath query string returns zero node. According to BPEL4WS spec 1.1 section 14.3, The assign activity <to> part query should not return zero node. Please check the BPEL source at line number "86" and verify the <to> part xpath query. Possible reasons behind this problems are: some xml elements/attributes are optional or the xml data is invalid according to XML Schema. To verify whether XML data received by a process is valid, user can turn on validateXML switch at the domain administration page. }} ". Please check the error log file for more infromation. Please try to use bpel fault handlers to catch the faults in your bpel process. If this is a system exception, please report this to your system administrator. Administrator could perform manual recovery of the instance from last non-idempotent activity or dehydration point. More...
[2010/08/27 10:23:20] BPEL process instance #"60002" cancelled
Similar Messages
-
Assigning value to array type variable in a loop
Hi
I have a scenario in which i am assigning value from a array type variable(x) to the invoke variable of a database adapter. The variable x is exact replica of the invoke variable.
My copy operation in assign activity looks like this-
<copy>
<from variable="Var" part="InputParameters"
query="/ns7:InputParameters"/>
<to variable="Invoke_call_XXDPI_EDI_852_PKG_InputVariable"
part="InputParameters"
query="/ns7:InputParameters *(* bpws:getVariableData('iterator') *)* "/>
</copy>
It is inside a while loop activity.
PS *()* are square brackets
But it is erroring out at run time.
Does anybody has an alternate idea to assign value to an array type?.
i have seen that while extracting value from an array type variable it works fine
A similar kind of operation is shown below.
<copy>
<from variable="Var" part="InputParameters"
query="/ns7:InputParameters *(* bpws:getVariableData('iterator') *)* "/>
<to variable="Invoke_call_XXDPI_EDI_852_PKG_InputVariable"
part="InputParameters"
query="/ns7:InputParameters"/>
</copy>
Thanks
Ayush
Edited by: Ayush fujitsu on Aug 14, 2009 4:36 AMHi Ayush
I suppose you are getting some error like "source node returns multiple elements".
In second case there is no problem because you are assigning *InputParameters[bpws:getVariableData('iterator')]* (+suppose InputParameters[1]+) to target. Here it works fine because you are fetching oonly 1 value from source and assigning it to the target.
Now in first case you are saying copy InputParameters to target[1] suppose. You know that source is an array which contains multiple index so which index field from the source will be assigned to the target.
Try your process with only 1 source value it will work but when multiple values will be there it will fail. You have to merge both the cases and it will look like
*<copy>*
*<from variable="Var" part="InputParameters"*
query="/ns7:InputParameters ( bpws:getVariableData('iterator') ) "/>
*<to variable="Invoke_call_XXDPI_EDI_852_PKG_InputVariable"*
part="InputParameters"
query="/ns7:InputParameters ( bpws:getVariableData('iterator') ) "/>
*</copy>*
And the easiest way to do this is by the transform activity as said above.
Regards
Suryaveer
Edited by: Suryaveer on Aug 15, 2009 11:19 PM -
Error while assigning values to Array using Copy operation
Hi,
I am using the following code to copy a string value 'Text' and 'UDFTypeTitle' to the 1st and 2nd position of an array:-
<assign name="Assign1">
<copy>
<from expression="string('Text')"/>
<to variable="Invoke1_ReadUDFValues_InputVariable" part="params"
query="/ns1:ReadUDFValues/ns1:Field[position()=1]"/>
</copy>
<copy>
<from expression="string('UDFTypeTitle')"/>
<to variable="Invoke1_ReadUDFValues_InputVariable" part="params"
query="/ns1:ReadUDFValues/ns1:Field[position()=2]"/>
</copy>
</assign>
I am getting the following error for the 2nd copy:-
XPath query string returns zero node.
The assign activity of the to node query is returning zero node.
Either the to node data or the xpath query in the to node was invalid.
According to BPEL4WS spec 1.1 section 14.3, verify the to node value at line number 103 in the BPEL source
If I am removing the 2nd copy I am not getting any error.
The structure of ns1:*ReadUDFValues* is as follows:-
- <xsd:complexType name="ReadUDFValues">
- <xsd:sequence>
<xsd:element maxOccurs="unbounded" name="Field" type="tns:UDFValueFieldType" />
<xsd:element minOccurs="0" name="Filter" type="xsd:string" />
<xsd:element minOccurs="0" name="OrderBy" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
The structure of ns1:ReadUDFValues/ns1:*Field* is as follows:-
xsd:simpleType name="UDFValueFieldType">
- <xsd:restriction base="xsd:string">
<xsd:enumeration value="CodeValue" />
<xsd:enumeration value="ConditionalIndicator" />
<xsd:enumeration value="Cost" />
<xsd:enumeration value="CreateDate" />
<xsd:enumeration value="CreateUser" />
<xsd:enumeration value="Description" />
<xsd:enumeration value="Double" />
<xsd:enumeration value="FinishDate" />
<xsd:enumeration value="ForeignObjectId" />
<xsd:enumeration value="Indicator" />
<xsd:enumeration value="Integer" />
<xsd:enumeration value="IsBaseline" />
<xsd:enumeration value="IsTemplate" />
<xsd:enumeration value="IsUDFTypeCalculated" />
<xsd:enumeration value="IsUDFTypeConditional" />
<xsd:enumeration value="LastUpdateDate" />
<xsd:enumeration value="LastUpdateUser" />
<xsd:enumeration value="ProjectObjectId" />
<xsd:enumeration value="StartDate" />
<xsd:enumeration value="Text"/>
<xsd:enumeration value="UDFCodeObjectId" />
<xsd:enumeration value="UDFTypeDataType" />
<xsd:enumeration value="UDFTypeObjectId" />
<xsd:enumeration value="UDFTypeSubjectArea" />
<xsd:enumeration value="UDFTypeTitle"/>
</xsd:restriction>
</xsd:simpleType>
Could you please suggest a solution?
I also tried with position 0, 1 . still the same error.
Regards,
SamHi Naresh,
The structure of ReadUDFValues is as follows:-
- <xsd:complexType name="ReadUDFValues">
- <xsd:sequence>
<xsd:element maxOccurs="unbounded" name="Field" type="tns:UDFValueFieldType" />
<xsd:element minOccurs="0" name="Filter" type="xsd:string" />
<xsd:element minOccurs="0" name="OrderBy" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
The structure of ns1:ReadUDFValues/ns1:Field is as follows:-
xsd:simpleType name="UDFValueFieldType">
- <xsd:restriction base="xsd:string">
<xsd:enumeration value="CodeValue" />
<xsd:enumeration value="ConditionalIndicator" />
<xsd:enumeration value="Cost" />
<xsd:enumeration value="CreateDate" />
<xsd:enumeration value="CreateUser" />
<xsd:enumeration value="Description" />
<xsd:enumeration value="Double" />
<xsd:enumeration value="FinishDate" />
<xsd:enumeration value="ForeignObjectId" />
<xsd:enumeration value="Indicator" />
<xsd:enumeration value="Integer" />
<xsd:enumeration value="IsBaseline" />
<xsd:enumeration value="IsTemplate" />
<xsd:enumeration value="IsUDFTypeCalculated" />
<xsd:enumeration value="IsUDFTypeConditional" />
<xsd:enumeration value="LastUpdateDate" />
<xsd:enumeration value="LastUpdateUser" />
<xsd:enumeration value="ProjectObjectId" />
<xsd:enumeration value="StartDate" />
<xsd:enumeration value="Text"/>
<xsd:enumeration value="UDFCodeObjectId" />
<xsd:enumeration value="UDFTypeDataType" />
<xsd:enumeration value="UDFTypeObjectId" />
<xsd:enumeration value="UDFTypeSubjectArea" />
<xsd:enumeration value="UDFTypeTitle"/>
</xsd:restriction>
</xsd:simpleType> -
Assigning value to a two dimensional array
Hi,
I am trying to assign value to a two dimesional array the following way.
String [ ] [ ] d2D = new String [10] [ ];
for (int i = 0; i<obj.length; i++){
d2D = { "hello " + i, "here" , "we go" };
but it gives me the error "illegal start of expression " pointing to the line in the loop assigning values to d2D[i].
Any help would be deeply appreciated.You need to use the syntax for creating an anonymous array: new String[] {..., ...}
String [ ] [ ] d2D = new String [10] [ ];
for (int i = 0; i<obj.length; i++){
d2D[ i ] = new String[] { "hello " + i, "here" , "we go" };
} -
How to assign values for boolean array in LabVIEW?
I want assign values for boolean array.Iam not able to do that.For each boolen i want to assign each value.Plz help me......
Please Mark the solution as accepted if your problem is solved and donate kudoes
Solved!
Go to Solution.Hi agar,
values in an array are "assigned" by building an array (using BuildArray) or by replacing values in an existing array (ReplaceArraySubset)!
Good starting point could be this...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Assign values from one array to another
Hi, I am trying to solve a problem that asks that I assign values in the array that is input, which meet a certain criteria, into another array. isFunny will determine if a given integer is funny, countFunnies will determine how many integers in the given array are funny or not. collectFunnies should assign elements from the first array that are funny into the new array. Please take a look at the code, I am at a loss, everything looks good to me.
public class BatchOne
public boolean isFunny(int x) {
if (x%2 == 0) {return true;}
else {return false;}
public int countFunnies(int[] a) {
int count = 0;
for (int funCheck :a) {
if(isFunny(funCheck)) {
count++;
return count;
public int[] collectFunnies(int[] a) {
int count = 0;
int i = 0;
for (int funCheck :a) {
if(isFunny(funCheck)) {
count++;
int[] array = new int[count];
for (int funCheck : a) {
if(isFunny(funCheck)) {
array[i] = funCheck;
i++;
return array;
Thanks,
TOk, I am new to programming and posting so likely need some refinement to my posts.
I am using BlueJ to write my code, the above posted is my entire code. It is compiling correctly but when I run, the return was giving me back something strange, I am not sure if I can post a screenshot because it would be hard to explain.
However, upon further review, it seems that there are some intricacies with BlueJ that I am obviously not used to, because when I select to inspect the return, the program seems to be returning an array of values that is in line with my intended goal.
Thank you for your guidance in terms of how to use the forums.
T -
Need help assigning values to an array of Strings
why do i get an error message saying this isn't a statement?
String customer[z] = {"::" + s1 + ":" + s2 + ":" + s3};
what is the correct syntax for assigning values to an array of strings?help helpArrays in Java are static, meaning their size cannot change once they've been created. Somewhere in your code you need to declare the String array like this,
String[] costumer = new String[10];Now customer has 10 elements (room for 10 strings) and you can do for example this,
int z = 0;
costumer[z] = "string1" + "string2";This means the two strings are added and assigned to element 0 of the array.
If you can't take it from here you need to step back for a while and carefully study a beginners textbook on Java. -
Assign value to a record in a loop?
I have the record as following:
TYPE Curr_Select_Rec IS RECORD
ser_date date,
blk_route varchar210)
p_select Curr_Select_Rec;
How do I assign value to it in a loop?
I know I can do this
p_select.blk_route := 'aaaa';
but in the loop
Loop
How??????
end loop;
NEXT, LAST, FIRST Did not work
nullHi,
here a little package I wrote to select a table into a plsql_table and to work with the pl/sql table .
Package STIL_utils
IS
type r_export_tags is record
(bezeichnung stilvorlagen.bezeichnung%TYPE,
start_tag stilvorlagen.text_beginn%TYPE,
end_tag stilvorlagen.text_ende%TYPE);
type t_export_tags is table of r_export_tags
index by binary_integer;
procedure fill_tag_table(p_export_tags in out t_export_Tags,
p_export_typ in varchar2);
procedure show_tag_table(p_export_tags in t_export_Tags);
procedure find_tag(p_export_tags in out t_export_tags,
p_export_typ in varchar2,
p_tag_typ in varchar2,
p_start_tag in out stilvorlagen.text_beginn%TYPE,
p_end_tag in out stilvorlagen.text_ende%TYPE);
END; -- Package Specification UTL_STIL
Package Body STIL_utils
IS
-- Stilvorlagen Array
procedure show_tag_table(p_export_tags in t_export_tags)
is
v_index number;
v_index_last number;
begin
v_index := p_export_tags.first;
v_index_last := p_export_tags.last;
loop
dbms_output.put_line(p_export_Tags(v_index).bezeichnung);
dbms_output.put_line(p_export_Tags(v_index).start_tag);
dbms_output.put_line(p_export_Tags(v_index).end_tag);
exit when v_index = v_index_last;
v_index := p_export_Tags.next(v_index);
end loop;
end;
procedure fill_tag_table(p_export_tags in out t_export_Tags,
p_export_typ in varchar2)
is
cursor tags is
select bezeichnung,text_beginn,text_ende
from stilvorlagen
where bezeichnung like p_export_typ| |'_%'
and loesch_kz is null;
v_count number := 0;
--Prozedur zur Ermittlung welche Tags verwendet werden sollen.
-- Aus der Tabelle Stilvorlagen wird ein Array mit den Start und
--Ende Tags des entsprechenden Export Typs gef|llt.
begin
for rec in tags
loop
p_export_tags(v_count).bezeichnung := rec.bezeichnung;
p_export_tags(v_count).start_tag := rec.text_beginn;
p_export_tags(v_count).end_tag := rec.text_ende;
v_count := v_count + 1;
end loop;
--show_tag_table(p_export_tags);
end;
procedure find_tag(p_export_tags in out t_export_tags,
p_export_typ in varchar2,
p_tag_typ in varchar2,
p_start_tag in out stilvorlagen.text_beginn%TYPE,
p_end_tag in out stilvorlagen.text_ende%TYPE)
is
v_index number;
v_index_last number;
v_bezeichnung stilvorlagen.bezeichnung%TYPE;
begin
v_index := p_export_tags.first; --Arrayindex setzen
v_index_last := p_export_Tags.last; --Abbruchkriterium ermitteln
p_start_tag := null;
p_end_tag := null;
loop
v_bezeichnung := p_export_tags(v_index).bezeichnung;
-- Ist das der richtige Tag?
if v_bezeichnung = p_export_typ| |'_'| |p_tag_typ then
p_start_Tag := p_export_tags(v_index).start_Tag;
p_end_Tag := p_export_tags(v_index).end_Tag;
-- Tag gefunden also raus
exit;
else
-- Wenn alle getestet, dann raus
exit when v_index = v_index_last;
-- Ndchstes Feld aus Array
v_index := p_export_Tags.next(v_index);
end if;
end loop;
end;
END; -- Package Body UTL_STIL
Hope that helps
Detlev
null -
Assign values dynamically to radio button
I am creating an online test. I will need to display answer choices from the table. I created radio buttons for these answer choices and I could put the labels dynamically by using
Set_Radio_Button_Property('block_name.radio_group_name', 'radio_button1',LABEL,cursor_name.field_name);
Now I have problem to set radio button values dynamically. Should I use when_radio_changed event?
Any help would be appreciated.I really appreciate your help.
My intention is to display the test on the screen.
That means I need to display all questions and answer
choices for each one dynamically. Based on the answer
choice type (radio button or checkbox or drop down
etc) I will need to assign the values to them and
display on the screen. So far I could display
questions and answer choices on the screen and set
the label property for each radio button.
Do you know what is the syntax to assign value to
each radio button? First I will need to store user's
answers in a table. For that I need to know what
answer they selected. I wasn't sure how to do that.
ThanksAs I said, the values cannot be assigned dynamically. Thus you will store the answers in code (perhaps in an array?) and your radio buttons will be 1,2,3,4 etc.
In WHEN-RADIO-CHANGED you can retrieve the value from the array using the radio button value. Then store that value.
e.g. Your screen shows
What is the sound of one hand clapping?
o Blue
o Yes
o 12
These labels will be set dynamically, but the values for the radio buttons will be 1,2,3. If they pick "Yes", your radio button will be 2. You then get the value you really want from answer_array(2), where you put it when you retrieved the question details. Then you insert that into your users_answers table. -
Assigning values dynamically to drop down
Hi,
I have drop down for which i have to assign values dynamically, I am getting values as a form of Array list.Hi Venki,
Say your ArrayList is al . Create a value attribute under the root node. Say test. Bind this test to the DropdownByKey UI element. You can populate test attribute like this.
IWDAttributeInfo attributeInfo =
wdContext.getNodeInfo().getAttribute(IPrivate<viewname>View.IContextElement.TEST);
ISimpleTypeModifiable valuesType =
attributeInfo.getModifiableSimpleType();
IModifiableSimpleValueSet VS=
valuesType.getSVServices().getModifiableSimpleValueSet();
for (int i = 0; i < al.size(); i++) {
VS.put(al.get(i),""+al.get(i));
Regards
Siva -
Assigning java script array to java array..
hi,
can anyone tell me how to assign java script array to a java array which is bean.var input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", "bla..bla");
input.setAttribute("value", "bla..bla");And in addition to that.. Google is still alive -
BP Transaction : Assign values to fields upon selection of BP role ?
Hi All,
I want to assign values to Grouping and Account Group fields in BP transaction in CRM.
Is there any BADI or Userexit to achive the same. If possible kindly explain the steps to be implemented to use the BADI.
Thanks & Regards,
Navneeth K.Hi Navneeth,
There are 2 ways to approach this :
1. You can create an application transaction for the standard transaction BP. This will open the transaction in whichever role you require, default a groupng, and allow you to control some other initializaittion parameters. This is very similar the transaction variant mentioned above by Adil.
You can explore 'Application Transactions' through SPRO->Cross Application>SAP Business Partner-> Business Partner> BAsic Settings>Business Partner Roles>Define Application Transactions.
2. To default grouping , you can use BADI BUPA_NUMBER_GROUP. THe BADI will receive the list of groupings that will be shown in the dropdown .Write the implementation so as to remove unwanted groupins and keep only the number groupig you wish to default.
Hope this helps.
Cheers,
Rishu. -
Can we assign value to a variable in PL/SQL Loop
Hi
Can we assign value to a variable in PL/SQL Loops?
DECLARE
V_Num NUMBER;
BEGIN
LOOP
V_Num := 10;
DBMS_OUTPUT.put_line(V_num);
V_Num := V_Num - 1;
EXIT WHEN V_Num = 0;
END LOOP;
END;
In the above program, Can we assign V_num with a value 10????????
Thanks & Regards,
Hari Babu
Edited by: 1004977 on Jun 5, 2013 2:40 AMHi,
1004977 wrote:
Hi
Can we assign value to a variable in PL/SQL Loops?
DECLARE
V_Num NUMBER;
BEGIN
LOOP
V_Num := 10;
DBMS_OUTPUT.put_line(V_num);
V_Num := V_Num - 1;
EXIT WHEN V_Num = 0;
END LOOP;
END;
In the above program, Can we assign V_num with a value 10????????Yes; the example you posted does that.
When the loop starts, the value 10 is assigned to v_num. You should see that value displayed by the put_line statement.
After that, v_num is set to 10 - 1 = 9.
Next, the EXIT condition is evaluated. At this point, v_num is 9, not 0, so the loop runs again. V_num is set to 10 again, and the loop continues forever (or, in some versions, until the dbms_output buffer is filled and an error occurs.) -
How can i assign value to the certain field in dynmic table ?
i have created a dynmic table .now i want to assign value to the certain field,how can i do that?
for eg,
<dyn_table> contains fields of name age ,now i want assign 'jack' to this internal talbe's field name ,Hi,
try this:
FIELD-SYMBOLS: <GT_ITAB> TYPE TABLE,
<GS_ITAB>,
<FS>, <FS1>.
DATA: GT_DATA TYPE REF TO DATA.
DATA: GS_DATA TYPE REF TO DATA.
START-OF-SELECTION.
CREATE DATA GT_DATA TYPE TABLE OF PA0002.
ASSIGN GT_DATA->* TO <GT_ITAB>.
CREATE DATA GS_DATA LIKE LINE OF <GT_ITAB>.
ASSIGN GS_DATA->* TO <GS_ITAB>.
ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Smith'.
ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Paul'.
APPEND <GS_ITAB> TO <GT_ITAB>.
ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Jones'.
ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS>.
<FS> = 'Martin'.
APPEND <GS_ITAB> TO <GT_ITAB>.
LOOP AT <GT_ITAB> INTO <GS_ITAB>.
ASSIGN COMPONENT 'NACHN' OF STRUCTURE <GS_ITAB> TO <FS>.
ASSIGN COMPONENT 'VORNA' OF STRUCTURE <GS_ITAB> TO <FS1>.
WRITE: / <FS>, <FS1>.
ENDLOOP.
Regards, Dieter -
Dynamically assign value to a column in ALV LIST Display
Hi all,
How can I dynamically assign value to a column in ALV LIST Display without using classes and methods?
Thanks,
RidhimaHi Vikranth,
I am displaying one ALV list say with columns A and B.
I have value in A but not in B. Now at runtime user selects one row, clicks on push button in application toolbar, then i have to display value in column B in the already displayed list.
I searched and came to know it can be done with oops concept. but i am not using classes and methods.
so how can i do this?
Thanks,
Ridhima.
Maybe you are looking for
-
Airport refuses to connect to wireless router... most of the time
I'm having a really odd problem with my MacBook Pro trying to connect to the internet via my wireless ZyXEL router. I've had the router for a while and use it to connect a Mac Pro and PC by LAN and a Wii and iPhone wirelessly and It's never given me
-
Performance Issue with the Query urgent
is there any way to get the data for the material Rejected with Movement type 122 & 123 except MSEG table, as my report is very slow... my query is as below : - SELECT SUM( a~dmbtr )INTO value1 FROM mseg AS a INNER JOIN mkpf AS b ON ambl
-
Opera mini crashes when scrolling
ANYONE ELSE HAVE AN ISSUE WITH OPERA MINI CRASHING WHEN SCROLLING? ANY FIX SUGGESTIONS? SEESM TO EFFECT THE 5800 TO. CesarCesar LOVE my 5700 ExpressMusic, HATED my N97, Salivating for a N900 Like my post? Kudo me Please!
-
The action file print causes PS CS5 to hang, stop responding
The action file print causes PS CS5 to hang, stop responding Its installed on a Win 7 64 bit PC i7 with 6G ram PS is version 12.0.4 64 bit The print dialouge box does come up eventualy around 10 mins later (some times). While waiting PS is totaly d
-
When trying to get to any site that uses Java Script the following pops up . . . [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location