Displaying a message when there are no results from an XSL Query

Using MM_XSLTransform.class.php
I am querying an XML file to produce a list of places whose town name or address match a letter of the alphabet. The letter is passed as a variable in a URL.
XSL:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:param name="letter"/>
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:for-each select="dataroot/CPINFOWEB[Town=starts-with(Town, $letter) or Name=starts-with(Name, $letter)]">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
        <td>
    <a href="detail.php?park={CostCode}"><xsl:value-of select="Name"/></a><br />
          <a href="detail.php?park={CostCode}"><xsl:value-of select="Town"/></a><br />
      <xsl:value-of select="Address"/><br />
      <br />    
      </td>
        </tr>
      </table>
      </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Destination PHP file:
setXML("../regions/CPINFOWEB-mobile.xml"); $mm_xsl->setXSL("list.xsl"); $mm_xsl->addParameter("letter",$_GET['letter']); echo $mm_xsl->Transform(); ?> 
The result Name and Town are displayed as a URL to link to a "more details" page.
All works fine, but when there are no results for a letter of the alphabet I obviously get a blank page.
How do I display a "no results" message instead

I deleted my original reply because the formatting of the XSL code was messed up by the forum. Here's trying again:
Your current code creates a new table for each result. The opening and closing <table> tags should be outside the the <for-each> loop. To deal with the possibility of no results being found, use a conditional statement and the count() function like this:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:param name="letter"/>
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<xsl:for-each select="dataroot/CPINFOWEB[Town=starts-with(Town, $letter) or Name=starts-with(Name, $letter)]">
        <tr>
        <td>
    <a href="detail.php?park={CostCode}"><xsl:value-of select="Name"/></a><br />
          <a href="detail.php?park={CostCode}"><xsl:value-of select="Town"/></a><br />
      <xsl:value-of select="Address"/><br />
      <br />    
      </td>
        </tr>
</xsl:for-each>
<xsl:if test="count(dataroot/CPINFOWEB/Town) &amp;lt; 1">
    <tr>
    <td>No records found</td>
    </tr>
    </xsl:if>
</table>
</xsl:template>
</xsl:stylesheet>

