How to send multiple data for a single element
Hi All,
I have a requirement where I have to send multiple data for single element per single transaction. For example
Id details
1 abcd
1 efgh
1 def
Now, when I am selecting this ID from database, I have to get all the details in a single xsd like
<id>1</id>
---><details>abcd</details>
<details>efgh</details>
<details>def</details>
Thanks
Hi,
The following XSLT...
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:variable name="root" select="/"/>
<root>
<xsl:for-each select="distinct-values(/root/entry/id)">
<xsl:variable name="id" select="."/>
<entry>
<id><xsl:value-of select="$id"/></id>
<xsl:for-each select="$root/root/entry[id = $id]">
<details><xsl:value-of select="details"/></details>
</xsl:for-each>
</entry>
</xsl:for-each>
</root>
</xsl:template>
</xsl:stylesheet>Will work for a document like this...
<root>
<entry>
<id>1</id>
<details>detail1</details>
</entry>
<entry>
<id>1</id>
<details>detail2</details>
</entry>
<entry>
<id>2</id>
<details>detail3</details>
</entry>
</root>Hope this helps...
Cheers,
Vlad
Similar Messages
-
How to delete multiple data domains with single step ?
how to delete multiple data domains with single step ?
You can go to your Endeca-Server domain home e.g.($WEBLOGIC-HOME$/user_projects/domains/endeca_server_domain/EndecaServer/bin)
run
[HOST]$ ./endeca-cmd.sh list-dd
default is enabled.
GettingStarted is enabled.
endeca is enabled.
BikeStoreTest is enabled.
create a new file from the output just with the domains that you want to delete and then create a loop
[HOST]$ vi delete-dd.list
default
GettingStarted
endeca
BikeStoreTest
[HOST]$ for i in $(cat delete-dd.list); do; ./endeca-cmd.sh delete-dd $i; done
Remember that this can not be undone, unless you have a backup. -
How to use multiple hierarchies for a single char in single query
Hi,
Is there any way that we can use multiple hierarchies for a single char in single query. I tried and it just allows me to select one hierarchy even if I use hierarchy variable.
I have a requirement where user wants to see information related to a cost center with different cost center groups in different hierarchies (every year has different cost center group hierarchies).
Suppose I want to see information related to a cost center from year 2001-2004.in these four year cost center may have been associated to different groups depending upon that year hierarchy. How can I do that?
Thanks
JonaNope. Now way to do this.
There is always just one hierarchy assigned to a characteristic. And even if the hierarchy was time dependent, it only reads it for one key date and not according to transaction data.
Regards,
Beat -
How to add multiple databases for a single frontend
We have a project based on distributed databases and we have to workout on .Net framework.I want to know some information of connecting multiple databases for a single frontend and how can we access them.
If so we have connected 2 databases for a single frontend in future if I want add one more database to it how it will be possible to do it without disturbing the current connectivity.
Please help me in resolving this problem.
Thanks......hi,
what do you mean by connecting 2 databases? can you explain further?
using entityframework you can connect to different databases
public class CustomerContext : DbContext
public ReportContext()
: base("DefaultConnection")
public DbSet<Customers> Customers { get; set; }
and your connectionstring (config file)
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=D:\\Database\Project.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
you can add more connection strings on it.
https://msdn.microsoft.com/en-us/library/vstudio/cc716756(v=vs.100).aspx
https://msdn.microsoft.com/en-us/library/ms254978(v=vs.110).aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
SharePoint 2013 - SPD Custom Workflow keeps sending multiple emails for a single Task
I have a workflow triggering on List item created only. There are multiple stages in the work flow and in each stage a single task is assigned to a group of people. Currently group is only having one user i.e. my own test user with a valid email address.
Workflow was running fine for first 5 runs but now it keeps sending multiple emails for each task multiple times and runs very slow. I have only single workflow in development server with 24GB RAM.
Enabling the Workflow log in Event viewer does not show any error or warnings. The only clue I see is WorkFlowManager Database table "DebugTrace" having multiple entries showing that WF is trying to send same email multiple times with failed attempts,
but in reality emails are being delivered as well.
http://server/site/_vti_bin/client.svc/sp.utilities.utility.SendEmail Retry sending email in xx.xx.xx Status: HTTPRetrying
http://server/site/_vti_bin/client.svc/sp.utilities.utility.SendEmail Retry sending email in xx.xx.xx Status: HTTPFailed
I could not get the exact phrase as I don't have direct access to development machine at work.
Any help or guidance will be highly appreciated.Yes, I have on-premise SP site, and here is the actual log I see in DebugTraces table.
Message Level Name Category
Attempt 1 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' failed with response '<Exception.
No Status Code>'. 2 HttpRequestFailed Http
Attempt 2 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' will be made in 00:00:06.
2 HttpRequestRetrying Http
Attempt 2 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' failed with response '<Exception.
No Status Code>'. 2 HttpRequestFailed Http
Attempt 3 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' will be made in 00:00:07.
2 HttpRequestRetrying Http
Attempt 3 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' failed with response '<Exception.
No Status Code>'. 2 HttpRequestFailed Http
Attempt 4 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' will be made in 00:00:09.
2 HttpRequestRetrying Http
Attempt 4 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' failed with response '<Exception.
No Status Code>'. 2 HttpRequestFailed Http
Attempt 5 of the HTTP request to 'http://site/collection/_vti_bin/client.svc/sp.utilities.utility.SendEmail' will be made in 00:00:13.
2 HttpRequestRetrying Http -
hello everyone,,,
is there any option to send multiple data files / music files using bluetooth / whatsapp / emails...
as option to select multiple files using "SELECT in menu option / left aA"+ scroll tracepad" is availble with pictures only.
and while receiving files via bluetooth i'm unable to do any other activity.One at time, via Bluetooth.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
How to show multiple messages for a single exception
hi
Please consider this example application created using JDeveloper 11.1.1.3.0
at http://www.consideringred.com/files/oracle/2010/MultipleMessagesExceptionApp-v0.01.zip
It has a class extending DCErrorHandlerImpl configured as ErrorHandlerClass in DataBindings.cpx .
Running the page and entering a value starting with "err" will result in an exception being thrown and multiple messages shown.
See the screencast at http://screencast.com/t/zOmEOzP4jmQ
To get multiple messages for a single exception the MyDCErrorHandler class is implemented like
public class MyDCErrorHandler
extends DCErrorHandlerImpl
public MyDCErrorHandler()
super(true);
@Override
public void reportException(DCBindingContainer pDCBindingContainer,
Exception pException)
if (pException instanceof JboException)
Throwable vCause = pException.getCause();
if (vCause instanceof MyMultiMessageException)
reportMyMultiMessageException(pDCBindingContainer,
(MyMultiMessageException)vCause);
return;
super.reportException(pDCBindingContainer, pException);
public void reportMyMultiMessageException(DCBindingContainer pDCBindingContainer,
MyMultiMessageException pException)
String vMessage = pException.getMessage();
reportException(pDCBindingContainer, new Exception(vMessage));
List<String> vMessages = pException.getMessages();
for (String vOneMessage : vMessages)
reportException(pDCBindingContainer, new Exception(vOneMessage));
}I wonder if calling reportException() multiple times is really the way to go here?
question:
- (q1) What would be the preferred use of the DCErrorHandlerImpl API to show multiple messages for a single exception?
many thanks
Jan Verveckenfyi
Looks like using MultipleMessagesExceptionApp-v0.01.zip in JDeveloper 11.1.1.2.0 (11.1.1.2.36.55.36) results in a different behaviour compared to when used in JDeveloper 11.1.1.3.0 (11.1.1.3.37.56.60)
see http://www.consideringred.com/files/oracle/img/2010/MultipleMessages-111130versus111120.png
When using JDeveloper 11.1.1.2.0 each exception seems to result in two messages where there is only one message (as intended/expected) per exception when using JDeveloper 11.1.1.3.0 .
(Could be somehow related to the question in forum thread "multiple callbacks to DCErrorHandlerImpl".)
But, question (q1) remains and is still about JDeveloper 11.1.1.3.0 .
regards
Jan -
How to copy EXIF data for a single photo?
Hello,
I post photographs to a few different photo forums for community comment and critique. Including the basic technical data for each photograph is common and having to type it in manually is tedious. Is there a quick and easy way to copy or extract basic EXIF data (exposure, focal length, EV, ISO, exposure program, metering, make, model, lens) for a single photo to the clipboard? The information is all over LR I just can't determine how to get it out quickly.
Thanks for your help!
Best,
EricI don't see anyone provided you with an answer.
The hard way is to export the metadata to the file and use an external program. There are many programs that manipulate metadata. I haven't wanted to export it in the way you describe.
What operating system are you on? -
How to have multiple orders for a single contract
Hi all, my question is:
How to have multiple orders with respect to a contract which is valid for many years? The orders are given periodically over the lifetime of the contract. Once the order is given, the order quantity needs to be confirmed and then the order needs to be billed.
Thanks in advance.Hi Bappaditya,
To get multiple orders from a contract, you can either create an order as a follow up document from the contract
Or
Maintain the contract determination settings.
In such a case, everytime you create an order the contract determination happens, for the particular business partner and product.
For this to happen you need to maintain the customizing settings:
1. Copy Control between contract and order
2. Contract determination setting in the order transaction type
The qunatity confirmation can be done by standard setting at itme category level.i.e. If the quantity is more than that stated in the contract an error is raised.
For billing of order you will have to maintain the billing setings like billing type, biliing item category, billing item determination.
Hence every time your order is created it comes in the billind due list from where you can create the blling document.
Wish the information is helpful.
Regards,
Shalini Chauhan -
Hi Gurus:
I have a layout for planning, where I can plan for 5 days of the week. I also have a day column (yesterday) where I have the actual values. Users want to edit/foecast the next 5 days values. I am using a Variable to get the Date column which uses the System Date. However, since I am getting just one date in the Function Module (Code given below), the remaining days are greyed out and I can not enter the forecast values. I would like the same variable to get a series of dates in the same function module. What changes do I nee dto make in the ABAP code so that the remaining columns (Date) becaoe available for editing??
The FM code I have to get "Today's Date" is as follows:
FUNCTION ZCSHFL_GET_TODAY.
""Local Interface:
*" IMPORTING
*" REFERENCE(I_AREA) TYPE UPC_VAR-AREA
*" REFERENCE(I_VARIABLE) TYPE UPC_Y_VARIABLE
*" REFERENCE(I_CHANM) TYPE UPC_Y_CHANM
*" REFERENCE(ITO_CHANM) TYPE UPC_YTO_CHA
*" EXPORTING
*" REFERENCE(ETO_CHARSEL) TYPE UPC_YTO_CHARSEL
data: ls_charsel type upc_ys_charsel.
ls_charsel-seqno = 1.
ls_charsel-sign = 'I'.
ls_charsel-opt = 'EQ'.
ls_charsel-CHANM = I_chanm.
ls_charsel-low = sy-datum.
insert ls_Charsel into table eto_charsel.
ENDFUNCTION.
I want to get the Yestarday's Date as weel as dates for next 4 days from Today for this variable which are being used in the layout. Can anyone suggest the code tor this please.
Thanks very much in advance......
Best.... ShruMaaHi,
What I understand you need to return those dates from function module using parameter ETO_CHARSEL , right? If so just use this code:
ls_charsel-seqno = 1.
ls_charsel-sign = 'I'.
ls_charsel-opt = 'BT'. "we are giving ranges, so days between...
ls_charsel-CHANM = I_chanm.
ls_charsel-low = sy-datum - 1. "...first day is yesterday
ls_charsel-high = sy-datum + 4. "...and last day is 4 days from today
insert ls_Charsel into table eto_charsel.
This way you provide 5 days starting from yesterday till 4 days from today.
Regards
Marcin -
How to create Multiple Address for a single customer
Respected Members,
In tcode Xd01 we create on customer but there we can maintain only one address but sometimes a scenario can be that single customer can have different address .
How to do that.Any exit is available to create multiple address with creation of single customer.
This provision is given while creating a Business Partner.Tcode is BP .In this Address Overview tab is there and you maintain multiple address to single Busines partner.
Same thing can we do for the customer.
Any solutions or suggestions,please give me your support.
ThanksHello Manish,
Unfortunately Customers have only one address. However you can use contact persons to store different addresses, or (in the Sales view) you can assign other partner functions with different addresses (e.g. one customer acting as the Sold-to partner may have different Ship-to partners).
If these options do not meet your requirements, you could extend the customer master data with your own functionality and enhance transaction XD01 with your own screens for holding alternate addresses.
Regards,
John. -
How do I restore data for a single APP? I don't want everything restored.
Starting over.....
Assume I've backed up everything: iTunes copies data and apps from the iPhone into 2 different locations in the PC.
Then assume I delete app XYZ from my iPhone.
If I connect to iTunes, reselect app XYZ and place it on the virtual iPhone image in say, page 3, then I press "Apply", the "sync" feature will restore/resinstall ONLY this single app, which is good. HOwever it doesn NOT restore the associated data that was created when I backed up. This is iTUNES stupidity.
HOW do I restore this data? Does "restore from backup" retore EVERYTHING that was backed up. If it does that's HORRIBLE.
The RESYNC feature should simply be CHANGED so it will restore DATA associated with any apps it is reinstalling.Does "restore from backup" retore EVERYTHING that was backed up.
Yes.
The RESYNC feature should simply be CHANGED so it will restore DATA associated with any apps it is reinstalling.
Send suggestions to Apple here -> http://www.apple.com/feedback/itunesapp.html -
How to make multiple headers for a single pages doc
Hi,
I am trying to submit works of short fiction to markets such as Asimov's and Analog. Their online submission guidelines typically call out a format like the one described here;
http://www.shunn.net/format/store.html
This seems like a very reasonable thing to want to do with Pages.
I can match this format beautifully in Pages, with one exception. The format they are asking for has a word count in the header of page one, and on the subsequent pages a header that looks like "Story title / author name / page #". I can't figure out how to do this.
Question 1.) Is it possible to do this at all in Pages (iOS or OSX)?
Question 2.) If so, how?
Question 3.) Is there a ready-made template for this, for iOS, anywhere that I may download or purchase?
Thanks -
CFor the time being, I can only respond to Pages for iOS. OS X I'll need to check when I get home (or perhaps someone else will beat me to it). You may wish to post in the Pages for Mac forum for better exposure.
In Pages for iOS you are limited to a single header and footer. There is no Section structure so no way to do different headers/Footers for different pages (as you can do in MS word for example). To modify the Header and insert the text you want: Tap the Tools icon (wrench in upper right), then Document Set up. Tap in the header field, then tap and hold to use the menu to insert pages numbers, then type the text you need.
Quite possibly. Check the app store. Or you may be able to set this up in Pages for OS X and import it into Pages on the iPad. I'm not certain the sections will import however.
Also consider using a different app, such as word for iOS or any of the numerous other word processing apps available. -
How to suppress multiple lines for a single day on a PE50 form
Hello everyone,
I'm working on a timesheet based on a PE50-form. Currently, the following line is used to display one day:
Group: ED
Priority: 1
Row:
|WE CD|TEXT_________________ |ANZHL_|ANZHL_|ANZHL_ | | |
WE = SCHLW-WEEKDAY
CD = SCHLW-CDATUM
TEXT = TP-TEXT
ANZHL = ZES-ANZHL (different conditions)
As soon as there are two time recordings in the cluster, there are two rows on the timesheet. This makes sense when you want to print clockin / clockout times. However, on this form, there is no such information.
My question: Is it possible to only have one line per day even if there are multiple records in the cluster?
I read all the documentation I could find but so far, no success.hi,
what do you mean by connecting 2 databases? can you explain further?
using entityframework you can connect to different databases
public class CustomerContext : DbContext
public ReportContext()
: base("DefaultConnection")
public DbSet<Customers> Customers { get; set; }
and your connectionstring (config file)
<connectionStrings>
<add name="DefaultConnection" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=D:\\Database\Project.mdf;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
you can add more connection strings on it.
https://msdn.microsoft.com/en-us/library/vstudio/cc716756(v=vs.100).aspx
https://msdn.microsoft.com/en-us/library/ms254978(v=vs.110).aspx
Please remember to mark the replies as answers if they help and unmark them if they provide no help. -
How to set multiple styles on a single component in flex ?
Hi ,
I would like to know how to set multiple styles on a single component in flex.
Can anyone give me an example as to how to set multiple styles for a single component ?
Thanks ,
Regards,
AjanthaHi tuliptaurus,
You can setStyleName property for chnaging the external css dynamically by using the setStyle() method ...
btn.setStyle("styleName","blendButtonSkinOther");
You can change the external css by using the styleaName property with setStyle method..the line in blue..where blendButtonSkinOther is another css class..
blendButtonSkin {
fontFamily: Arial;
fontSize: 11;
color: #F1F1F1;
textRollOverColor: #F1F1F1;
textSelectedColor: #F1F1F1;
horizontal-align:center;
width:150;
height:30;
cornerRadius:5;
upSkin:ClassReference('assets.skins.BlendButtonSkin');
downSkin:ClassReference('assets.skins.BlendButtonSkin');
overSkin:ClassReference('assets.skins.BlendButtonSkin');
disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
blendButtonSkinOther {
fontFamily: Arial;
fontSize: 11;
color: #F1F1F1;
textRollOverColor: #F1F1F1;
textSelectedColor: #F1F1F1;
horizontal-align:center;
width:150;
height:30;
cornerRadius:5;
upSkin:ClassReference('assets.skins.BlendButtonSkin');
downSkin:ClassReference('assets.skins.BlendButtonSkin');
overSkin:ClassReference('assets.skins.BlendButtonSkin');
disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
Thanks,
Bhasker Chari
Maybe you are looking for
-
Need to run firefox 3.6 because of un-supported plugin.
Hello, I am looking for advice on how to run Firefox 3.6 as securely as possible. Yes I realize that is an outdated and insecure, but I have no choice. I use a commercial product called Kurzweil Reader. It is a screen reader designed specifically for
-
I cant seem to get cd's that I have uploaded onto my iphone 5 via itunes. I have tried to highlight the items and drag and drop them into my phone but this isnt working...; This is really starting to frusterate me!!! Please help me
-
can anybody tell me what is this happening i have type exp on my command prompt .but instade of asking exp parameter it is login to the sql and giving me this type of output.... its very strange os path>exp SQL*Plus: Release 9.2.0.5.0 - Production on
-
IFrame always opening in new window in adf 11.6
HI , I m facing one issue related to the iframe in adf11.6, Upon click of button , i need to display the webpage in inlineframe, Here i am trying to integrate the oracle reporting tool . but only reporting toll URL opening in new window always ,i m n
-
How do I open an htm file with Firefox 3.6.14?
I have downloaded a photo with file extension htm. It suggests only Firefox. When I double click on the download it just opens a Facebook page which I can't open it from