Getting all values from a queue
Hi all,
I have a queue as follows:
[123] - intital Context
[sollinger Str]
[123] - CC
[Solinger Str]
[123] - Final context
An image of the queue looks as follows:
[http://i42.tinypic.com/hsj052.jpg]
Iam getting this queue in a userdefined function. I want to get or copy all the values from this queue to a new array as follows without any contexts.
That is, I want to have a queue as follows from the above queue.
[123]
[sollinger Str]
[123]
[Solinger Str]
[123]
How could that be done...
Thanks
P
Hi guys...thanks 1 more thing
If My inbound queue "a" is as follows:
SUPRESS
AP
YG
LF
contextChange
YG
LF
Final Context
In my Queue "b" which is as follows
SUPRESS
123
sollinger...
123
Sollinger...
123
FinalContext
My requirement is in my "b" queue , I want to put a CC as follows by using a standard node function if possible
SUPRESS
123
sollinger...
123
contextChange
Sollinger...
123
FinalContext
IF THAT dont work Inside my UDF I want to put thE CC for the b queue.
How will the loop behave then?
What will be passed to my input queue "a" and "b" when execute "all values on context" is set.
"a" has a context and "b" doent have one.
My UDF
public static void Test(String[] a,
String[] b,
ResultList result,
Container container){
//Contains no context change
String b[] = {ResultList.SUPPRESS,"12","sollinger","12","sollinger","12",
ResultList.CC};
I make the following steps
copy to an arraylist. add a context change in between.
copy back to string b.
Similar Messages
-
How can i get all values from jtable with out selecting?
i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
thanks in advance.
rajaYou could set the table's data model to be the same:
output2.setModel( output1.getModel() ); -
How to get all values from an interval using select statement
Hi,
Is it possible to write a select statement that returns all values from an interval? Interval boundaries are variable.
something like this:
select (for x in 1,1024 loop x end loop) from dual
(this, of course, doesn't work)
The result in this example should be 1024 rows of numbers from 1 to 1024. These numbers are parameters, so it is not possible to create a table with predefined values.
Thanks in advance for your help,
Mia.For your simple case, with a lower boundary of 1, you can use:
SELECT rownum
FROM all_objects
WHERE rownum <= 1024For a set of number between say 50 - 100, you can use something like:
SELECT rownum + (50 - 1)
FROM all_objects
WHERE rownum <= (100 - 50 + 1)Note, that all_objects was used only because it generally has a lot of rows. Any table with at least the number of rows in your range will work.
TTFN
John -
Get All Values From NewForm.aspx using Event Receiver Item Adding
HI All,
I have conditions to check before the insertion of "Calendar Event".For this I am using Item Adding Event Receiver ,When Click on Save button I need to get all the values of Items filled in NewForm.aspx and check
the condition,If condition satisfies make them insert else show alert info as"Not Valid",Below is code and error message
public override void ItemAdding(SPItemEventProperties properties)
base.ItemAdding(properties);
string StartTime = properties.AfterProperties["Start Time"].ToString();
string EndTime = properties.AfterProperties["End Time"].ToString();
Error
Object reference not set to an instance of an object.
Use the New "Keyword to create an object instance
Can any one help me how can I do it.
Thanks,
Quality Communication Provides
Quality Work.
http://siddiq-sharepoint2010.blogspot.in/
Siddiqali Mohammad .Hi,
Have you tried with the code snippet as mentioned below
string EndDate = Convert.ToString(properties.AfterProperties["EndDate"]);
string StartDate = Convert.ToString(properties.AfterProperties["EventDate"]);
If my post is helpful - please click on the green arrow to mark it as answer -
Get all values from request.getParameter
In ASP, I can do something like that...
For each item in Request.Form
Response.write "Name is:" & item & " value is:" & Request(item)
Next
How about in JSP? How do i get the names and values of the form using a loop?You can use request.getParameterNames() which will return an enumeration, then you can iterate through the enumeration and use request.getParameterValue(String paramName) method to get the values.
-
Get all values from multi select in a servlet
Hello,
I have a multi <select> element in a HTML form and I need to retrieve the values of ALL selected options of this <select> element in a servlet.
HTML code snippet
<select name="elName" id="elName" multiple="multiple">
Servlet code snippet
response.setContentType("text/html");
PrintWriter out = null;
out = response.getWriter();
String output = "";
String[] str = request.getParameterValues("elName");
for(String s : str) {
output += s + ":";
output = output.substring(0, output.length()-1); // cut off last deliminator
out.println(output);But even when selecting multiple options, the returned text only ever contains the value of the first selected option in the <select>
What am I doing wrong? I'm fairly new to servlets
Edited by: Irish_Fred on Feb 4, 2010 12:43 PM
Edited by: Irish_Fred on Feb 4, 2010 12:44 PM
Edited by: Irish_Fred on Feb 4, 2010 2:14 PM
Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
Edited by: Irish_Fred on Feb 4, 2010 2:26 PM
Edited by: Irish_Fred on Feb 4, 2010 2:32 PMI am using AJAX.
I will show you how I'm submitting the <select> values by showing you the flow of code:
This is the HTML code for the <select> tag and the button that sends the form data:
<form name="formMain" id="formMain" method="POST">
<input type="button" id="addOpts" name="addOpts" value="Add Options" style="width:auto; visibility:hidden" onClick="jsObj.addOptions('servletName', document.getElementById('elName'))">
<br>
<select name="elName" id="elName" multiple="multiple" size="1" onChange="jsObj.checkSelected()">
<option value="0"> - - - - - - - - - - - - - - - - </option>
</select>
</form>Note that the "visibility:hidden" part of the button style is set to "visible" when at least one option is selected
Note that "jsObj" relates to a java script object that has been created when the web app starts ( The .js file is included in the .jsp <head> tag )
The following code is taken from the file: "jsObj.js"
jsObj = new jsObj();
function jsObj() {
//=================================================
this.addOptions = function(url, elName) {
var theForm = document.getElementById('formMain');
if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
} else { // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
url += this.buildQueryString(theForm.name);
xmlhttp.open("POST",url,true);
xmlhttp.send(null);
xmlhttp.onreadystatechange=function() {
if(xmlhttp.readyState==4) { // 4 = The request is complete
alert(xmlhttp.responseText);
//=================================================
this.buildQueryString = function(formName) {
var theForm = document.forms[formName];
var qs = '';
for (var i=0; i<theForm.elements.length; i++) {
if (theForm.elements.name!='') {
qs+=(qs=='')? '?' : '&';
qs+=theForm.elements[i].name+'='+escape(theForm.elements[i].value);
return qs;
//=================================================
}And this is a code snippet from the "servletName" servlet:public synchronized void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException,IOException {
PrintWriter out = null;
try {
response.setContentType("text/html");
out = response.getWriter();
String output = "";
String[] values = request.getParameterValues("elName");
for(String s : values) {
output += s + ":";
output = output.substring(0, output.length()-1); // cut off last delimitor
out.println(output);
} catch (Exception e) {
}So anyway, everthing compiles / works, except for the fact that I'm only getting back the first selected <option> in the 'elName' <select> tag whenever I select multiple options
Edited by: Irish_Fred on Feb 7, 2010 10:53 AM -
Delta package not fetching all records from Delta queue in r/3
Hello,
I have loaded Goods Movement Data using 2LIS_03_BF datasource into my BI system.
The Delta has been initialized and everyday the delta is being moved from r/3.
I observed that when I execute my delta package not all delta records are fetched into PSA from r/3.
For Ex: Before starting my delta package I checked in SMQ1 of my R/3 system and see that there are around 1000 records.On executing the delta package I see that the record count is reduced from 1000 to 400 in SMQ1.On executing the delta package again I get the remaining 400 records into my PSA.
Shouldn't the delta package get all records from the queue on single execution??
Is there some setting to define the nr of records to be loaded?
I'm confused with this behaviour.Please help me understand this behaviour.
Thank You.Hello,
First thing: the data is not transferred from the SMQ1 queue, rather the data is transfered to BW from the RSA7 Delta queue. You need to check the number of records present in the RSA7 queue.
Since SMQ1 is involved, i think you are using the unserialized V3 update method. In this method, when data is first written to the application tables, it is first transferred to the SMQ1 update queue,then via a job to the LBWQ extractor queue and then to the RSA7 delta queue. So the number of entries that you see in the SMQ1 queue are not the number of entries that have to be transferred to BW but rather the records that are waiting to be transferred to the extractor queue in LBWQ. Similarly, in LBWQ, the number of entries displayed here are not the no of entries that are going to be transferred to BW, they are the no of entries that will be transferred to the delta queue RSA7 when the next v3 update job runs.
If you want to check the number of records that will be transferred to BW, select the datasource in rsa7 and then click on the display data entries button.
Hope this helps.
Regards. -
How can i get the all values from the Property file to Hashtable?
how can i get the all values from the Property file to Hashtable?
ok,consider my property file name is pro.PROPERTIES
and it contain
8326=sun developer
4306=sun java developer
3943=java developer
how can i get the all keys & values from the pro.PROPERTIES to hashtable
plz help guys..............The Properties class is already a subclass of Hashtable. So if you have a Properties object, you already have a Hashtable. So all you need to do is the first part of that:Properties props = new Properties();
InputStream is = new FileInputStream("tivoli.properties");
props.load(is); -
Unable to get the values from ISearchResultList
Hi,
I am working on KM Indexmanagemnt API for searching with TREX, to build a search similar to msn or google.
I am following the example of Thilo Brandt, and after building the query, I am unable to retrieve the result from ISearchResultList, the results size its displaying is zero. But session.getTotalNumberResultKeys() is retrieving a value 20.
Here is the code I am using, please tell me where I am doing wrong.
public class SearchComponetOne extends AbstractPortalComponent {
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response) {
com.sap.security.api.IUser nwUser =
UMFactory.getAuthenticator().getLoggedInUser();
com.sapportals.portal.security.usermanagement.IUser user = null;
try {
user = WPUMFactory.getUserFactory().getEP5User(nwUser);
} catch (UserManagementException e) {
response.write(e.getMessage());
response.write("<html><head><title>Search</title></head><body>");
ResourceContext c = new ResourceContext(user);
try {
IIndexService indexService = (IIndexService) ResourceFactory
.getInstance()
.getServiceFactory()
.getService(
IServiceTypesConst.INDEX_SERVICE);
SearchQueryListBuilder sqb = new SearchQueryListBuilder();
sqb.setSearchTerm("sap");
IQueryEntryList qel = sqb.buildSearchQueryList();
// get an instance of federated search
IFederatedSearch federatedSearch =
(IFederatedSearch) indexService.getObjectInstance(
IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);
List indexList = new ArrayList();
String index = null;
if (index != null && index.length() > 0) {
// take a specified index from index= parameter
indexList.add(indexService.getIndex(index));
} else {
// take all available indexes
indexList = indexService.getActiveIndexes();
// it is recommended to use a search session object
// for searching execution
ISearchSession session = null;
if (session == null)
session = federatedSearch.searchWithSession(qel, indexList, c);
response.write("Inside doContent session.getNumberResultKeys() => " + session.getNumberResultKeys()); // output as 20
this.renderResultHeader(response, session, indexList);
// get all results from the search session
ISearchResultList results = session.getSearchResults(1, session.getTotalNumberResultKeys());
response.write(" from session => " + results.size() + " and size is : " + results.toString()); // I am getting the results.size() as zero
ThanksI think the problem is UME related. I had the same problem once. Try using a system user for searching, instead of the logged on user.
Like this:
com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getUser("cmadmin_service");
Please reward the points if this helps. -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
How to get the values from a html form embedded in a swing container
Hi all,
I am developing an application in which i have to read a html file and display it in a swing container.That task i made it with the help of a tool.But now i want to get the values from that page.ie when the submit button is clicked all the values of that form should be retrived by a servlet/standalone application.I don't know how to proceed further.Any help in this regard will be very greatful
Thanks in advance,
PrakashBy parsing the HTML.
-
Re: [iPlanet-JATO] Re: Retrieving all Values from a Tiled View
Todd,
Let me try to explain you this time. I have a text field in a TiledViewBean.
When I display the page, the text field
html tag is created with the name="PageDetail.rDetail[0].tbFieldName" say
five times/rows with same name.
The html tags look like this.
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
When the form is submitted, I want to get the text field values using the
method getTbFieldName().getValues() which
returns an array object[]. This is in case where my TiledViewBean is not
bound and it is working fine.
Now in case when my TiledView is bound to a model, it creates the html tags
as follows.
<input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[1].tbFieldName" value=""
maxlength=9 size=13>
<input type=text name="PageDetail.rDetail[2].tbFieldName" value=""
maxlength=9 size=13>
Now when I say getTbFieldName().getValues() it returns only the first
element values in the object[] and the rest of the
values are null.
May be we need to create a utility method do get these values from
requestContext.
raju.
----- Original Message -----
From: Todd Fast <toddwork@c...>
Sent: Saturday, July 07, 2001 3:52 AM
Subject: Re: [iPlanet-JATO] Re: Retrieving all Values from a Tiled View
Raju.--
I wanted to know how the getValues() method works the reason being,
when the tiled view is NOT bound to a model, it populates all the
fields with the same name as some thing likeI'm afraid I don't understand your point--can you please clarify? Do you
mean "value" instead of "name"?
What are you trying to do? What behavior are you expecting but notseeing?
>
Without further clarification, I can say that the setValues() methodsNEVER
populates data on multiple rows of a (dataset) model, nor does it affect
multiple fields on the same row. Perhaps what you are seeing is theeffect
of default values. Model that derive from DefaulModel have the ability to
carry forward the values set on the first row to other rows in lieu ofdata
in those other rows. This behavior is for pure convenience and can be
turned off, and it is turned off for the SQL-based models.
Todd
[email protected]Hi,
I wanted to know how the getValues() method works the reason being,
when the tiled view is NOT bound to a model, it populates all the
fields with the same name as some thing like
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[0].tbFieldValue
in which case, the getValues() method works fine.
But in case where the tiled view is bound to a model, it populates
with different field names such as,
PageDetail.rDetail[0].tbFieldValue
PageDetail.rDetail[1].tbFieldValue
in this case, the getValues() doesn't work. Any soultion to this?
We are using Moko 1.1.1.
thanks in advance,
raju.
--- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
Does anyone know of is there a single method to get all values of a
display
field in a tiled view without having to iterate through all the
values ie
resetTileIndex() / nextTile() approach.
ie Something that returns an Object[] or Vector just like ND returned a
CspVector. I tried using the getValues() methods but that allways returns
a
single element array containing the first element.
(I think now, that method is used for multi selecteable ListBoxes)Actually, no. We can add this in the next patch, but for now, I'd recommend
creating a simple utility method to do the iteration on an arbitrary model
and build the list for you.
Todd -
Hi guys,
I am developing an integration with EWS based on php. I am using a library I found https://github.com/jamesiarmes/php-ews
In my case users have various calendars hanging from the root, I get access to the default calendar by this:
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::CALENDAR;
$response = $ews->FindFolder($request);
I also get access to shared calendars by this:
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::PUBLIC_FOLDERS_ROOT;
$response = $ews->FindFolder($request);
But I am getting crazy to get all calendars hanging from the root. If I asked for all folders on the root I don't get those calendars. What service and params do I need to send to get all calendars from the root?
Thanks!!If you make a FindFolder Request set the Traversal to Deep and use a restriction on the FolderClass to IPF.Appointment that should return all the Calendar folders in a mailbox eg
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="
http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://sc
hemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xml
soap.org/soap/envelope/">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013_SP1" />
</soap:Header>
<soap:Body>
<m:FindFolder Traversal="Deep">
<m:FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:FolderShape>
<m:IndexedPageFolderView MaxEntriesReturned="1000" Offset="0" BasePoint=
"Beginning" />
<m:Restriction>
<t:IsEqualTo>
<t:FieldURI FieldURI="folder:FolderClass" />
<t:FieldURIOrConstant>
<t:Constant Value="IPF.Appointment" />
</t:FieldURIOrConstant>
</t:IsEqualTo>
</m:Restriction>
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="msgfolderroot" />
</m:ParentFolderIds>
</m:FindFolder>
</soap:Body>
</soap:Envelope>
Cheers
Glen -
Get column values from list of values programmatically
hi all
how i get column values from list of values programmatically in the
returnPopupDataListener methodIf this answers your question , please close this thread by marking it as answered.
Thanks -
Getting the Values from a Tiled View
Hi,
I have a TiledView and I have checkbox in the tiled view. I am trying
to get the values of the checked boxes.
I have coded like this.
Object[] links = getRSystemLinks().getCbSystemUrl().getValues();
if I see the links.length i get only one. In html If I see the code
it appends the TileIndex in brackets. If I replace the TileIndex with
0 in all the fields in endCbSystemUrl method I get the correct values.
In the TiledView beginDisplay() method my code is like this.
if (getPrimaryModel() == null) throw new ModelControlException
("Primary model is null");
super.beginDisplay();
resetTileIndex();
pgCustomizeLinksViewBean parentBean = (pgCustomizeLinksViewBean)
getParent();
((DatasetModel) getDefaultModel()).setSize
(parentBean.SystemChoicesValue.size());
Any Suggestions on this.
Thanks
NamburiNamburi--
Remember, the getValues() method does not return the values from a column in
a TiledView. It is strictly for use by fields that can have multiple
values, like multi-select list boxes.
DO NOT remove the indexing feature from the field names, especially in the
case of checkboxes, because checkboxes aren't submitted back to the server
unless they are checked. By overriding the automatic checkbox tracking
feature JATO provides, you won't be able to tell which checkboxes were
actually checked by row--you'll simply get back a list the same size as the
number of checkboxes that were checked, without any placeholders for the
ones that weren't checked.
Instead, on submit, you simply need to move through the tiledView and check
the value of checkbox on each row:
tiledView.beforeFirst();
while (tiledView.next())
if (getDisplayFieldBooleanValue("myCheckBox"))
You can use the same construct to build up an array or list:
List checkedList=new LinkedList();
tiledView.beforeFirst();
while (tiledView.next())
if (getDisplayFieldBooleanValue("myCheckBox"))
checkedList.add(new Boolean(true))
else
checkedList.add(new Boolean(false))
Todd
Todd Fast
Senior Engineer
Sun Microsystems, Inc.
todd.fast@s...
----- Original Message -----
From: <vnamboori@y...>
Sent: Wednesday, October 17, 2001 3:49 PM
Subject: [iPlanet-JATO] Getting the Values from a Tiled View
Hi,
I have a TiledView and I have checkbox in the tiled view. I am trying
to get the values of the checked boxes.
I have coded like this.
Object[] links = getRSystemLinks().getCbSystemUrl().getValues();
if I see the links.length i get only one. In html If I see the code
it appends the TileIndex in brackets. If I replace the TileIndex with
0 in all the fields in endCbSystemUrl method I get the correct values.
In the TiledView beginDisplay() method my code is like this.
if (getPrimaryModel() == null) throw new ModelControlException
("Primary model is null");
super.beginDisplay();
resetTileIndex();
pgCustomizeLinksViewBean parentBean = (pgCustomizeLinksViewBean)
getParent();
((DatasetModel) getDefaultModel()).setSize
(parentBean.SystemChoicesValue.size());
Any Suggestions on this.
Thanks
Namburi
[email protected]
Maybe you are looking for
-
I am trying to setup to secure a redirect public port to a private port
I i am trying to setup to secure a redirect public port to a private port to a Microsoft server exchange A user coming from the outside(Untrusted security level 0) will connect to IIS server in the DMZ(Trusted security level 50) with a port 443 to a
-
How do I set up my server to print PDF's from Linux LPD?
Our company software runs on a Linux server, in which we have set up multiple LPD queues, one for each location. Currently, we have a windows 2003 server with Anzio Print Wizard capturing the data and printing it to PDF and placing it in specific fol
-
Using the LeaseRequest to unlock a lock.
We are having locking issues in our application, we have the lease-granularity set to "Thread", and out application has a JSP that enables us to flush our caches. I am trying to enable an unlocking mechanism in this JSP to unlock these keys. I am usi
-
CCK & iPad2 FAIL - (Accessory Unavailable-The attached accessory uses too much power)
Well, I'm not too impressed right now. Picked up my new Camera Connection Kit (CCK) tonight and received the error message (see post title) on every camera I tried it on. DCMI folders located in root. Latest update (5.1) This is with direct to camera
-
Verbatim bug with JSF (SUN RI) 1.1 ?
Hi, Could someone explain me why this example doesn't work : <html> <head> </head> <body style="background-color:#E0E0E0"> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <f:view