Help needed : Spry Blogspot RSS Reader
I am trying to build a RSS feed reader that pulls the content
from blogspot.
If I pull the feed via
http://??????.blogspot.com/feeds/posts/default?alt=rss
(rss 2.0) I can see the schema. I can also see all the columns when
i go to the Spry table generator. Unfortunately I get nothing when
i load the page in Firefox or Safari. Any ideas why? Has anyone
gotten this to work?
Same exact thing happens when I try and pull it as an Atom
feed:
http://??????.blogspot.com/feeds/posts/default
I've been using Spry for quite a few things and have been
loving it, but this one has me stumped. Any help would be greatly
appreciated.
Thanks for the prompt answer. I had actually just come across
it. I am using javascript (ASP) to create a proxy. works great now.
I'll put the code in if anyone wants to use it:
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<script language="JavaScript" runat="server">
Response.ContentType = "text/xml";
Response.Charset="utf-8";
try
// rssURL is set to the path RSS feed...
var rssUrl = "
http://???????.blogspot.com/feeds/posts/default?alt=rss";
var xml = new ActiveXObject("MSXML2.DomDocument.4.0");
xml.setProperty("ServerHTTPRequest", true);
xml.async = false;
xml.validateOnParse = true;
xml.load(decodeURIComponent(rssUrl));
// if something goes wrong, we'll send out an XML-formatted
error response.
if (xml.parseError.errorCode != 0)
xmlError = new Error();
xmlError.Message = "<?xml version=\"1.0\"
encoding=\"utf-8\"?>";
xmlError.Message += "<error>";
xmlError.Message += "<description>";
xmlError.Message += "Error parsing feed: " +
xml.parseError.reason;
xmlError.Message += "</description>";
xmlError.Message += "</error>";
throw(xmlError);
// Handily, we can simply save the XML to the Response
stream in ASP.
xml.save(Response);
catch(e)
Response.Write(e.Message);
</script>
Similar Messages
-
URGETN HELP NEEDED! JAVA APPLET READING FILE
Hi everyone
I need to hand in this assignment today
Im trying to read from a file and read it onto the screen, my code keeps showing up an error
'missing method body, or declare abstract'
This is coming up for the
public statuc void main(String[] args);
and the
public void init();
Here is my code:
import java.io.*;
import java.awt.*;
import java.applet.*;
public class Empty_3 extends Applet {
TextArea ta = new TextArea();
public static void main(String[] args);
public void init();
setLayout(new BorderLayout());
add(ta, BorderLayout.CENTER);
try {
InputStream in =
getClass().getResourceAsStream("test1.txt");
InputStreamReader isr =
new InputStreamReader(in);
BufferedReader br =
new BufferedReader(isr);
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
String line;
while ((line = br.readLine()) != null) {
pw.println(line);
ta.setText(sw.toString());
} catch (IOException io) {
ta.setText("Ooops");
Can anyone help me please?
Is this the best way of doing this? Once i read the file i want to perform a frequency analysis on the words so if there is a better method for this then please let me know!
Thankyou
MattWhether it is urgent or not, does not interest us. It might be urgent for you but for nobody else.
Writing all-capitals is considered shouting and rude.
// Use code tags for source. -
Pantone W530 Color Sensor help needed eccm25sens​orData.dat read error
New Benzel installed to fix a bad track pad
On restart color sensor demanded re-calibration.
Error 22 message said ECCM25sensorData.dat file had a read error.
I can not locate file to install.
The Lenovo paid support solution was to suggest a full re install.!!
That is nuts, kind of like replacing a car engine because of a bad spark plug.
Anyone have a clue or work around?
And yes I tried unistalling and reinstalling the following: http://support.lenovo.com/us/en/downloads/ds015010
I get three buzz error when try initial calibration which then instructs to use the Sensor Replacement Utility which results in the error message.
Seem Windows 8 folks are having the same problem. What is up Lenovo??????????
http://forums.lenovo.com/t5/W-Series-ThinkPad-Laptops/windows-8-pantone-driver/m-p/1034813#U1034813
Windows 7 machine
Thanks! -
Linking to a Specific Spry panel (modified for RSS Reader)
Hi – I would like to implement the following tutorial however have it work for the Spry Framework RSS Reader: http://foundationphp.com/tutorials/spry_url_utils.php
I understand the concept of this article and have been able to implement the solution up to step 4 however for my solution I am not working with tabbed panels or an accordion widget but the RSS Reader from the latest Spry Framework. I would like to have a specific feed and article selected on the page depending on what link the user has come from.
So instead of working with the tabbed panel and accordion variables I would be using the variables:
var dsCategories
var dsFeeds
var dsChannel
var dsArticles
I would like to know if anyone can assist me in modifying the solution to suit this scenario? or if it is even possible?
Thanks.
Michael.Hi Ben,
Thanks for pointing me to this tutorial.
To keep things easier for myself I have kept the variable name as row. I have added the following code to the head of my called page:
On lines 9-10:
<script type="text/javascript" src="js/SpryURLUtils.js"></script>
<script type="text/javascript"> var params = Spry.Utils.getLocationParamsAsObject();</script>
On lines 19-26:
//define the data set
var ds1 = new Spry.Data.XMLDataSet("data/LocalFeeds.xml", "feeds/feed");
//get the url parameter for the row number
var params = Spry.Utils.getLocationParamsAsObject();
//set an observer so that when the data is loaded, we update the current row to the url param value
ds1.addobserver({ onPostLoad: function(ds, type) {
ds1.setCurrentRow(params.row); }
Currently my called page is still not loading in the wanted state with calling page passing the parameter row=2.
I aren’t sure what I am still missing but think it is perhaps something to do with setting the spry:region and spry:repeat to equal ds1? But not sure where I should be placing this.
Am I nearly there?
http://www.michael-williams.com.au/
Thanks. -
Need Help With RSS reader...
First off, I'm a beginner. And I would love some help with
this problem.
I've uploaded the RSS reader to my server, designed it, etc.
And It will not load the feeds. I've searched through the forums,
and have come to discover that it is a security issue (one which is
undoubtedly beyond me). Is it possible to get this to work? I read
in a previous post that there is a way to use it with a javascript
code but I'm not sure how to allow this to work.
My site can be found at
http://www.thecassidyfeed.com
I'm fairly confident that all my paths are correct. All of
the files, the javascript files, etc. are located on the root
level. Could it be something with the server? I know that it is
possible that: " url_fopen_disabled " needs to be enabled. My
server is with MediaTemple.
I would very much like to use this framework, and I look
forward to seeing my site up and running. If there is anyone who
would be kind enough to point me in the right direction I would
very much appreciate it.
laurenIf you look at
http://www.thecassidyfeed.com/feeds.php?id=19
you will see something is amiss... -
SPRY submenu text color help needed.
I've created a vertical SPRY menu bar over a dark background
image in a left sidebar. The text is white and the background is
set to none (transparent).
When the submenu opens to the right it's on a white
background (over the main content area). Because the text is set to
white, you cannot see the submenu links.
Is there a way to change only the submenu links to black? I'd
also like to change the background color of the submenu links.
Thanks in advance for your assistance.http://labs.adobe.com/technologies/spry/home.html
- This first link is the Spry home page. There you will find an
updater to Spry that if you have not downloaded up to this point,
you should I will explain why shortly. Inside the package you will
find a ton of samples and an Extension. Install the Extension and
restart DW. Then under the Sites menu you will see a new option to
update your Spry. Run that updater.
http://labs.adobe.com/technologies/spry/samples/menubar/MenuBarSample.html
- This page will show you how to make the necessary customizations.
The last two examples will help you out. All you will need to do is
read through the source code of the document. There is no need to
read through the source of the CSS file because they show you the
changed CSS on that page. Just apply those changes to your CSS
SpryMenuBarVertical.css document where the tag matches. If there is
no matching tag you will need to just copy and paste the entire
portion but I don't think that is the case with your menu. Also
your entries will be Menubar 8 & 9 in the source code, but to
find the matching code in your css document just replace the
MenuBar8 or 9 with MenuBarVertical.
If you have not done a lot of work with CSS before I would
highly recommend reading this tutorial before going through any of
the above steps:
http://www.w3schools.com/css/ -
Help needed with 'Conditions' for field with read only on demand
Hy guys,
I really need your help now, i have two items named P22_LOGIN_TYPE (..wich can be 'Default' or 'Special') and P22_PASSWORD, i need to turn to 'read only' the second item when the first item is 'Default', i'v tryied the conditional option but with no success, i know is managed from there but it's not working for me, it seems that i don't know exactly how to do it. By the way, i have APEX 2.2.
I need an exact guide (explanation) on how to do it, thank you very much.
Best regards,
VictorFirstly you could set your First item to be a select list with submit. Make the branch go to the same page.
Secondly, on the read-only conditions for your second item, use the condition when item in expression 1 = value in expression 2, and set that to 'Default' in expression 2.
Essentially this will re-submit your page when you make a selection either 'Default' or 'Special'. If 'Default' is selected, then the PASSWORD item will be rendered as read-only. If you don't want to display the PASSWORD item at all, you can put the above condition for the read-only, into the conditions section of the item.
Hope this helps and is not too confusing. It reads a lot worse than it actually is ;)
Cj -
Help needed with Reader Integrated Key
Hi,
I have develop a plug-in and apply for Reader Integrated Key License. This plug-in have been tested with acrobat and reader professional and it is working.
I follow the advice from the above website and use RIKLATools.zip to created the pair.
i have just receive the Reader Integrated Key from Adobe,I tried all method but the key does not work with the plug-in. What is the fool proof way to integrate my Reader Integrated Key with the plug-in to get a digtally signed plug-in?
Urgent help needed as we are submitting the plug-in to client.
many Thanks in advance
Regards
Jia haoThank you lrosenth, i will email them
-
I need an RSS reader to view the fixmystreet website fully but don't know what to choose. Fixmystreet is not a terribly well-coded site as it employs volunteers and might be a bit old-fashioned but I want and like and need to use it.
Netnewswire has a decent client for Mac. Feedly and Digg Reader work well as RSS readers in a browser. I tend to use Feedly most of the time, including for FixMyStreet
-
I need help because I can't read my redemption code on my iTunes gitfcard and I can't wait 48 hours for a response via e-mail.
How can i help you?
-
Help Needed on Read/Modify Line Statement
Hi,
I am writing a report which is having a check box as first column, followed by sales data. I am giving F4 Key to user to Select ALL the check box. I have used Modify Line to do this, but it is not working for me.
Here is the pseudo code which i am using.
Report <report name>.
data cb1 value SPACE.
Write :/ cb1 as CHECKBOX, 'X'.
Write :/ cb1 as CHECKBOX, 'Y'.
Write :/ cb1 as CHECKBOX, 'Z'.
AT PF04.
DO 3 times.
MODIFY LINE sy-index field value cb1 from 'X'.
ENDDO.
This is not working and giving weird results.
I tried the following things too.
Trial a:
cb1 = 'X'.
modify line sy-index field value cb1.
Trial b:
modify line sy-index of current page value cb1 from 'X'.
Trial c:
read line sy-index....
modify line sy-index..
But none of them were working.
Please let me know if my approach to select all check box is correct. Is there any alternate way to select all the checkbox in the list?..What is wrong with my modify line statement.
Regards
MiteshHi Anand,
Thanks for throwing a light on the "Read Statement". This cleared up my concept of modify line too.
When I dont use Read Line, the output will be:
Checked X
Checked X
Checked X
Let me try to answer the question as "Why it is happening".Correct me if i am wrong as i am only 15 days Old for ABAP ;-((.
Here is how I will now defining modify line statement. Modify Line Statement modify the current line or line number n with the value of sy-lisel. With Field Addition in Modify line, you change the content of sy-lisel.
So in our case, the sy-lisel value is (Checked,'X').
So if we dont use read line, only first column will get updated , whereas second field will remain in the sy-lisel.
So to get the value of other lines, we use read line. This will fill up the sy-lisel with the the line content of sy-index and so modify will work.
So, if we are using AT LINE-SELECTION event to select line, in that case, there is no need to do a read line as sy-lisel is already in the buffer.
Please correct me if i am wrong.
Regards
Mitesh -
Whenever iI need my regular adobe reader, such as a tutorial for a program, it is over ridden by Adobe CS5 asking for a serial number or continue as a trial. I just want my old reader. How can I fix this? Thanks
Select the tutorial, CMD+I, select Adobe Reader as the app to open the file, and select Change All.
-
So I've been using newsbeuter like many people for over a year now. However, the one complaint I and many others have voiced on the forums is that: there exists no cron RSS reader. Sure you can run newsbeuter 24/7 with the auto-refresh feature enabled, but who wants that. So a week ago at the start of the holidays I wrote my own. Now after a week I have seen that it works and that it should be ready to release in beta. Please understand that this is designed in my favorite way; stupid simple. It is source edited and demands only two files: a history file, and the program. I wrote it in python because of the wonderful feedparser library and because this way you can edit your feeds on the fly without needing to recompile.
For anyone who wishes, feel free to play around with this and give me your feedback.
To get it working just run the following to ensure you have the deps:
sudo pacman -Sy coreutils curl python3 python-feedparser youtube-dl
Next put the following source in a file and chmod 700 it. Now you can ./rss or maybe put it in ~/bin and add that to your path so you can run it like any other binary. But wait! Now before you run it, you will more than likely want to edit the config unless you want all of my feeds and just happen to have a /home/keller/downloads folder you want all the stuff put in. To edit the urls just follow the examples I left in. They are in the style ("Name Of Feed", "http:\\example.com\rss\url.xml") where the first entry starts with and additional open brace and then each end in a comma if it is not the last feed entry or a additional close brace if it is. If you don't have anything for the particular category, just use (). Now give it a run by appending the --no-download option. If you don't, it's going to take a while and will work on every feed entry.
To quote --help:
Usage: rss [Options]
This is a zero hassle RSS reader. It is designed to be source configured and
run without a care in the world. Cron it, script it, just plain run it...
Options:
-h, --help Show me this message.
--no-download Do not act on new entries.
(Simply mark as old.)
-q, --quiet Don't talk.
-v, --say-something The opposite of -q.
In terms of action, it will:
First: Append new links to a file called links.html in the downloads folder that you can view with your browser of choice. This is the fastest so you can read your feeds while you wait on the downloads.
Second: Download the attached image from Deviant Art
Third: Download every youtube video at a max of 720p (To speed up the download and conserve bandwidth)
Lastly: Download all of your podcasts
I was debating adding twitter, but I don't use RSS for twitter (or twitter for that matter) so if there is a desire for it (or others) let me know.
#!/usr/bin/python
# Depends on:
# * coreutils
# * curl
# * python3
# * python-feedparser
# * youtube-dl
# - - - - - - - - - - - - - - Configuration and URLs - - - - - - - - - - - - - #
be_quiet = False # True disables output (Good for cron)
download_dir = "/home/keller/downloads/"
history_file = "/home/keller/.rss_history"
# Appends to links.html page in download directory
link_urls = (("Extra Ordinary", "http://www.exocomics.com/feed"),
("Doghouse Diaries", "http://feeds2.feedburner.com/thedoghousediaries/feed"),
("Cyanide & Happiness", "http://feeds.feedburner.com/Explosm"),
("XKCD", "http://xkcd.com/rss.xml"),
("Scandinavia And The World", "http://feeds.feedburner.com/satwcomic?format=xml"),
("Surviving The World", "http://survivingtheworld.net/feed.xml"),
("Something Of That Ilk", "http://somethingofthatilk.com/rss/index.php"),
("Invisible Bread", "http://feeds.feedburner.com/InvisibleBread"),
("Happle Tea", "http://www.happletea.com/feed/"),
("Dilbert", "http://feed.dilbert.com/dilbert/daily_strip"),
("What-If", "http://what-if.xkcd.com/feed.atom"),
("Networking Nerd", "http://networkingnerd.net/feed/"),
("Fry Guy's Blog", "http://www.fryguy.net/feed/"),
("Ethereal Mind", "http://feeds.feedburner.com/etherealmind?format=xml"),
("Packet Pushers", "http://feeds.feedburner.com/PacketPushersBlogsOnly"),
("Lone SysAdmin", "http://lonesysadmin.net/feed/"),
("Arch Linux News", "http://www.archlinux.org/feeds/news/"),
("Schneier on Security", "http://feeds.feedburner.com/schneier/excerpts"))
# Deviant Art RSS
deviant_art_urls = (("Isbjorg's Main Gallery", "http://backend.deviantart.com/rss.xml?q=gallery%3Aisbjorg%2F9742889&type=deviation"))
# Youtube RSS - Youtube Username Only
youtube_users = (("Phillip DeFranco", "sxephil"),
("Freddie", "freddiew"),
("Freddie BTS", "freddiew2"),
("Corridor Digital", "corridordigital"),
("Corridor Digital BTS", "samandniko"),
("Jenna Marbles", "jennamarbles"),
("Source Fed", "sourcefed"),
("Minute Physics", "minutephysics"),
("VSauce", "vsauce"),
("Numberphile", "numberphile"),
("Veritasium", "1veritasium"),
("Sixty Symbols", "sixtysymbols"),
("Periodic Videos", "periodicvideos"))
# Podcasts - Audio/Video linked content download
podcast_urls = (("Security Now", "http://feeds.twit.tv/sn_video_large"),
("Ted Talks", "http://feeds.feedburner.com/tedtalks_video"),
("Scam School", "http://revision3.com/scamschool/feed/MP4-Large"),
("Hak 5", "http://feeds.feedburner.com/hak5hd?format=xml"),
("Film Riot", "http://revision3.com/filmriot/feed/MP4-hd30"),
("SANS News", "https://isc.sans.edu/dailypodcast.xml"),
("The Techie Geek", "http://feeds.feedburner.com/thetechiegeek/ogg?format=xml"))
# - - - - - - - - - - - - No need to modify below here - - - - - - - - - - - - #
from feedparser import parse
from os import system
from sys import argv
import pickle
# -- Argument Parse
no_download = False
if "--help" in argv or "-h" in argv:
print("""Usage: rss [Options]
This is a zero hassle RSS reader. It is designed to be source configured and
run without a care in the world. Cron it, script it, just plain run it...
Options:
-h, --help Show me this message.
--no-download Do not act on new entries.
(Simply mark as old.)
-q, --quiet Don't talk.
-v, --say-something The opposite of -q.
exit()
if "--no-download" in argv:
no_download = True
if "--quiet" in argv or "-q" in argv:
be_quiet = True
if "--say-something" in argv or "-v" in argv:
be_quiet = False
# -- Unpickle History
try:
history = pickle.load(open(history_file, "rb"))
except:
tmp = open(history_file, "w")
tmp.close()
history = {"podcast" : [], "deviant_art" : [], "youtube" : [], "link" : []}
current_links = [] # Holds all current links so we can prune ancient history
# -- Link
for url in link_urls:
if not be_quiet : print("Checking", url[0] + "...")
for entry in parse(url[1]).entries:
current_links.append(entry.link)
if entry.link not in history["link"]: # If is a new link
if not be_quiet : print(" * New Content Found!")
if no_download or system('echo "<a href=\"' + entry.link + '\">' + url[0] + ' : ' + entry.title + '</a><br />" >> ' + download_dir + 'links.html') == 0: # Append to file
history["link"].append(entry.link)
# -- Deviant Art
for url in deviant_art_urls:
if not be_quiet : print("Checking", url[0] + "...")
for entry in parse(url[1]).entries:
if entry.media_content[0]["url"][-4] == '.': # Check it's a file
current_links.append(entry.media_content[0]["url"])
if entry.media_content[0]["url"] not in history["deviant_art"]: # If is a new link
if not be_quiet : print(" * Downloading:", entry.media_content[0]["url"][entry.media_content[0]["url"].rfind('/') + 1:])
if no_download or system('curl -so "' + download_dir + entry.media_content[0]["url"][entry.media_content[0]["url"].rfind('/') + 1:] + '" "' + entry.media_content[0]["url"] + '"') == 0: # Download
history["deviant_art"].append(entry.media_content[0]["url"])
# -- Youtube
for url in youtube_users:
if not be_quiet : print("Checking", url[0] + "...")
for entry in parse("https://gdata.youtube.com/feeds/api/users/" + url[1] + "/uploads").entries:
current_links.append(entry.link)
if entry.link not in history["youtube"]: # If is a new link
if no_download or system('youtube-dl --max-quality 22 -o "' + download_dir + '%(title)s.%(ext)s" "' + entry.link + '"' + ['', ' -q'][be_quiet]) == 0: # Download
history["youtube"].append(entry.link)
# -- Podcast
for url in podcast_urls:
if not be_quiet : print("Checking", url[0] + "...")
for entry in parse(url[1]).entries:
for link in entry.links:
if link.type[0:5] == "video" or link.type[0:5] == "audio": # If _IT_ describes itself as video or audio
current_links.append(link.href)
if link.href not in history["podcast"]: # If is a new link
if not be_quiet : print(" * Downloading:", link.href[link.href.rfind('/') + 1:])
if no_download or system('curl -#Lo "' + download_dir + link.href[link.href.rfind('/') + 1:] + '" "' + link.href + '"' + ['', ' -s'][be_quiet]) == 0: # Download
history["podcast"].append(link.href)
# -- History Dump
for key in history:
for link in history[key]:
if link not in current_links:
history[key].remove(link)
# -- Pickle History
pickle.dump(history, open(history_file, "wb"))
That's all folks. If you do give it a try, please give feed back even if it's just that the whole thing sucks. I'd love to know what feeds don't work, if there is anything you want added, or if you just think it's swell.
If there appears to be some interest I'll look at putting this in the AUR. Maybe with a mode for config files so that each user can have thier feeds all independantly checked with each run under cron. Though that'll take some work to get just right so I'm only doing so if people are sure they would like such a feature. So yeah, feel free to ask for the moon, I'll see what I can do in most cases.
Lastly, I am humbly sorry that I suck at documenting how exactly it works here. If you have any questions at all, please feel free to post away and I will do my best to answer them.This is a shame that Apple doesnt (somehow) make this one of the cross-platform features.
I mean come on, how many of us mac users actually have ALL our computer-using relatives on a mac? In a perfect world, all of us, but reality is, I'm the only one out of about 11 people on my and my wife's side of the family that we share pics of the kids with. Everyone else uses Winblows.
I was pumped when I heard about photocasting. Alas, now that I've tried to make this work smoothly for the novice windows users who want to see pictures of our kids, I realize there is *zero chance* of me being able to use this. There is no way I can see myself sending my 63 year old mother an RSS feed link and having her figure out what to do with it (when she can barely figure out how to look at the pics I send in email he he). If she has to go install an RSS reader, forget it.
Anyway, great mac only feature, but this would be a huge feather in Apple's cap if they could figure out how to serve this up to Windows end users just as effortlessly.
eMac, PB17" Mac OS X (10.4.4)
eMac Mac OS X (10.2.x) -
How to hide html tags in RSS reader
Hello everyone!
I need a help. I`m not a programmer, but I make a very simple RSS reader based on this tutorial http://mobile.dzone.com/articles/building-mobile-rss-reader ... Application works perfect, but I have a problem into DetailsView (rss feed item)... In this view application show me a all html tags into rss feed (or articles on my website)... Content into Description (in application) begins with <p> margin-left: 4px,.... and other html tags. Please, tell me how I set to hide this tags and show only a article content (text)..I
I will be really greatful for any help!
Best regards,
RokUnfortunately no, there is not. It's absolutely needed so that site studio knows how to load the pages. One thing you can do is to use SSPU (site studio publishing utility) to generate static pages and then use a scripting language, such as perl, to strip out all the site studio-specific code from those pages.
Sorry, but that's one big downside to using site studio. -
I have troubles with my XML query. It returns to many results and double results.
My code
select xmlelement("test", XMLAgg(xmlelement("Customer", XmlAttributes(a.CUSTOMER_ID "cid"))),
XMLAgg(xmlelement("Account", xmlagg(xmlelement("Account", b.ACCOUNT_ID) ))),
XMLAgg(xmlelement("ServicePoint", xmlagg(xmlelement("sp", c.SPID) ))) ).extract('*').getstringval() xml
From DM_SERVICE_POINT c, DM_CUSTOMER a, DM_ACCOUNT b where a.CUSTOMER_ID = b.CUSTOMER_ID And a.CUSTOMER_ID=c.CUSTOMER_ID AND a.CUSTOMER_ID='15058'
group by a.CUSTOMER_ID
i have 1 customer id in the table dm_customer, 2 account_id 's that are linked to customer_id with a FK. DM_Servicepoint contains 6 rows that are linked to dm_customer with a FK.
My result is 1 result for customer, thats correct but account shows 12 results, where i expect 2 results
and Service point shows also 12 records where i expect 6 records.
There is no direct link between account and service point but both are linked to customer. Each customer can have 1 or 2 account And each customer can have 1 or many servicepoints.
Can you help me?
Message was edited by:
MarindaNow to see whether we can get this to work with XML....Turns out it's a lot easier than I thought it would be:
SQL> select dbms_xmlgen.getxml('select c.name
2 , cursor(select a.acctno, a.name
3 from my_accounts a
4 where a.cust_id = c.id ) as accounts
5 , cursor(select s.sp_ref
6 from my_service_points s
7 where s.cust_id = c.id ) as srv_points
8 from my_customers c
9 ') from dual
10 /
DBMS_XMLGEN.GETXML('SELECTC.NAME,CURSOR(SELECTA.ACCTNO,A.NAMEFROMMY_ACCOUNTSAWHE
<?xml version="1.0"?>
<ROWSET>
<ROW>
<NAME>APC</NAME>
<ACCOUNTS>
<ACCOUNTS_ROW>
<ACCTNO>900000</ACCTNO>
<NAME>No1 a/c</NAME>
</ACCOUNTS_ROW>
<ACCOUNTS_ROW>
<ACCTNO>900002</ACCTNO>
<NAME>Business</NAME>
</ACCOUNTS_ROW>
</ACCOUNTS>
<SRV_POINTS>
<SRV_POINTS_ROW>
<SP_REF>SP1</SP_REF>
</SRV_POINTS_ROW>
<SRV_POINTS_ROW>
<SP_REF>SP2</SP_REF>
</SRV_POINTS_ROW>
<SRV_POINTS_ROW>
<SP_REF>SP3</SP_REF>
</SRV_POINTS_ROW>
<SRV_POINTS_ROW>
<SP_REF>SP4</SP_REF>
</SRV_POINTS_ROW>
<SRV_POINTS_ROW>
<SP_REF>SP5</SP_REF>
</SRV_POINTS_ROW>
<SRV_POINTS_ROW>
<SP_REF>SP6</SP_REF>
</SRV_POINTS_ROW>
</SRV_POINTS>
</ROW>
<ROW>
<NAME>MARINDA</NAME>
<ACCOUNTS>
<ACCOUNTS_ROW>
<ACCTNO>900004</ACCTNO>
<NAME>Checking</NAME>
</ACCOUNTS_ROW>
</ACCOUNTS>
<SRV_POINTS>
<SRV_POINTS_ROW>
<SP_REF>SP7</SP_REF>
</SRV_POINTS_ROW>
<SRV_POINTS_ROW>
<SP_REF>SP8</SP_REF>
</SRV_POINTS_ROW>
</SRV_POINTS>
</ROW>
</ROWSET>
SQL> Obviously you'll need to do some smartening up of the tag names.
Cheers, APC
Blog : http://radiofreetooting.blogspot.com/
Maybe you are looking for
-
RE:pnp LDB selection screen problem
hi, hi friends iam facing one problem regarding hr ABAP selection screen ,in my program iam using PNP LDB for bonus details report i have using selection screen declaration present for single selection. SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME T
-
I updated my phone to the latest software and when I went to check if it had finished updating it asked me to connect to iTunes. I updated iTunes to the newest software too and then connected my phone. My phone stayed on the connect to iTunes screen
-
Essbase and Planning on server 2012
Has anyone attempt to build a sEssbase planning and HFM sandbox using the new server 2012 Please advise
-
Generate the primary key automatically while records are saved
Hi experts, I need to generate the primary key of a custom table automatically when a new record is saved. Pleas help asap. Urgent.
-
IPod touch not shown on devices
Ipod touch does not show on devices, I have tried restarting,itunes,ipod,imac together and separately, also trouble shooting assistant. bob1a