Similar Messages

  • OS X 10.5 Mail shows unread messages when there are none and get ghost messages

    I have been searching for an ansswer to this delimma, but have found similar issues but none exactly the same.  I run 10.6 server and have mixed network users of 10.6 and 10.5 clients.  One of the users on 10.5 's mail app keeps showing unread messages, but there are no unread messages.  When they click on another mail box in the mail client or another folder the number changes, but ther always seems to be one or two.  The user also gets at least 2 blank e-mails in the mail app.  I have check the users web mail account and there are no blank e-mail messages or spam.  I tried to rebuild the mail box, and have also tried trashing the indexs, and they still get the same message.  Short of creating a new user does anyone have any suggestions?  None of my other users seem to have the same problem, although they do not use mail as much as this one user does..... 

    I get this issue every single day, and it is specifically reproducible. Here is the scenario:
    1) I have two mail accounts configured on my iPhone, one is my work account and is disabled on the phone, the other is my gmail account which is always enabled on my phone
    2) Each morning, when I head into work I enabled my work email account so I can start reading my work emails for the day. This downloads all the new messages from the server and displays them as unread.
    3) I read some of them, but not all of them.
    4) Once I get to my office, I read all of the rest of my new work emails from the Mail app on my MacBook Pro.
    EXPECTED: The messages that are read on the mail app are updated as read messages
    OBSERVED: On my iphone, not all of the messages have their statuses changed to read. Some of them always remain as unread messages
    5) Next, I delete some of the messages read from my computer from the email server altogether.
    EXPECTED: These messages would also appear deleted when using the mail app on my iPhone
    OBSERVED: Not only are the messages not deleted, but they are still listed as unread
    The only way to resolve this each day is for me to select each message and view it for a second to have the unread message indicator removed. I have to turn off the mail account and turn it back on for it to correctly sync with the mail server and correct the mistakes.
    There is clearly a problem within the iPhone mail app with retrieving updates from the mail servers.
    I have an iPhone 4 running iOS 4.2.1 that I purchased in November. Before that, I had an iPhone 3G S and never experienced the issue on my 3G S. My MacBook Pro was used with both devices.

  • Having problem with 7.1.2 upgrade, mail icon indicates 70 pending messages when there are none

    Recently upgraded to iOS 7.1.2, the mail icon indicate there are 70 pending messages when in fact there are none

    Recently upgraded to iOS 7.1.2, the mail icon indicate there are 70 pending messages when in fact there are none

  • Message indicator shows messages when there are none

    How to correct the envelope indicator at the top of the screen that shows the number of messages to be 3 when the message & email inbox is empty? I have tried shutting the unit down but it still shows 3 messages and there is none. Help, thanks.
    Solved!
    Go to Solution.

    Hello,
    Please open your message icon and press the menu button(left of the trackball) and click saved messages. Are there any messages in there?

  • Print message when there are no pages to show in output

    Hi,
    I need to give a custom message like "Report did not produce any output due to .... " in the BI publisher report output instead of adobe giving the error 'there are no pages" in the pdf output.
    Any inputs ?
    Thanks&regards,
    Mukthi

    Hi,
    I am getting the same problem. I have the following tags which are causing the issue. If i remove these, it does not show error.
    <?start@last-page-first:body?>
    <?end body?>
    I also have @section for main group. Could that be the issue ?
    Regards,
    Mukthi.

  • Display a message when  an item is selected from a dropdownlist

    Hi,
    I need to display a message(kind of alert message) when certain items are selected from the dropdownlist.
    Let me know what is a good way to do this in web elements?
    Thanks

    hello,
    unfortunately there is no validation / alerting for select menus in webelements.
    however...if you're feeling ambitious and or this is a definite requirement for your project...custom functions are open source so you could write an on change javascript function within the WESelect custom function that will find the new value and compare it against your certain items array of values.
    out of curiosity, what is your project's particular need to have an alert for a select menu based on what the end user selects? if this comes up more often or there's a good use case perhaps this could be built into a future version.
    jw

  • Error In Displaying Message When There Is An Attachment

    I am trying to display an error message in SharePoint 2013. I added the following code
    inside my ItemAdding() event receiver to force it to have error:
    properties.Status = SPEventReceiverStatus.CancelWithError;
    properties.ErrorMessage = "test";
    It
    works okay, I can see the error message. 
    However, when I attach any files, and try again, after saving, the attachment will disappear.
    When I attach again, I will get a server error: 
    Please advise.

    Hi,
    According to your post, my understanding is that you wanted to display error message when there is an attachment.
    You need to add “properties.Cancel = true;” to your ItemAdding() event receiver.
    You can cancel the event using:
    properties.Status = SPEventReceiverStatus.CancelWithError;
    properties.Cancel = true;
    properties.ErrorMessage = "test";
    The properties.Cancel determines if the event should be cancelled.  The default is false but once you set it to true it will cancel the event when the current execution ends.
    Here is a similar thread for your reference:
    http://stackoverflow.com/questions/17828963/custom-error-message-for-event-receiver-in-sharepoint-2010
    More information:
    http://davehunter.co.uk/2009/03/12/sharepoint-event-receivers-by-example-email-validation/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • LOV throws NullPointerException when there are no rows to display

    Hi,
    I have cascading LOVs in my application. I have 3 of them. I select values for the first 2 LOVs, and then I click on the 3rd LOV. The query for the third LOV returns no records from the database and so, a NullPointerException is thrown.
    When there are no rows to display in the LOV, I want the LOV to still pop up with a message saying "No rows to display".
    Is there a way I can achieve this functionality using the existing features?
    I am using JDev 11.1.1.3.0
    Thanks
    Srikanth Addanki

    <RegistrationConfigurator><handleError> Server Exception during PPR, #2
    java.lang.NullPointerException
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.getSearchBinding(FacesCtrlLOVBinding.java:189)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl.getSearchRegion(FacesCtrlLOVBinding.java:1536)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ListOfValuesModelImpl.getQueryModel(FacesCtrlLOVBinding.java:1163)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$InternalLaunchPopupListener.processLaunch(SimpleInputListOfValuesRendererBase.java:1371)
         at oracle.adf.view.rich.event.LaunchPopupEvent.processListener(LaunchPopupEvent.java:108)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:673)
         at org.apache.myfaces.trinidad.component.UIXEditableValue.broadcast(UIXEditableValue.java:210)
         at oracle.adf.view.rich.component.UIXInputPopup.broadcast(UIXInputPopup.java:152)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:292)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Please let me know if I can provide any other info that makes the issue analysis easy.
    Thanks for the quick reply.

  • Since installing iOS 7 messages randomly disappear from the message list.  When I scroll through message from 'Fred' has disappeared. I go to 'Fred' in Contacts, send message and there are the messages.  'Fred' messages then re-appear in Message list. Why

    Since installing iOS 7 messages randomly disappear from the messages list.  When I scroll through message from 'Fred' has disappeared. I go to 'Fred' in Contacts, go to send message and there are the messages.  'Fred' messages then re-appear in Message list. Why?  How to stop messages disappearing from message list?  Thoughts?

    Since installing iOS 7 messages randomly disappear from the messages list.  When I scroll through message from 'Fred' has disappeared. I go to 'Fred' in Contacts, go to send message and there are the messages.  'Fred' messages then re-appear in Message list. Why?  How to stop messages disappearing from message list?  Thoughts?

  • When I try to sync my iPod classic with iTunes 11 I get a message saying there are no Contacts or Calendars on my Mac.  There are

    When I try to sync my iPod classic with iTunes 11 Contacts and Calendars, I get a message saying there are no Contacts or Calendars on my Mac.  There are.

    Go to Settings > General > Usage and see how much is shown available and how much is in "Other".

  • When I OCR two versions of the same document and then compare th documents in Acrobat Pro XI, I usually get the message that there are no changes to mark.  However, I know there a quite a few number of changes.  I raised this question more than a year ago

    When I OCR two versions of the same document and then compare the documents in Acrobat Pro XI, I usually get the message that there are no changes to mark.  However, I know there a quite a few number of changes.  I raised this question more than a year ago, and the response I received had to do with the quality of the OCR and the scans of the documents.  However, if I use Acrobat Pro XI to save the same documents in Word and then run a comparison in Word all of the changes are marked.  When a PDF is saved as a Word document in Acrobat Pro XI, is a different OCR module being used than the one used in Acrobat Pro XI for text recognition?

    OCR is only for recoginition of the image / picture of text provided by an scanner.
    Content typed into a Word file which is converted to a PDF is (in Word and in PDF) *not* an image  or picture of text - it is the digital text. So, no OCR involved.
    When the "digital" (renderable) text of a PDF's page content is exported to Word no OCR is involved.
    When a PDF's content is from the image output of a scanner and this is a picture of text then OCR comes into play.
    If this content is exported to Word before doing OCR then it is the image that is exported to the Word file.
    Once OCR is performed it is the OCR output that is exported.
    OCR output is (always will be) impacted by "the quality of the OCR and the scans of the documents". 
    Regardless "Compare" is based on a Word file output to PDF1 then edits to the Word file followed by an output to PDF2. You use Acrobat Pro to do a compare of PDF1 & PDF2.
    Paper 1 scanned to image 1 to image 1 in PDF1 that gets OCR 1 and
    Paper 2 scanned to image 2 to image 2 in PDF2 that gets OCR 2
    being processed with Acrobat Pro's Compare can certainly be done.
    But - well you've described what can be observed.
    Be well...

  • When i plug in my iphone to the system, itunes does not recognize my iphone. i have tried all the troubleshooting part n there are no results yet. what should i do?

    when i plug in my iphone to the system, itunes does not recognize my iphone. i have tried all the troubleshooting part n there are no results yet. what should i do?

    I have reset my iphone and made sure all updates have been done on my macbook pro and iphone. It was after updating my macpro that I plugged in my phone and went to itunes to backup phone and can't see the device anywhere! I have also done all the troubleshooting that apple.com recommended too...all except re-installing itunes!

  • What does the message "Commit can be issued only when there are no requests awaiting responses" mean ?

    Can someone explain what this message is, and what the reason could be for
              the java.lang.IllegalStateException.
              When such an error is encountered, how can I find out what the
              "RepliesOwedMe" are. The complete exception is as follows
              Any quick hint is greately appriciated
              Thanks
              asankha
              <Sep 6, 2001 12:49:18 PM GMT+06:00> <Error> <EJB> <Exception during commit
              of transaction transactio
              n=(IdHash=8297169,Name = [EJB
              CActionBeanImpl.execute()],Xid=3:c56b8ee8f6114598,Status=Active,numRep
              liesOwedMe=2,numRepliesOwedOthers=0,seconds since begin=0,seconds
              left=29,ServerResourceInfo[weblogi
              c.jdbc.jts.Connection]=(state=suspended,assigned=none),SCInfo[myserver]=(sta
              te=active),properties=({
              weblogic.transaction.name=[EJB CActionBeanImpl.execute()],
              weblogic.jdbc=t3://10.2.1.133:7001, weblo
              gic.debug.DebugContext=weblogic.utils.DebugContext@662250})):
              java.lang.IllegalStateException: Commi
              t can be issued only when there are no requests awaiting responses.
              Currently there are 2 such reque
              sts. xid = 3:c56b8ee8f6114598, status = Active
              at
              weblogic.transaction.internal.TransactionImpl.throwIllegalStateException(Tra
              nsactionImpl.
              java:1272)
              at
              weblogic.transaction.internal.TransactionImpl.checkIfCommitPossible(Transact
              ionImpl.java:
              1206)
              at
              weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransaction
              Impl.java:162
              at
              weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:201)
              at
              com.edocs.wb.web.action.CActionBeanEOImpl.execute(CActionBeanEOImpl.java:37)
              at CeaMarketMainServlet.doGet(CeaMarketMainServlet.java:185)
              at CeaMarketMainServlet.doPost(CeaMarketMainServlet.java:312)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :213)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              ntext.java:12
              65)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              :1631)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              

              This means that the transaction initiator has not received replies for some of
              the transactional requests when the transaction commits, i.e. the checked transaction
              behavior is violated. WLS TM enforces checked transaction behavior to make sure
              that all work done in the transaction context will be completed before transaction
              is committed. If it cannot make such guarantee due to outstanding replies, it
              aborts the commit right away.
              Currently, there is no provisions for dumping the requests whose replies are still
              pending.
              I would suggest you report to BEA support: [email protected]
              Regards,
              Priscilla
              "Asankha C. Perera" <[email protected]> wrote:
              >Can someone explain what this message is, and what the reason could be
              >for
              >the java.lang.IllegalStateException.
              >
              >When such an error is encountered, how can I find out what the
              >"RepliesOwedMe" are. The complete exception is as follows
              >
              >Any quick hint is greately appriciated
              >Thanks
              >asankha
              >
              ><Sep 6, 2001 12:49:18 PM GMT+06:00> <Error> <EJB> <Exception during commit
              >of transaction transactio
              >n=(IdHash=8297169,Name = [EJB
              >CActionBeanImpl.execute()],Xid=3:c56b8ee8f6114598,Status=Active,numRep
              >liesOwedMe=2,numRepliesOwedOthers=0,seconds since begin=0,seconds
              >left=29,ServerResourceInfo[weblogi
              >c.jdbc.jts.Connection]=(state=suspended,assigned=none),SCInfo[myserver]=(sta
              >te=active),properties=({
              >weblogic.transaction.name=[EJB CActionBeanImpl.execute()],
              >weblogic.jdbc=t3://10.2.1.133:7001, weblo
              >gic.debug.DebugContext=weblogic.utils.DebugContext@662250})):
              >java.lang.IllegalStateException: Commi
              >t can be issued only when there are no requests awaiting responses.
              >Currently there are 2 such reque
              >sts. xid = 3:c56b8ee8f6114598, status = Active
              > at
              >weblogic.transaction.internal.TransactionImpl.throwIllegalStateException(Tra
              >nsactionImpl.
              >java:1272)
              > at
              >weblogic.transaction.internal.TransactionImpl.checkIfCommitPossible(Transact
              >ionImpl.java:
              >1206)
              > at
              >weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransaction
              >Impl.java:162
              >)
              > at
              >weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:201)
              > at
              >com.edocs.wb.web.action.CActionBeanEOImpl.execute(CActionBeanEOImpl.java:37)
              > at CeaMarketMainServlet.doGet(CeaMarketMainServlet.java:185)
              > at CeaMarketMainServlet.doPost(CeaMarketMainServlet.java:312)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              > at
              >weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              >:213)
              > at
              >weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
              >ntext.java:12
              >65)
              > at
              >weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
              >:1631)
              > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >>
              >
              >
              

  • Joining 2 related records using PL SQL in Apex - Problems when there are more than 2 related records?

    Hi
    I am combining 2 related records of legacy data together that make up a marriage record.  I am doing this in APEX using a before header process using the following code below which works well when there are only 2 related records which joins the bride and groom record together on screen in apex.  I have appended a field called principle which is set to 'Y' for the groom and 'N' for the bride to this legacy data
    However there are lots of records where in some instances there are 3, 4 , 5, 6 or even 1 record which causes the PL/SQL in APEX to not return the correct data.  The difference in these related columns is that the name of the bride or groom could be different but it is the same person, its just that from the old system if a person had another name or was formally known as they would create another duplicate record for the marriage with the different name, but the book and entry number is the same as this is unique for each couple who get married.
    How can I adapt the script below so that if there are more than 2 records that match the entry and book values then it will display a message or is there a better possible work around?  Cleaning the data would be not an option as there are thousands of rows of where these occurrences occur
    declare 
         cursor c_mar_principle(b_entry in number, b_book in varchar2) 
         is 
              select DISTINCT  id, forename, surname, marriagedate, entry, book,  formername, principle
              from   MARRIAGES mar 
              where  mar.entry   = b_entry
              and    mar.book = b_book
              order by principle desc, id asc; 
         rec c_mar_principle%rowtype;
    begin 
    open c_mar_principle(:p16_entry,:p16_book)  ;
    fetch c_mar_principle into rec;
    :P16_SURNAME_GROOM   := rec.surname; 
    :P16_FORNAME_GROOM   := rec.forename;
                   :P16_ENTRY := rec.entry; 
                   :P16_BOOK :=rec.book;
    :P16_FORMERNAME :=rec.formername;
    :P16_MARRIAGEDATE :=rec.marriagedate;
    :P16_GROOMID  := rec.id;
    fetch c_mar_principle into rec;
    :P16_SURNAME_BRIDE   := rec.surname; 
    :P16_FORNAME_BRIDE   := rec.forename;
                   :P16_ENTRY := rec.entry; 
                   :P16_BOOK :=rec.book;
    :P16_FORMERNAME :=rec.formername;
    :P16_MARRIAGEDATE :=rec.marriagedate;
    :P16_BRIDEID  := rec.id;
    close c_mar_principle;
    end;

    rambo81 wrote:
    True but that answer is not really helping this situation either?
    It's indisputably true, which is more than can be said for the results of querying this data.
    The data is from an old legacy flat file database that has been exported into a relational database.
    It should have been normalized at the time it was imported.
    Without having to redesign the data model what options do I have in changing the PL/SQL to cater for multiple occurances
    In my professional opinion, none. The actual problem is the data model, so that's what should be changed.

  • IPhone 4s has yahoo mail icon permanently on safari when there are no open pages

    My iPhone 4s using iOS7.0.2 has a Yahoo mail icon displaying permanently on the top of Safari when there are no open pages. The icon did not disappear even when I deleted my Yahoo mail account. The icon also has my Yahoo username displayed below it. Is there any way I can remove the Yahoo mail icon from permanently displaying on Safari? I cleared my history, cookies and data, but the Yahoo icon is still there.

    I have the same issue and koban4max's sugggestion doesn't work (well, it works, but you'll need to do it once a day.) I am surprised this hasn't been widely reported either as an iphone, Verizon or Yahoo issue. I tried various suggestions (deleting/re-adding account, moving messages to a new folder and changing password on computer/iphone, etc.) It will push for a while but stop pushing in a few hours or a few days. This leads me to believe somewhere in the interface corrupts the process. I would love to know if it's unique to Verizon, iphone 4S or IOS 5, or all of the above. The phone doesn't even fetch according to schedule, only when you are in the application. BTW, the Exchange push solution for Gmail works wonderfully.
    iphone 4S, IOS 5, Verizon.

Maybe you are looking for