How to LOOP in a LIST
Hi,
Anybody can tell me how to loop in a list to get the items in
the list.
I can't figure out the code.
for ( var i:int = 0; i < ?? ; i++) {
Alert.show (??)
Thx
Hi,
As far as my understanding of ListBoxes go. Unlike other
application s/w here you can not directly measure or calculate the
List length, there isn't any items property. But you can get the
length through the dataProvider. The dataprovider length is the
list length.
<mx:Script>
<![CDATA[
private var COLOR_ARRAY:Array=
[{label:"Red", data:"#FF0000"},
{label:"Green", data:"#00FF00"},
{label:"Blue", data:"#0000FF"}];
[Bindable]
public var colorAC:ArrayCollection = new
ArrayCollection(COLOR_ARRAY);
]]>
</mx:Script>
<mx:List dataProvider="{colorAC}" id="lstTest"/>
<mx:Button label="test"
click="Alert.show(lstTest.dataProvider.length + '');"/>
This gives length as 3...
Best :-
Paromita
Similar Messages
-
How to Loop through another list and update a column with SharePoint Designer 2013 Workflow
Hi,
I am trying to get my head around the new 2013 Workflow Engine and SharePoint Designer 2013 Workflow Text-Based Designer.
I have two lists.
List A has 2 columns: Title, Completed (Yes/No)
List B has 3 columns: Title, LookupListATitle, Completed (Yes/No)
All the 2013 Workflow components have been installed and configured and I am selecting the 2013 Workflow option in SPD
I am trying to set off a 2013 Workflow when an item in List A is edited to Loop through List B and select items where the LookupListATitle column's value is equal to the Title value of the current item, and set the value of the Completed column for those
items in ListB to "Yes".
I have the Workflow configured like this:
Stage: Stage 1
IF Current Item:Completed equals Yes
Loop: 1
The contents of this loop will run repeatedly while: ListB:LookupListATitle equals Current Item: Title
Update item in ListB.
(The dialog options for the update item action as follows:
List: ListB
Field: Completed, Value: Yes
In the Find the List Item section
Field: LookupListATitle
Value: Current Item: Title)
Transition to stage
Go to End of Workflow
When I update an item in ListA and set its Completed column to Yes, I would expect the Workflow to find all the items in List B where the Lookup column is equal to ListA's Title (there are 2) and update their Completed column to Yes. But it doesn't work.
When I look at the Workflow Status it says the Internal Status is "Canceled" and the information pop up has the following alien language (and may be truncated):
RequestorId: 95f03b62-8956-ac14-c5cf-dc98c89c589c. Details: System.ArgumentException: Invalid JSON primitive: Item001. Parameter name: value at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ConvertStringToJsonNumber(String value) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.ReadPrimitive(String
type, XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(XmlDictionaryReader jsonReader) at Microsoft.Workflow.Common.Json.JXmlToJsonValueConverter.JXMLToJsonValue(Stream jsonStream, Byte[] jsonBytes)
at Microsoft.Activities.DynamicValue.ParseJson(String json) at System.Activities.CodeActivity`1.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor
executor, BookmarkManager bookmarkManager, Location resultLocation)
Unfortunately I don't have access to the server, logs etc.
I would love to find some tutorials, or any books on SharePoint Designer 2013 in general and Workflows in particular but my searches haven't turned up much so far apart from a pre-release Beginning SharePoint Workflows which is in its very early stages and
not much help yet.
Can anyone give me some guidance on how to set up While Loops to iterate through a related list using SharePoint Designer 2013?
MarkHi,
I understand that you wanted to update the items in the other list (Participants) where the Course equals the Current Item.
You need to use “Call HTTP Web Service" action and “Build Dictionary" action to get the Maxid and then loop Participants to update the items.
You can follow the steps as below to achieve what you want:
Create a custom list named Courses, add columns: Title(Single line of text), Course ID(Single line of text), Course Finalised (Yes/No).
Create a custom list named Participants, add columns: Title(Single line of text), Course(Lookup), CourseFinalised (Yes/No).
Create workflow associated to Courses, start the workflow automatically when an item is created or changed.
Add conditions and actions:
The HTTP URL is set to
https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be order by Id and desc.
Then if Course Finalised is equal to Yes, the CourseFinalised of the associated items in Participants will be updated to Yes.
More information:
http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Text is not being displayed in sync on a label when looping through a list -- how to fix?
I have a list of states (50 states). I loop through this list (in a winform app -- VS2012) and want to display the current state ID that is being processed in the loop in the text property of a label. I precede the label.Text = StateID line with
Application.DoEvents() but I am also (in Debug mode) writing the same text to the console. The console displays correctly, but there appears to be a lag in the label.Text property
List<string> StateList = new List<string> { "al", "ak", "az","ar","ca","co","ct","de","fl","ga",...};
foreach (string stateID in StateList)
Application.DoEvents();
lblStateID.Text = "State is " + stateID; //--there is a lag here
I vaguely recollect something about a NotifyPropertyChanged event. I know this is common in WPF, but is there something similar in winform? Or is there a way to make the desired text to be displayed in the label.Text property in synchronization
with the loop?
Rich PThank you. This is way simpler than implementing the INotifyPropertyChanged Interface. Although, here is an article on the INotifyPropertyChanged Interface and event
http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged(v=vs.110).aspx
Rich P -
How to loop and read repeating table data of infoPath form in Visual studio workflow.
Hi,
I am trying to read info Path form repeating table data in Visual studio workflow.
could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
any help would be more then welcome.
Thanks...Hi Rohan,
According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
Here are some detailed articles for your reference:
Codeless submitting InfoPath repeating table to a SharePoint list
Create a Workflow using Visual Studio 2010
Best Regards
Zhengyu Guo
TechNet Community Support -
How to loop through the "On My Mac" folders in mail?
Hi there - i am new to applescript, but am slowly working out how to use it.
I am stumped on how to write a rule that will move a message to a folder identified by a tag in a message (I am using MailTags).
I have script that will take the first tag and move the message to a mail folder in a fixed location (e.g. Archive/<tag name>) however I wanted to make it more generic by looping over all of my mail folders and finding one that matched the tag name.
However I am stumped on how to loop over all of my mail folder names - I have tried:
repeat with aFolder in (every mailbox of (mailbox for "ON MY MAC"))
and
repeat with aFolder in every mailbox of inbox
etc.
but none of these seem to work.
Is there some magic syntax to do this, so that I can do:
if (name of aFolder = msgTag) then
move oneMessage to mailbox (name of aFolder)
end if
TimYou don't necessarily need to assign a variable to the entire list in order to loop through them (unless you really want to) - for example:
tell application "Mail" to repeat with aFolder in (get mailboxes)
-- do stuff with aFolder
end repeat
There are several AppleScript resources, but the main ones I use are:
AppleScript Language Guide
AppleScript Tutorials at MacScripter.net -
How can I get file list for a given directory?
Hi,
How can I get file list for a given directory? Is there a function?
Thanks.Hi friend,
Try this sample report. It displays all files in a directory.
While executing give some directory name in input. ex: C:\
Mention file type in filter parameter. ex: *.DOC
REPORT ztests.
DATA : file_table LIKE TABLE OF sdokpath WITH HEADER LINE .
DATA : dir_table LIKE TABLE OF sdokpath WITH HEADER LINE .
PARAMETERS:p_dir(50) TYPE c.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
directory = p_dir
filter = '*.DOC'
TABLES
file_table = file_table
dir_table = dir_table
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
LOOP AT file_table .
WRITE:/ file_table-pathname.
ENDLOOP.
Might be helpful...
Thanks.....
Edited by: Guest77 on Feb 11, 2009 5:30 AM -
How can I get a list of products
Hi!
How can I get a list of products via java interface? I know how to get items of product (via SBOCOMUtil.getProductTrees(company, "PcCw0001")), but which source of code list for second param?Should be sth like this (I have no chance to test Java code ):
IRecordset Src_Rec;
int i, ii;
String str2="";
try
Src_Rec= SBOCOMUtil.newRecordset(aCompany);
Src_Rec.doQuery("SELECT Code FROM OITT");
ii = Src_Rec.getRecordCount().intValue();
// could be a while-loop as well
for(i =0; i< ii;i++)
try
str2 = Src_Rec.getFields().item(new Integer(0)).getValue().toString();
Src_Rec.moveNext();
catch(Exception e)
catch(Exception e2)
HTH,
Frank -
How to create an array list of strings by using buttons?
HI, i need some guidance from you guys to help me out. How do i create a list of array whenever i click on a button it will generate a string and place it in an array row by row. if i dont click on the button it will ignore it and wont create the array. i have tried many technics such as looping and building array but it wont generate the list that i want.
Attachments:
untitled.JPG 97 KBI am not sure if I have understood your question correctly, but is the attached what you were looking for?
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Attachments:
Example.vi 12 KB
example.JPG 100 KB -
How can we find the list of user exits for a transaction
hi all
iam new in user exits please send the basic details
how can we find the list of user exit for a perticular transaction and how can we determine that a particulr user exit is used for a field
regards
jagadishhi,
check the below links for userexits
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
FAQ's
http://http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
http://www.easymarketplace.de/userexit.php
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
1. what is the defference between enhancement and user-exits?
http://www.sap-img.com/abap/difference-between-badi-and-user-exits.htm
Re: difference between user exits & customer exits
Some Questions ! Plz help...
http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1190924_tax299358,00.html?bucket=ETA
2. Difference between CMOD and SMOD?
http://www.sap-img.com/abap/what-is-the-difference-between-smod-and-cmod.htm
http://www.sap-img.com/abap.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/diff-between-cmod-and-smod-236095
http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/diff-between-cmod-and-smod-236107
check these links..
http://www.sapgenie.com/abap/tips_and_tricks.htm
http://www.sap-img.com/abap/field-exits-smod-cmod-questions-and-answers.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
passing selet-option variable to subrouine...
Finding the user-exits of a SAP transaction code
Finding the user-exits of a SAP transaction code
Enter the transaction code in which you are looking for the user-exit
and it will list you the list of user-exits in the transaction code.
Also a drill down is possible which will help you to branch to SMOD.
Written by : SAP Basis, ABAP Programming and Other IMG Stuff
http://www.sap-img.com/*
report zuserexit no standard page heading.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : tstct.
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
parameters : p_tcode like tstc-tcode obligatory.
select single * from tstc where tcode eq p_tcode.
if sy-subrc eq 0.
select single * from tadir where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir where pname = tstc-pgmna.
select single * from enlfdir where funcname =
tfdir-funcname.
select single * from tadir where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name eq enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
select * from tadir into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct where sprsl eq sy-langu and
tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
*---End of Program
if u want to find the function exit
then check the below code
REPORT ZV_FIND_EXIT NO STANDARD PAGE HEADING.
TABLES : TSTC, TADIR, MODSAPT, MODACT, TRDIR, TFDIR, ENLFDIR.
TABLES : TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE OBLIGATORY.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR WHERE FUNCNAME =
TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT = 'SMOD'
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT WHERE SPRSL EQ SY-LANGU AND
TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(95) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Exit Name',
21 SY-VLINE ,
22 'Description',
95 SY-VLINE.
WRITE:/(95) SY-ULINE.
LOOP AT JTAB.
SELECT SINGLE * FROM MODSAPT
WHERE SPRSL = SY-LANGU AND
NAME = JTAB-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 SY-VLINE,
2 JTAB-OBJ_NAME HOTSPOT ON,
21 SY-VLINE ,
22 MODSAPT-MODTEXT,
95 SY-VLINE.
ENDLOOP.
WRITE:/(95) SY-ULINE.
DESCRIBE TABLE JTAB.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , SY-TFILL.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
AT LINE-SELECTION.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
or
1. in se11, goto table MODSAP
View table contents
2. in Type field, enter 'E' (for function exit)
3. For that tcode, u should know the program name.
eg. SAPLLMOB
4. then type SAPLLMOB and execute
or
REPORT z34331_user_exit .
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
Regards,
Naveen -
How to append the data list bod (JList)
how to append the data list box (JList)
Message was edited by:
raju_2reddyFor this you will need a nested internal table. such that each column of the internal table should be declared as another internal table.
Try something like this :
" Lets say that the type of table that will be returned by the function BOM is ty_ret_tab, then declare as follows
types begin of ty_tab,
c1 type table of ty_ret_tab,
c2 type table of ty_ret_tab,
end of ty_tab.
data gt_tab type standard table of ty_tab,
gwa_tab like ty_tab.
Now the question is how many columns should you declare ? Because you said that in a loop you intend to call a function which will return a internal table and this internal table you need to store in a column of another internal table. And if this is not fixed, you would need to do some dynamic programming to achieve this.
But if we assume that there are fixed number of columns and fixed number of loops, then within the loop, you wiill have to simply move the data from the returned table to each of the columns. Then append the work area outside the loop.
data field(30) type c.
data c_tabix(10) type c.
field-symbols <fs> type ret_tab. " this should be
Loop at itab.
call function BOM...
exporting...
importing.....
tables ret_itab.
c_tabix = sy-tabix.
concatenate 'C' c_tabix into field.
condense field.
assign component (field) of structure gwa_tab to <fs>.
<fs> = ret_tab. " Pass data to each column
endloop.
append gwa_tab to gt_tab. " Now a single record with all columns containing an internal table is built.
Hope this pseudo code helps.
BR,
Advait -
How do I get the list index for the selected list item
How can I obtain the list index for the currently selected
element in a list item? I'm trying to move the label and value
from on list box to another by using the add_list_element built-
in and it requires the list index.
Thanks for your help...Hi,
You can`t get the Index for the selected item..
you can get the Value of then Tlist using :Block.ListName .
maybe theis code will help you..
PROCEDURE pr_PasarElementos(ls_Origen varchar2, ls_destino varchar2, cValor varchar2 default null) IS
nCont_Orig number := 0;
nCont_Dest number := 0;
begin
nCont_Orig := GET_LIST_ELEMENT_COUNT(ls_Origen); nCont_Dest := GET_LIST_ELEMENT_COUNT(ls_destino);
Add_List_Element(ls_destino,nCont_Dest+1,cValor,cValor);
for rec_Orig in 1..nCont_Orig loop
if GET_LIST_ELEMENT_VALUE(ls_Origen,rec_Orig) = cValor then
delete_list_element(ls_Origen,rec_Orig);
end if;
end loop;
end;
you can call the procedure with :
pr_pasarElementos('control.ls_activos','control.ls_inactivos',:CONTROL.ls_activos);
here I`m working with the Value equal to the Label... you would need to look for the Label of the origin (ls_Origen) list using the Value (cValor) you already have.
I hope this help you. -
How to iterate Cascading Object List?
Hi All,
I faced an issue when iterate a List like below,
class Program
private List<Question> questionList = new List<Question>();
// Add serveral questions in questionList.
static void Main(string[] args)
// Currently, I got a Question instance. and I will loop in questionList. Since as you can see, the Question Object is a Cascading object.
// How to Loop the question the Question List.
public class Question
public List<Question> Questions { get; set; }
public string Title { get; set; }
public string Score { get; set; }
Thanks a lot.Hi All,
Sorry for my bad English. I am not a native English Speaker. What I want to do is remove the item in the Question list.
List<Question> QuestionList = new List<Question>();
Question Q11 = new Question()
Title = "1.1",
Score = 5,
Question Q12 = new Question()
Title = "1.2",
Score = 5,
Question Q13 = new Question()
Title = "1.3",
Score = 5,
List<Question> Q13List = new List<Question>();
Question Q131 = new Question()
Title = "1.3.1",
Score = 5,
Question Q132 = new Question()
Title = "1.3.2",
Score = 5,
List<Question> Q132List = new List<Question>();
Question Q1321 = new Question()
Title = "1.3.2.1",
Score = 5,
Question Q1322 = new Question()
Title = "1.3.2.2",
Score = 5,
Question Q1323 = new Question()
Title = "1.3.2.3",
Score = 5,
Q132.Questions = Q132List;
Q13List.Add(Q131);
Q13List.Add(Q132);
Q13.Questions = Q13List;
List<Question> Q1List = new List<Question>();
Q1List.Add(Q11);
Q1List.Add(Q12);
Q1List.Add(Q13);
Question Q1 = new Question()
Title = "First One",
Score = 25,
Questions = Q1List,
Question Q2 = new Question()
Title = "Second",
Score = 25,
Question Q3 = new Question()
Title = "Third",
Score = 25,
QuestionList.Add(Q1);
QuestionList.Add(Q2);
QuestionList.Add(Q3);
// The question need delete in Question List. How should I found the Question in the QuestionList.
Question needDeleteQuestion = new Question()
Title = "1.3.2",
Score = 5,
Thank you very much guys for your help. -
How to find out the list of DCs changed in the MSS 600 Support PackageXX
Hi
We are trying to instal patches from "MSS 600 support package 07" to "MSS 600 support package 17" at the same time we have 4 custom DCs in place.
Our custom DCs have dependencies in MSS standard DCs.
Question is how do we know the list ot DC changed/modified in suport package XX ?
Is there a description of DCs changed in the support package? Or is there a description on SC level so we could trace it
GRANT POINTS!!!
Thanks
DenisPapaden- Please use metadata comparision tool to find the changes in webdynpro DCs.
http://help.sap.com/saphelp_nw70/helpdata/en/6e/0e184188b4f16fe10000000a1550b0/frameset.htm
Thanks,
Raj -
How to loop at these 2 itabs?
Hi Champs,
In the mycontext tab, i am looping at two internal tables based on where condition. I need to filter data from my 2nd int table and put it out on the form. But somehow i am not bale to check the condition and as a a result i could see all the records of 2nd itab in one shot.
Can someone help me how to loop at these 2 tables?
thanks
DanyHi Champs,
In the mycontext tab, i am looping at two internal tables based on where condition. I need to filter data from my 2nd int table and put it out on the form. But somehow i am not bale to check the condition and as a a result i could see all the records of 2nd itab in one shot.
Can someone help me how to loop at these 2 tables?
thanks
Dany -
How do I clear a list of usernames which is automatically offered when I login to a site.
For example, if I want to sign into gmail, it asks for the username. As soon as I type in the first letter, it gives me a selection which it stored. Once I made a mistake and typed my password in there which also begins with the same letter. How do I clear the list? Actually, how can I set Firefox so that it doesn't automatically store that information.
Password Manager deals only with passwords. The problem described above is about the User Name. I tried the Shift+Delete tactic, and it worked! Be sure to follow instructions in the link provided in the solution: http://kb.mozillazine.org/Deleting_autocomplete_entries
Maybe you are looking for
-
Unable to Access SQL Server 2005 Remotedly
Not sure if this is the right forum to post this... After going through lot of old posts in various forums and changing lot of settings, i'm still not able to access my Server remotely. This is Windows 2003 Server machine with Sonicwall Firewall, i h
-
HP Laserjet 1200 printing envelopes wrong
No answer over at HP's boards, so I'll try here. No matter if I'm printing from Word or Appleworks, envelopes print incorrectly on my HP Laserjet 1200. I feed the envelope through the guides and it comes out too far down. I did a test print on a full
-
My Apple TV (2) works fine with my iPad and iPhone. My iTunes syncs with my iPad and iPhone. I have turned "Home Sharing" off and on multiple times - of course using the same AppleID - and NOTHING shows up under Shared (and then Shared goes away) and
-
When publishing characters get bad quality
Hi! I'm trying to use Captivate 6 characters, but, when I watch the slides in the editing version, it's OK, when I try to preview or publish them, they get a very bad quality. Can you help me, please Thanks, Mariana
-
Appleworks putting text and photo in an email
I am a new jack to the Mac world. I have been trying to place a saved online photo within the body text of an email I wish to send out. So that the photo appears within the body text of the email when opened. I do not want to send the picture as an a