How to make view on xmlcolumn?

Hi!
I tried to find an example, but it seems that i couldn't find the tree in the forest...
I have an table with normal columns and an xmltype-column,
where I want an view of it as if it was an join:
create table t
( id number,
att1 number,
xml1 xmltype
insert into t values (1,1,'<r>
<i><n>hans</n>
<age>2</age>
</i>
<i><n>peter</n>
<age>99</age>
</i>
<i><n>kim</n>
</i>
</r>');
insert into t values (2,5,'<r>
<i><n>hansi</n>
<age>22</age>
</i>
</r>');
commit;
--select e.id, e.att1, e.xml1.getstringval() from t e
Now I want this result, 4 rows and 4columns:
1,1,hans,2
1,1,peter,99
1,1,kim,<null>
2,5,hansi,22
How to write the select/view?
Best Regards
Bjoern

SQL> drop table t
  2  /
Table dropped.
SQL> create table t
  2  (
  3    id number,
  4    att1 number,
  5    xml1 xmltype
  6  )
  7  /
Table created.
SQL> insert into t values (1,1,xmltype('<r><i><n>hans</n><age>2</age></i><i><n>peter</n><age>99</age></i><i><n>kim</n></i></r>'))
  2  /
1 row created.
SQL> insert into t values (2,5,xmltype('<r><i><n>hansi</n><age>22</age></i></r>'))
  2  /
1 row created.
SQL> commit
  2  /
Commit complete.
SQL> select id, att1, i.*
  2    from t,
  3         xmltable
  4         (
  5           '/r/i'
  6           passing xml1
  7           columns
  8           NAME varchar2(20) path 'n',
  9           AGE  varchar2(20) path 'age'
10        ) i
11  /
        ID       ATT1 NAME                 AGE
         1          1 hans                 2
         1          1 peter                99
         1          1 kim
         2          5 hansi                22
SQL>

Similar Messages

  • How to make view automatically scroll when keyboard show up

    Hi all
    I'm like a totally noob for objective-c coding, let alone the iPhone programing. :P
    Anyway, I somehow manage to create a simple application that receive input via UITextField, do some simple math, then display the result in other UITextFields (which can act as a input vice versa).
    Problem is, when I use the UITextField at the buttom of the screen as an input, the keyboard will block that text field out of my view, so I could not see what I'm typing at all.
    That's the question. How to make my view scrollable, and make it simply scroll itself out of the way when the keyboard is shown? I already inherit my view from UIScrollView, but don't know what to do next. Can you guys help enlighten me, please?
    Thanx

    Of course, if you're dealing with textFields, you should change a few things try something like that in your .m file :
    - (void)textFieldDidBeginEditing:(UITextField *)theTextField
    if ([theTextField isEqual:yourTextField])
    // Restore the position of the main view if it was animated to make room for the keyboard.
    if (self.view.frame.origin.y >= 0)
    [self setViewMovedUp:YES];
    // Animate the entire view up or down, to prevent the keyboard from covering the author field.
    - (void)setViewMovedUp:(BOOL)movedUp
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.3];
    // Make changes to the view's frame inside the animation block. They will be animated instead
    // of taking place immediately.
    CGRect rect = self.view.frame;
    if (movedUp)
    // If moving up, not only decrease the origin but increase the height so the view
    // covers the entire screen behind the keyboard.
    rect.origin.y -= kOFFSETFORKEYBOARD;
    rect.size.height += kOFFSETFORKEYBOARD;
    else
    // If moving down, not only increase the origin but decrease the height.
    rect.origin.y += kOFFSETFORKEYBOARD;
    rect.size.height -= kOFFSETFORKEYBOARD;
    self.view.frame = rect;
    [UIView commitAnimations];
    - (void)keyboardWillShow:(NSNotification *)notif
    // The keyboard will be shown. If the user is editing the author, adjust the display so that the
    // author field will not be covered by the keyboard.
    if ([yourTextField isFirstResponder] && self.view.frame.origin.y >= 0)
    [self setViewMovedUp:YES];
    else if (![yourTextField isFirstResponder] && self.view.frame.origin.y < 0)
    [self setViewMovedUp:NO];
    #pragma mark - UIViewController delegate methods
    - (void)viewWillAppear:(BOOL)animated
    // watch the keyboard so we can adjust the user interface if necessary.
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:)
    name:UIKeyboardWillShowNotification object:self.view.window];
    - (void)viewWillDisappear:(BOOL)animated
    [self setEditing:NO animated:YES];
    // unregister for keyboard notifications while not visible.
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];
    be sure to invoke the method when you dismiss the keyboard, so that the view "falls back" to its normal state:
    if (self.view.frame.origin.y < 0)
    [self setViewMovedUp:NO];
    Of course, declare the method
    (void)setViewMovedUp:(BOOL)movedUp;
    in the .h file
    and the #define you will use in you .m file :
    // the amount of vertical shift upwards keep the text field in view as the keyboard appears
    #define kOFFSETFORKEYBOARD 50.0
    // the duration of the animation for the view shift
    #define kVerticalOffsetAnimationDuration 0.30
    good luck !

  • How to make Viewer default (again)?

    I upgraded Adobe Reader and every time it opens it asks me doe I want it to be my default viewer for PDFs. I always clicked NO but just recently clicked YES by mistake. Now it opens every time to see PDFs.
    I don't really like it, liked Apple Viewer better. How can I make it default again?
    Thank you,
    Zack

    I have nearly the same issue: Acrobat always asks if I want it to be my default viewer. After many dozens of times saying "no," I finally accidentally clicked "yes." (It also has a checkbox called "Don't sk this again," but it still asks every time).
    Anyway, I also want to use Preview as the default, and I can use the Get Info trick, but there's a rub: Before Acrobat did this, there were certain pdf files that I wanted opened in Acrobat, and not Preview. They had the Acrobat icon, not the preview one. If I do the Get Info trick, I have a feeling that they will be changed to open in Preview instead of Acrobat. So my questions are
    1) Will this actually happen?
    2) Where is the info stored that makes it possible for some pdfs to be opened with one app and other pdfs to be opened with another app?
    3) When I accidentally let Acrobat change the default, is this identical to having chosen Get Info on a pdf file and selecting "Change All..." to Acrobat, or is it just changing some system-wide preference about which viewer should be the default—a preference that, I hope, can be changed back.

  • How to make view Java Bean as .ocx file.

    Hi All,
    I want to use a visual Java Bean in Visual basic. So that I can modify all the bean properties as modify properties in a ocx file.
    I used ActiveX Com bridge downloaded from Sun's site. But the packager
    makes a .tlb file .
    This file can only be added as a reference in visual basic but not as a ActiveX control. Is there any way out to do that???
    Thanks & regards.
    Nimesh

    The packager creates a registry file and a tlb file.
    After registering this .reg file, java bean can be used as an ActiveX control.
    From within Visal Basic, select the "Tools" menu and "Custom Controls" item and add the Bean control that was generated.
    Avinash.

  • How to make view disable dynamically

    Hi experts,
    i want to view disable dynamically for this i am not using any view container,can you please suggest me.
    Thanks in Advance,
    Edited by: Lavanya YH1504 on Sep 13, 2010 7:21 AM

    Hi,
    i want to disable the view at the time of display  based on some condition ,for this i didn't use any view container it is simple view for this where i want to write the code (is in wd_init),can u suggest me with some sample code.
    thanks in advance,

  • How to make Help view well on both laptops and desktops

    Hi -- I'm trying to learn RoboHelp 7 and just created my first WebHelp project. I want to show it to a friend, but don't have a server I can publish it to, so I copied all the files onto my flash drive and put it on my laptop. It all works fine, which is a relief -- however, the custom colors are way off, and some of the screenshots are now too big, so the user would have to scroll (which can be annoying). I created it on my desktop and have been looking at it on a larger monitor (1680x1050), but the laptop is old (1024x768). The thing is, a lot of people might have to view it on 800x600.
    I couldn't find any information in RH's Help about how I should have set it up so that it views well on different systems. I'm hoping someone could please advise me as to what I should have done, and if there's anything I can do now to fix it, or point me to some information. I used Arial 10 pt for the text, and now it looks 12 pt. Should I have made it 8 pt? Is there a rule for how large an image should be to be viewed on a laptop and a desktop?
    One last thing, it's too large to put on a CD, so is does anyone know how to make this into an executable?
    Thanks in advance for any help you can give!
    Daryl

    Hi Daryl
    I use an eBook compiler to convert WebHelp to an executable file. You might investigate eBook compilers for that bit. However, I'm not sure how that would help you since a compiler will do little more than to take a swarm of WebHelp files and store them in a wrapper to create a single file. Generally you will end up with something that although it exists as a single file, is larger than what is inside.
    Are you SURE it's too big for CD? CD will hold 650 megs (700 if you buy the extended types).
    On the screen size issue WebHelp itself should adapt fine. Probably it's the images you are concerned with. And the general rule of thumb is to capture images at a reasonable size to begin with. Never EVER just insert a big ole image into RoboHelp and grab the sizing handle to make it smaller. It will still consume a larger amount of space and the quality will suffer badly. So the best approach is to copy the image at a reasonable size to begin with. Something that may fit nicely in the Topic Pane area as it is presented in the space provided by the lowest common denominator. In your case I believe you said that many are still at 800x600.
    Your 10 point text will still be 10 points at a smaller resolution. It will just look a bit different.
    Hopefully this helps... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • How do I view what slide I'm on out of how many I have total in keynote? I know on powerpoint it's at the bottom right of the window but I can't find it on keynote nor can I find the option to make it appear. Any help would be greatly appreciated.

    How do I view what slide I'm on out of how many I have total in keynote? I know on powerpoint it's at the bottom right of the window but I can't find it on keynote, nor can I find the option to make it appear. Any help would be greatly appreciated.

    Your steps so far are OK but you may want to try:
    1 Trash your user library Caches folder (House Icon with short name in Finder window (hard drive window)GOTO:House icon > Library folder > caches folder
    2 Trash the com.apple.Safari.plist file in User library > preferences folder > Safari.plist as well as removing the library Safari folder its self.
    3 you can selectivly re-install Safari 2.0 from your OS Tiger Install disk 1, (see Knowledge base article 301229 for how to just select the Safari Application) without doing a complete system Archive and Install.
    4. Create a new Test user account on the system and test how Safari responds in the Test user, see if its a user related issue and not system issue.
    5. Still no Safari response? have to do an Archive and install (not preserving user and network settings)article 107120
    PS. Issue may be related to actual internet connection connectivity, power cycle cable modem and router or airport if using one as well as the computer(keep unplugged for 3-5 min) and plug the cable modem in and then the router/airport then power on the computer. Do the Airport Admin utiliy (applications, utilities on HD_1)update.
    - do a hard reset of airport knowledge base article 108044(Express base) and 107451 (Extreme base)
    - Check with internet provider for connection issues "cannot find server" ect.

  • How to make a field Mandatory in a Table view?

    How to make a field Mandatory in a Table view?
    The requirement is, the user should not be able to append a new Row, unless and untill he enteres the data in the column SOLD-TO. Now how do i acheive making this field madatory. Normally in Edit form view, we can go in customizing and flag Mandatory, for table view we don't have this option.
    Please can anyone of you guide me in this approach?
    Jagadish.G

    Hi Jagadish,
    have a look in this thread, part of the code you can use in eh_insert method or logic to write enable/disable insert button.
    Re: Assignment Block Mandatory
    regards
    Ismail
    Edited by: Ismail Shaik on Oct 21, 2009 11:36 AM

  • My subscribed calendar does not display in today view in iOS7. Does anyone know how to make it show up?

    I have a subscribed calendar on my iPhone. The today view in notification center shows that I have an event at xxxx and tomorrow view says I have x events but the calendar day view does not display any of the events. I need this so I can easily see which rooms my events are in. Dows anyone know how to make the subscribed calendar show up in calendar day view?

    Interesting. May have uncovered a bug. It seems that limited duration events will display, but all day events wont on mine. (iPhone 5). Does that compare to what you are seeing (unfortunately, I have nothing in a subscribed calendar until the week end, so difficult to check. I do seem to recall seeing an event from one this past week end on the iPad, however).

  • How to make a search button in a view?

    Hi experts,
    Can anyone tell me how to make a button for a search dialog to search a poste (just like which in ppome) in a view?
    Thanks!

    Hi,
    Create  a transaction iview in portal, call the iview in webdynpro.
    use this code to open the iview in webdynpro java.
    WDPortalNavigation.navigateAbsolute
    ("ROLES://portal_content/<Complete Path of Iview>",
    WDPortalNavigationMode.SHOW_INPLACE,
    (String) null,
    (String) null,
    WDPortalNavigationHistoryMode.NO_HISTORY,
    (String) null,
    (String) null,
    (String) null,
    true);
    see this http://help.sap.com/saphelp_nw04s/helpdata/en/c3/235a428a1e9041e10000000a1550b0/frameset.htm
    Regards,
    Naga
    Edited by: Naga Raju Meesala on Sep 8, 2008 7:51 PM

  • 1. How to view my work full screen? 2. How to make "F" keys behave proper?

    Hello All,
    Two softball questions for FCP batting practice:
    1. Somewhere along the way, I came across an explanation on how to make my canvas full screen. I found a post mentioning View, External Video, and something about cinema (not in front of it right now). I don't have an external monitor, so how can I accomlish this on my laptop?
    2. Speaking of laptops, many of the "F" keys don't work as described in the manual. For example, F12 brings up a dashboard with weather in Cupertino, CA. Not exaclty conducive to my workflow. Is there a place to tell the MacBook Pro that when operating this application, default to the "F" commands within the software?
    Thanks All.
    DG

    Hey Steve,
    Point well taken. In the past week, I purchased a camera, Final Cut, MacPro, Mic, Lights, Tripod, etc. I have purchased two books that were recommended on this site (both excellent), and a CD tutorial. I have been out shooting every day, doing tutorials and editing (to the best of my ability) every night. All of that being said, it's a tremendous amount of information, and some of the finer points get lost. I am pleased to say that I have completed my first piece on hunger experienced by seniors in our community. Very gratifying.
    So, I fully appreciate the apparent laziness inferred from my post, but trust me, I'm fully engaged, just overwhelmed.
    Shane, thanks for "pinch hitting". Both solutions worked.
    DG

  • JavaFX 2.0 : How to make a stage fit into browser view area?

    Invoking a JavaFX 2.0 applet from browser results in white spaces on the right and bottom area of the browser. This happens when the JavaFX stage resolutions is lesser than that of browsing desktop resolution. In a client/server model, usually server components doesn't know about the client resolutions. So how to make a stage fit into browser view area?
    Also I think, setting the primary stage to full screen mode is not what I want to achieve, as this mode overlays the browser window.

    Try typing 100% into the width and height fields. Alternatively, you could use Javascript (no connection to Java in spite of the name) to create an event to resize the applet to the window's size.

  • How to make a proactive view of the Logical Disk Free Space

    Hello,
    I was wondering how I could make a view (preferably within a dashboard) that monitors the state of the Logical Disk Free Space values for one or more predefined groups. I can only get this to work with line diagrams but that is pretty hard to read.
    I would like to make views like:
    1) A simple state view that shows the state of the servers (or disks) in three state form (1. Healthy: 80% or lower; 2. Warning: Between 80% and 90%; 3. Alert: 90% or higher).
    2) A view of actual percentages of the disk drives in a table form rather than the usual line diagram.
    I prefer the first one the most and seems to be the easiest aswell but I can't seem to get this to work.
    I hope that this is possible any like to know how to achieve this.
    Thanks in advance,
    Bram

    Hi Bram,
    I think you need to create a new dashboard view for this.
    Make a new management pack for this.
    Once you create a new management pack.
    Go to monitoring TAB
    Locate the management pack there and right click and select new Dashboard.
    Create a summary view dashboard and then once it is created on the right hand side you will see something like
    Performance (Which i edited as LDS report for last 24 hrs as per the screenshot)
    Above that you will have a configure option. Click on it and mention the Object, counter and instance and of the LDS performance counter and mention the report duration (Last 1hr or  24 hrs )once you do this dashboard will start collecting the report
    for you.
    Once you scroll down the report you will get the list of servers in which space is low and how old is that alert
    Below is the screenshot for your reference.
    Gautam.75801

  • How to make Adobe as your default viewer for all your PDF file instead of the Preview given? Thanks

    How to make Adobe as your default viewer for all your PDF file instead of the Preview given? Thanks

    you need to "Get Info" on the file first. Select it, right click and select 'Get Info' in the menu.
    In the window that pops up, near the bottom, the "Open With" drop down menu needs changed. If the drop down menu does not present the one you want, select "Other" and find it.

  • How to make the view larger.

    The older I get the smaller the text on the screen becomes. How can I view Mail in a larger format similar to what I'm able to do in say Safari for instance?
    Thank you.

    Thank you for the quick response.
    Your suggestion was quite useful although the page following the mouse is a bit vertigo-inducing. If there is no other way then I think I should make a suggestion to Apple to give Mail that same functionality available in Safari 4.

Maybe you are looking for