Using CASE in ORDER BY

Hi. I have a select statement that returns a ref cursor for a report I'm working on. My predicament is the order by depends on a parameter provided by the user. If you have any suggestions or related experience, please let me know...I would greatly appreciate it.
-- Requirement is
IF P_SORT = 1 THEN
SORT BY emp_id, emp_name, hiredate
ELSIF P_SORT = 2 THEN
SORT BY emp_name, deptno, hiredate
ELSE
SORT BY emp_id
-- Current statement
SELECT emp_id, emp_name, hiredate, sal
FROM employee
ORDER BY CASE
WHEN P_SORT = 1 THEN 'emp_id, emp_name, hiredate'
WHEN P_SORT = 2 THEN 'emp_name, deptno, hiredate'
ELSE
'emp_id'
END;
The statement is compiling but the order by is not working. I hope this is possible. I've searched here and there and I can only see order by's set with only 1 column and with the same data type as the other option.
Thank you.

Dynamic SQL (you don't know what the query is until runtime), so build the statement string based on the parameter value. Roughly:
v_stmt := 'select this, that, whatever into ... from wherever':
--do the if-then-else or case in PL/SQL
if 1 then v_order := ' order by this, that, whatever';
else
v_order := ' whatever, that, this';
end if;
v_stmt := v_stmt||v_order;
execute immediate v_stmt;

Similar Messages

  • Use case for describing a web service

    Dear all,
    I have a fundamental question for describing a web service.
    An analyst will first write (1) a use case for describing the web service and (2) wsdl and xsd files for describing the web service.
    As a developer, I would say that artifact (2) is enough. As an analyst, I would still need to document the requirement in the format of use case specification. However, it is not clear for me what should be put in this use case specification and what is the added value of such a use case.
    Have you any sample example of this kind of use case in order to describe a web service?
    Thanks in advance.
    Pengyou

    wpafbuser1 wrote:
    First, don't post twice. I'd rather see you bump a post then repost the same question.
    Have you any sample example of this kind of use case in order to describe a web service?First, searching Google will show you millions of use cases you can use as examples. Second, why would you think writing a use case for a Web Service would be any different than any other use case?Sorry for posting twice. I thought the first one failed due to a system error but I was wrong.
    From millions of use case I can not find a "good" one.
    I have in fact two conceptual questions:
    1. I have not much to say about the flow of events. It is simply a request and a response. This is much simpler than a "normal" use case. Am I right?
    2. However, I don't know where to put the description of business logic: 2.1 the data sets to be put in the request and response; 2.2 the business logic to construct the response from the request.
    I would appreciate any hint or discussion.
    Pengyou

  • Case base orders concept

    Hi,
    1. How do we use Case Base Orders in IS-H module?
    2. Will Case Base Orers will be created automatically when we create Case?
    3. Do we directly make postings to Case Base Orders or When we assign services and do billing, will it automatically update?
    Please explain me in details..
    thanks

    There are various use cases which require to place an order without a case assigned.
    For example any order for patients which were not yet treated in the hospital before. In real life you will have quite often calls from external clinics or doctor who would like to perform a certain diagnostic procedure in the hospital. As there are no patient master existing and also no cases, usually the preliminary patient concept is used to capture patient's data.
    By using the preregistration workflow all pending clinical orders you fairly easy used to admit a patient in the clinical process builder application. On performing the admission the clinical order is converted to one with patient and case. All following steps such as performing service will follow the standard procedure as you may know for performing services.
    Cheers,
    Axel Biernat
    Siemens AG
    Product Commercialize - Knowlegde Transfer

  • Any case study on using ERP sales order vs CRM Sales order in IC WEB UI

    Hi All,
    Currently we have a requirement where in agent uses ERP Sales order functionality in IC WEB UI for creating sales order. Incase of any incompleteness in order or any pricing error an activity should get created and should get assinged to Back office guy(CRM User).
    My approach is as follows, we will call a custom FM in CRM from the user exit associated with Sales order transaction, This logic gets executed on save of ERP sales order.This custom FM will create an activity in CRM and assing it to back office guy. Other approach is to use the IDOC linked to the VAO1 transaction which inturns calls the custom fm.
    Can you please suggest if you have any better approach to this.
    Recently we came to know that ERP Sales order has got limited functionalities. If some one has a case study doc on ERP Sales order vs CRM sales order pls give me the ref link.
    Thanks,
    udaya

    Hi Udaya,
    Calling a Customer Specific R/3 Transaciton was quite easy in CRM 4.0 / 5.0 in the PC-UI Framework using Object Links. You can do that all by customizing and creating a custom method for a BOR Object in Transaction SWO1.
    I think I've used CRM_ORDER_MAINTAIN to update the Document Flow. The subsequent activities where created by BAPI_ACTIVITYCRM_CREATEMULTI. I've wrapped all that standard functions in a RFC enabled function module.
    It would be possible to provide also a link in the E-Mail to the Manager but the client is using a Citrix environment to provide access to the Portal. But Outlook runs locally. So we decided to use the standard Portal iView to display the Alerts. When you fill the Alert Container with the elements OBJKEY_GUID, OBJKEY_BOR_OBJECT_TYPE, OBJKEY_CRM_OBJECT_TYPE, OBJKEY_METHOD and OBJKEY_LOGICAL_SYSTEM using the Function Module SWC_ELEMENT_SET that provides a direct link to the specific document too.
    Best regards
    Gregor

  • Can we use Case in Where Clause along with Exists

    Hi Everybody,
    Can we use Case in the where clause with exists? As i have a requirement in which i have to check whether value exists in 6 views, now depending on some value(gns_type )of select clause i have to attach a paticular exists else the performance dies.
    Please go through the query any suggestion appreciated.
    Thanks
    SELECT count(*)
    FROM
    (SELECT eah.changed_date,
    decode(eua.is_deleted, 'N', decode(eah.alert_type, NULL, 'GN', 'R', 'GAR', 'G', 'GAG', 'Y', 'GAY'), 'Y', decode(eah.alert_type, 'R', 'GDR', 'G', 'GDG', 'Y', 'GDY', NULL, 'GN'), NULL, 'GN') AS
    alert_type,
    decode(eac.pta_line, 'N', '') ptaline,
    eac.exp_type_desc,
    eac.supplier_name,
    eac.transaction_id,
    eah.gns_type,
    eac.po_amount,
    eac.po_end_date,
    eah.notes,
    eua.is_deleted,
    eac.expenditure_type,
    eua.gns_alert_summary_id,
    eah.changed_date alert_date,
    eua.user_alert_id,
    eah.reference_number,
    decode(eac.cms_pta_line,'N','',eac.cms_pta_line) cms_pta_line,
    cms_po_amount,
    cms_po_end_date,
    mgns.is_decommitted,
    eac.gns_alert_id,
    eah.gns_type source_name
    FROM xxdl.xxdl_sc_gns_alerts_summary eah,
    xxdl.xxdl_sc_gns_detail_alerts eac,
    xxdl.xxdl_sc_gns_user_alerts eua,
    xxdl.xxdl_sc_manage_gns_master mgns
    WHERE eah.gns_alert_summary_id = eac.gns_alert_summary_id
    AND eah.gns_alert_summary_id = eua.gns_alert_summary_id
    AND eah.transaction_id = eac.transaction_id
    AND eah.transaction_id = mgns.transaction_id)
    a
    WHERE(EXISTS
    (SELECT 1
    FROM xxdl_sc_mng_gns_pta_req_hc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS( SELECT 1
    FROM xxdl_sc_mng_gns_pta_inv_hc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS(SELECT 1
    FROM xxdl_sc_mng_gns_pta_req_sc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS(SELECT 1
    FROM xxdl_sc_mng_gns_pta_inv_sc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS( SELECT 1
    FROM xxdl_sc_mng_gns_pta_po_sc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    OR
    EXISTS (SELECT 1
    FROM xxdl_sc_mng_gns_pta_po_hc_v x
    WHERE x.transaction_id = a.transaction_id
    AND x.source_name = a.source_name
    AND x.project_id = 69309
    AND x.task_id = 242528
    AND x.award_id = 34694)
    AND TRUNC(alert_date) >= TRUNC(add_months(sysdate, -1))
    AND TRUNC(alert_date) <= TRUNC(sysdate)
    AND is_deleted = 'N'
    ORDER BY changed_date DESC

    you can do
    WHERE
    CASE WHEN (something) THEN
      CASE WHEN EXISTS (SELECT * from ...) THEN 1 ELSE 0 END
               WHEN (something else) THEN
         CASE WHEN EXISTS (SELECT * from ...) THEN 1 ELSE 0 END      
    END = 1Looking at your current query, it looks like all those exist statements could be a lot neater, maybe like:
    WHERE (69309,242528,34694) IN
    (SELECT project_id,task_id,award_id FROM
      (Select project_id,task_id,award_id,transaction_id,source_name
      FROM
      xxdl_sc_mng_gns_pta_req_hc_v
      UNION ALL
      Select project_id,task_id,award_id
      xxdl_sc_mng_gns_pta_inv_hc_v
      ...) x
    where a.transaction_id = x.transaction_id
    and a.source_name = x.source_name
    )or put the tuple in the where clause at the bottom

  • Use CASE in HAVING clause

    I feel like this should be simple but it I'm just not grasping it. 
    Say I have this query:
    SELECT order_number, order_date FROM orders
    I basically want to pull any order from the last 24 hours.  Well this is fairly easy for Tue-Fri but when I run the query on Mon, it will have zero results since there are no orders from the weekend.  If the query is ran on Mon it should query
    Fri instead.
    I'm attempting to use case in my having clause but no luck. 
    HAVING (DATEDIFF(dd, GETDATE(), order_date = (CASE order_date WHEN DATENAME(weekday,getdate()) = 'Friday' THEN '3' ELSE '0' END)
    Sure my syntax or parentheses is way off, any help is appreciated.  Thanks.

    Check out the following CASE expression:
    SELECT CASE WHEN datename(dw,getdate()) = 'Monday' THEN
    CONVERT(DATE,(SELECT dateadd(d, -((datepart(weekday, getdate()) + 1 + @@DATEFIRST) % 7), getdate())))
    ELSE CONVERT(DATE, DATEADD(dd, -1, getdate())) END;
    /********* TEST ****************/
    DECLARE @Dt datetime;
    DECLARE @i int = 0; WHILE (@i < 10) BEGIN
    SET @Dt = dateadd(dd, @i, getdate());
    SELECT Today = @Dt, WeekDay=DATENAME(dw,@Dt), PrevBusinessDay= CASE WHEN datename(dw,@Dt) = 'Monday' THEN
    CONVERT(DATE, (SELECT dateadd(d, -((datepart(weekday, @Dt) + 1 + @@DATEFIRST) % 7), @Dt)))
    ELSE CONVERT(DATE, DATEADD(dd, -1, @Dt)) END;
    SET @i += 1; END -- WHILE
    Today WeekDay PrevBusinessDay
    2014-06-20 19:46:45.130 Friday 2014-06-19
    Today WeekDay PrevBusinessDay
    2014-06-23 19:49:04.817 Monday 2014-06-20
    Today WeekDay PrevBusinessDay
    2014-06-24 19:46:45.130 Tuesday 2014-06-23
    Today WeekDay PrevBusinessDay
    2014-06-25 19:46:45.130 Wednesday 2014-06-24
    Today WeekDay PrevBusinessDay
    2014-06-26 19:46:45.130 Thursday 2014-06-25
    Today WeekDay PrevBusinessDay
    2014-06-27 19:46:45.130 Friday 2014-06-26
    Datetime functions:  
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Consider also implementation with a calendar table.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • ISH-CO Integration (Case based order could not be created)

    HI,
    My name is Yael Jacobi; I am a CO implementer in SAP Project in Israel.
    The project is for a hospital in Israel.
    We are trying to implement the integration between the CO (Controlling) and the ISH module.
    I haven't found any valuable information in the internet until now.
    I will be grateful if you could send me any documentation regarding the ISH-CO integration
    I am trying to create a case based order (internal order that should be created for a case in the ISH) but with no success.
    I created an internal order type in CO and customize the relevant data ,in the basic settings for "SAP Healthcare-integration with controlling" ,but no case based order had been created .
    The revenue posted to the profitability analysis segment instead of the case order.
    Maybe do you have any idea why is that and what is missing?
    I would really appreciate it if you could help,
    Thanks in advance;
    Best Regards,
    Yael

    Hi Yael,
    first of all good to hear that you solved the problem. Actually we have a couple of similiar processes where SAP Patient Management uses "standard" ERP functionality in the background. Sometimes it is a good strategy to first check out whether the "standard" functionality works as expected by invoking the respective transactions in ERP manually (using the values which you lateron expect IS-H to use automatically). If they work according to your expectations you can then focus on the IS-H configuration.
    I'd like to come back to your point on the documentation. If you write that you think it was not good enough, I am sure you have some ideas how to improve it? As you may know we are moving more and more into collaborative documentation technology like Wikis. Would you be willing to maybe actively help improving parts of the documentation by sharing some of your experiences and knowlegde?
    For example, we could jointly start a Wiki page on the topic of IS-H/CO integration.
    Please let me know your thoughts.
    Best regards
    Claudius

  • EVO:RAIL - Use Cases?

    I think as soon as the world becomes aware of EVO:RAIL then folks will start asking what the use cases are. It's clear that there are couple of immediate use cases, but I'm betting that customers will bring to the table applications that perhaps we hadn't considered. The other night I was our Tech Summit event (its private event for VMware SE/TAMs to attend prior to VMworld to get them up to speed on what the announcements are all about), and I was approached by a number of SE/TAMs who are interested in running EVO:RAIL in the basements and garages as the foundation to their homelabs. Even with the onsite of Cloud - and we have an internal cloud that SE/TAMs can use demo products to customers - just like the VMware Community they still have a passion for building out their own demos, just how they like them - that they can tailor make to handle customer questions that come up. I'm the same, despite being at VMware for 2+ years, I'm still running my own gear at home. It just worked out more cost effective form my needs than keeping my 42U rack at a colo.
    I doubt that my might the "WAF" would apply to having a 4U box with 4 nodes inside it - in the spare bedroom. So I'm already looking at running EVO:RAIL in a nested configuration on my home lab gear for testing, videos and demos to customers. That work has already been done for the VMworld HoL, by William Lam (the undisputed king of nested ESX, well, perhaps Simon Gallagher comes close!) - who's done some excellent work on this already. So hopefully it won't take much work to get hold of the bits from the HoL, and pump the lastest build of EVO:RAIL into it...
    Anyway, I digress use cases. It's clear that ROBO, SMB and VDI are the top use cases - situations where an appliance like model, with zero configuration (almost!) is needed. I think we perhaps be a bit careful with the SMB use case. EVO:RAIL is 4xNodes in a 4U configuration with each node presenting 192GB of RAM. One thing I've always been concerned with is how variable "SMB" is as term. Over here in a the US an SMB would be classed as company with <1000 employees. Over here in Europe, that would be regarded as still quite large for an SMB.. The same goes ROBO. So I guess what I'm saying is size is relative, and so we have to be careful when use terms like "small".
    Folks who know me will know that I'm a big fan of VMware Site Recovery Manager and vSphere Replication - having written books about the version 1.0, 40 and 5.0 versions. I think there's use case where an EVO:RAIL is put into some colocation facilitiy and used as DR target. The important thing to remember about EVO:RAIL as its based on vSphere 5.5 U2, other products in the vCloud Suite family will work with it - like SRM, View, vCloud Director or vCAC... So its not some special "moded" version of the platform. Perhaps a better model for DR and EVO:RAIL is to run VR locally on it, and use vCloud Air as the target for recovery...? I guess we have to ask the question what's going to be more popular/easier. Two site with EVO:RAIL at either end, or EVO:RAIL enabled for DR to the cloud. Just to be clear. That isn't baked into EVO:RAIL today, I'm just blue sky thinking about the possibilities in the future.
    So what do folks think here? Can you dream up any other scenarios where an EVO:RAIL would be good fit...?

    You make some valid points there, but there's a couple of things that are worth clarifying....
    Firstly, EVO:RAIL is pre-installed at factory. So really the only "installation" is racking up, and connecting to the TOR. In fact I think an EVO:RAIL is easier to setup that a VSA is, and gives more usable disk space, and lower cost per gigabyte..
    IF the customer has given the OEM the IPs, IP Ranges, Hostnames, and Passwords - then it literally is a 15min setup after clicking "Build Appliance". On the other hand if the customer wants to customize the EVO:RAIL prior to build - such as changing the VLANs Tags (That they supplied) that would add a couple of minutes...
    vDS is NOT a prequistie. EVO:RAIL uses standard switches... Although an EVO:RAIL is licensed for Enterprize Plus. There's no requirement to configure a Distributed Switches.
    The real "asks" here is the customer needs 10Gb switch - I think its fair to say that isn't common in SMB/ROBO environment. I suspect many of the OEMs will be asking the customer to validate their switch configuation. Multicast for IPv4/IPv6 is used by the "Zero Network Configuation" on the management/VSAN networks. As the name suggest no configuration is required on the EVO:RAIL, its used as part of the discovery process for finding the nodes, and finding new appliances. One most switches this tick off box option on the switch for the VLANs that require it...
    Anyone of my plans is to order an EVO:RAIL from one of our suppliers just like a customer would, and document/record that process. So i can get a feel for a real world customer experience would be. In fact I might see if my wife, Carmel can set it up... :-)

  • Rss feed won't validate when I use the itunes:order element?

    Hi
    I'm trying to use the <itunes:order> element -
    http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/AddingContent/chapte r12_section3.html
    When I run my feed through the W3C rss validator it won't validate. It says - Undefined item element: itunes:order
    I also get a recommendation which says - Use of unknown namespace: http://www.itunesu.com/feed
    As far as I can tell I'm doing everything correctly. The iTunes and iTunesU namespaces are declared correctly in the root rss element and the itunes:order are where they should be within the <item></item> element.
    What am I doing wrong? Any help would be much appreciated.
    Here's my rss feed -
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:itunesu="http://www.itunesu.com/feed" version="2.0"><channel xmlns:itunesu="http://www.itunesu.com/feed" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"><title>London School of Economics: Public lectures and events : Audio Podcasts and PDF Documents: all items - Dec 31 2099 12:00AM</title><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/</link><description>Audio podcasts and pdf doucments from LSE's programme of public lectures and events</description><itunes:summary>Audio podcasts and pdf doucments from LSE's programme of public lectures and events</itunes:summary><managingEditor>[email protected] (LSE Web Services: Rich Media Producer)</managingEditor><itunes:owner><itunes:name>LSE Web Services: Rich Media Producer</itunes:name><itunes:email>[email protected]</itunes:email></itunes :owner><webMaster>[email protected] (LSE Web Services: Rich Media Producer)</webMaster><language>en-uk</language><copyright>Copyright © Terms of use apply see http://www2.lse.ac.uk/aboutThisWebsite/termsOfUse/</copyright><itunesu:category code="110" text="Social Science"/><category>Social Science</category><itunes:explicit>no</itunes:explicit><itunes:author>London School of Economics and Political Science</itunes:author><itunes:block>No</itunes:block><generator>SQL</generator ><image><url>http://www2.lse.ac.uk/assets/richmedia/webFeedImages/rss_144/PublicLecturesAudio Generic.jpg</url><title>London School of Economics: Public lectures and events : Audio Podcasts and PDF Documents</title><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/</link><width>144</width><height>144</height></image><itunes:image href="http://www2.lse.ac.uk/assets/richmedia/webFeedImages/iTunes_300/PublicLec turesAudioGeneric.jpg"/><pubDate>Mon, 7 Feb 2011 11:45:00 GMT</pubDate><lastBuildDate>Mon, 7 Feb 2011 11:45:00 GMT</lastBuildDate>
    <item><title>LSE Summer School 2010 - Business strategy in a global age [Audio]</title><itunes:author>Professor Costas Markides</itunes:author><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/player.aspx?id=6 94</link><itunes:duration>01:25:21</itunes:duration><itunes:explicit>No</itunes:ex plicit><enclosure url="http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007121730businessStrategyInAGlobalAge.mp3" length="41003598" type="audio/mpeg"/><guid isPermaLink="false">http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007121730businessStrategyInAGlobalAge.mp3?iTunesRSSPublicLecturesandEvents9999AudioTransc riptSlidesDocumentJan1200612:00AMDec31209912:00AM</guid><description>Speaker(s): Professor Costas Markides | Robert P Bauman is Professor of Strategic Leadership at London Business School. Connson Locke is Lecturer in Management at LSE EROB Group.</description><itunes:summary>Speaker(s): Professor Costas Markides | Robert P Bauman is Professor of Strategic Leadership at London Business School. Connson Locke is Lecturer in Management at LSE EROB Group.</itunes:summary><itunes:order>1</itunes:order><pubDate>Mon, 12 Jul 2010 17:30:00 GMT</pubDate></item>
    <item><title>Global Justice [Audio]</title><itunes:author>Professor Amartya Sen</itunes:author><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/player.aspx?id=6 92</link><itunes:duration>01:24:10</itunes:duration><itunes:explicit>No</itunes:ex plicit><enclosure url="http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007081830globalJustice.mp3" length="20233863" type="audio/mpeg"/><guid isPermaLink="false">http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007081830globalJustice.mp3?iTunesRSSPublicLecturesandEvents9999AudioTranscriptSlidesDocum entJan1200612:00AMDec31209912:00AM</guid><description>Speaker(s): Professor Amartya Sen | In the first dialogue of the Global Policy Dialogue series, Amartya Sen and David Held will discuss Sen's new book, The Idea of Justice. Injustices in the contemporary world include global inequities as well as disparities within nations. Understanding the demands of justice in each context requires public reasoning, and the challenges of global justice specifically call for global public reasoning. The Idea of Justice also investigates the contributions of human rights movements to the removal of some of the nastiest cases of injustice in the world in which we live.</description><itunes:summary>Speaker(s): Professor Amartya Sen | In the first dialogue of the Global Policy Dialogue series, Amartya Sen and David Held will discuss Sen's new book, The Idea of Justice. Injustices in the contemporary world include global inequities as well as disparities within nations. Understanding the demands of justice in each context requires public reasoning, and the challenges of global justice specifically call for global public reasoning. The Idea of Justice also investigates the contributions of human rights movements to the removal of some of the nastiest cases of injustice in the world in which we live.</itunes:summary><itunes:order>2</itunes:order><pubDate>Thu, 8 Jul 2010 18:30:00 GMT</pubDate></item>
    <item><title>The Secret State: preparing for the worst 1945-2009 [Audio]</title><itunes:author>Professor Peter Hennessy</itunes:author><link>http://www2.lse.ac.uk/newsAndMedia/videoAndAudio/publicLectures/player.aspx?id=6 91</link><itunes:duration>01:15:14</itunes:duration><itunes:explicit>No</itunes:ex plicit><enclosure url="http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007071830theSecretStatePreparingForTheworst1945-2009.mp3" length="36141201" type="audio/mpeg"/><guid isPermaLink="false">http://richmedia.lse.ac.uk/publicLecturesAndEvents/201007071830theSecretStatePreparingForTheworst1945-2009.mp3?iTunesRSSPublicLecturesandEvents 9999AudioTranscriptSlidesDocumentJan1200612:00AMDec31209912:00AM</guid><description>Speaker(s): Professor Peter Hennessy | Peter Hennessy will examine the most secret files recently declassified from the Cold War years and contrast the Secret State of the 1940s, 50s, 60s, 70s and 80s with the the new protective state the UK has constructed since 9/11. Peter Hennessy is Attlee Professor of Contemporary British History at QMUL and was recently elected a Fellow of the British Academy as well as being an Honorary Fellow of LSE. Before joining the Department in 1992, he was a journalist for twenty years with spells on The Times as a leader writer and Whitehall Correspondent, The Financial Times as its Lobby Correspondent at Westminster and The Economist. He was a regular presenter of the BBC Radio 4 Analysis programme from 1987 to 1992. In 1986 he was a co-founder of the Institute of Contemporary British History.</description><itunes:summary>Speaker(s): Professor Peter Hennessy | Peter Hennessy will examine the most secret files recently declassified from the Cold War years and contrast the Secret State of the 1940s, 50s, 60s, 70s and 80s with the the new protective state the UK has constructed since 9/11. Peter Hennessy is Attlee Professor of Contemporary British History at QMUL and was recently elected a Fellow of the British Academy as well as being an Honorary Fellow of LSE. Before joining the Department in 1992, he was a journalist for twenty years with spells on The Times as a leader writer and Whitehall Correspondent, The Financial Times as its Lobby Correspondent at Westminster and The Economist. He was a regular presenter of the BBC Radio 4 Analysis programme from 1987 to 1992. In 1986 he was a co-founder of the Institute of Contemporary British History.</itunes:summary><itunes:order>3</itunes:order><pubDate>Wed, 7 Jul 2010 18:30:00 GMT</pubDate></item>
    </channel>
    </rss>

    I have been in touch with someone at Apple and I was advised that I shouldn't worry about this.
    It would seem that the feed validator doesn't recognise the iTunes U namespace and some of the iTunes and iTunes U specific feed elements. The use of an unknown namespace gives an adviosry note and <itunes:order> and <itunesu:category> elements will not validate at all. I suspect there may be other elements that I haven't used in our feeds.

  • A Use Case question.

    Hello all
    I am currently developing an event management assignment for my degree.
    A subset of problem statment
    Attendee is a person, who would register with the application
    in order to view the posted events.
    For this part of the problem statment i have identified a usecase
    "register attendee".
    I will type the use case here. Since i am a novice, I would really like
    design gurus to throw some light on the use case and suggest me changes
    I will really appreciate it.
    Use case : register attendee
    Pre-condition: Attendee decides to register.
    Main Success Scenario:
         Actor                         System
    1. Attendee requests to register.
                        2. Provides registration form.
    3. Attendee fills the form and
    submits.                     
                        4. System checks for valid
                        authentication.
    (//for eg. unique username)
                        5. System validates the information
    (//for eg.compulsory fields
                             present or not)
                        6. System notifies through mail.
                        7. Displays registration was
                        successful.
    Alternative Flow :
    4 a) Invalid authentication : Displays appropriate message.
    5 a) Invalid information : Displays appropriate message.
    6 a) Mail notification failure : Logs the failure message and email.
    Please guide me friends. I am a bit confused.
    Thanks in advance.
    Jenny               

    Use case are pretty good for both of these. You know
    your system needs to allow an ATTENDEE to register
    with the SYSTEM using a REGISTRATION FORM. These sound
    like things that either you need to model (what
    attributes do the form and attendee have) or a thing
    that you need to build the "system".
    The steps in the use case tell you how the system must
    behave. It needs to "getRegistrationForm" and give it
    the attendee. The Attendee needs to
    "completeRegistrationForm" and
    "submitRegistrationForm". So, with the authentication
    and validation rounding out the process you have a
    good idea of what kind of methods you need as a base
    in order to deal with the real world concepts you have
    identified.I am through with what behaviour my system will need to provide in
    order to realize the use case. But I will have to assign the behaviour
    appropriately to classes of objects. I would like to go to the design model once i have a good understanding of the domain model. This is where the problem starts, should i identify, AuthenticationVerifier,InformationVerfier as different concepts and give later say AuthenticationVerifier the responsibility of verifying unique authentication and InformationVerfier the responsibility of verifying information received with the form or should I only take one concept of say Administrator that would perform the above two stated behaviours. I understand that it is always good to overspecify concepts rather than under specify but at some point of time i will have to make that decision.
    If its a libray system, it is easy to identify certain priliminary concepts say book, patron, etc. as they occupy some physical space. But here nothing is clear. There isn't any entity in my use case, that occupies a physical space that i can easily identify as a real world concept.
    My question is, how in this case, do someone define the notion of concept when there is nothing in the main success scenario that occupies space. My use case, only specifies what will be done with the
    attendee information, not who will do it. So as a use case developer, am i responsible to map these processes with some physical entities that i have derived for eg. AuthenticationVerfier.
    ps. You will need to add the Attendee as an Actor. She
    is the one that is initiating the activity.Does it mean that as Attendee is an actor, he/she cannot be a concept?

  • What is the use of Framework Order type purchase order ?

    what is the use of Framework Order type purchase order ? How it differs from other regular type?

    Hi,
    The document type of Framework Order is "FO" .The regular use of document type for purchase order is "NB".The use of "NB" and "FO" Document type in Purchase order  to differentiate the how your material behave or to have different different purchasing document.
    Example:Document type "NB" have to the process like Goods Receipt,inoice receipt & payment .In the case of Document type "FO" no Goods Receipt required but IR and payment  have to be done."FO"(Framework Order) only deals with low value item with validity period as well as the limits on value/price.
    Hope helpful to you and then reward.
    Regards,
    Biju K

  • Ordering using Unit-Of-Order

    Hello All,
    I was going through the oracle docs to understand how Unit Of Order works and came across this case study below:
    The sequence is
    Joe clicks the order button from his shopping cart.
    The order message (message A) is placed on Queue1
    Joe cancels the order
    My question is since the order message is still on Queue1 and is not in the database yet; there is no order to cancel. So, in step 3 Joe cancels which order?
    I hope to get some clarification about the unit of order from the experts in the group.
    Thanks
    Purnima
    Workflow for Joe’s Order Using Unit-of-Order
    Joe clicks the order button from his shopping cart.
    The order message (message A) is placed on Queue1.
    Joe cancels the order.
    The cancel order (message B) is placed on Queue1.
    MdbX takes message A from Queue1.
    MdbY takes message B from Queue1.
    Message B on MdbY is blocked until MdbX acknowledges the order message. See What Happens When a Message Is Delayed During Processing?.
    Message A is committed and written to the database.
    Message B is committed and written to the database.
    Because there is a corresponding order message, Joe’s order is removed from the database and he does not receive a book.

    use xa connection factory

  • Cannot Record Material Inspection Results as per wiki use case * SOLVED *

    === EDIT ===
    Playing around, I solved my issue.
    I did not realize that I needed to set both flags
    CloseIndicatorSpecified  = true;
    CloseIndicator = false;
    Adding that fixed it; I suspect I cannot set them to null even if the WSDL allows it.
    Michel.
    === ORIGINAL POST ===
    Hi,
    I have a project to integrate SAP and our LIMS using the SAP web services with the Material Inspection business object.
    In the Wiki, there are a few [use cases|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/ESpackages/IntegrationofQualityManagementSystems] on the subject.
    Following that, I successfully retrieve all the required data using the following web services:
    [Find Material Inspection Basic Data by Elements|https://wiki.sdn.sap.com/wiki/display/ESpackages/FindMaterialInspectionBasicDatabyElements]
    [Find Material Inspection Subset Operation by Elements|https://wiki.sdn.sap.com/wiki/display/ESpackages/FindMaterialInspectionSubsetOperationbyElements]
    [Find Subset Operation Inspection Activity Basic Data by Elements|https://wiki.sdn.sap.com/wiki/display/ESpackages/FindSubsetOperationInspectionActivityBasicDatabyElements]
    [Read Subset Operation Inspection Activity|https://wiki.sdn.sap.com/wiki/display/ESpackages/ReadSubsetOperationInspectionActivity]
    From there, I want to record results. According to the Wiki , I should use
    [Record Subset Operation Inspection Activity Result|https://wiki.sdn.sap.com/wiki/display/ESpackages/RecordSubsetOperationInspectionActivity+Result]
    I tried directly through the [WS Navigator|http://sr.esworkplace.sap.com/webdynpro/dispatcher/sap.com/tcesiespwsnavui/WSNavigator] to test web services. Whenever go through that tho, I get the following error:
    Conversion Error: Invalid Input Format (701 SFB)
    Obviously, I get the exact same error using c# (at least I'm consistent!)
    Below is the code (some is truncated because it is too long but I think you can get the idea).
    The question: Can anyone help me understand why I am getting that error? Maybe there is one or more property I don't understand... It would be practical if the actual failing property was identified in the LogItem, but it is not.
    Some things I tried (to no avail):
    1. Tried all sort of combination for actionCode
    2. Removed actionCode and set actionCodeSpecified = false
    3. Removed the Measure property
    4. Removed the Text property
    5. Removed the ChangeStateID
    Thanks in advance!
    Michel
    ...RequestMessage_sync messageIn = new ...RequestMessage_sync();
    messageIn.MaterialInspection = new u2026RequestMessage_syncMaterialInspection();
    messageIn.MaterialInspection.ID = new MaterialInspectionID();
    messageIn.MaterialInspection.ID.Value = "3265";
    messageIn.MaterialInspection.ChangeStateID = "1";
    messageIn.MaterialInspection.Subset = new u2026RequestMessage_syncMaterialInspectionSubset();
    messageIn.MaterialInspection.Subset.ID = new InspectionSubsetID();
    messageIn.MaterialInspection.Subset.ID.Value = "0";
    messageIn.MaterialInspection.Subset.Operation = new u2026RequestMessage_syncMaterialInspectionSubsetOperation();
    messageIn.MaterialInspection.Subset.Operation.ID = "0300";
    u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivity activity = new u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivity();
    activity.ID = "0010";
    activity.CloseIndicatorSpecified = false;
    activity.Result = new u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivityResult[1];
    activity.Result[0] = new u2026RequestMessage_syncMaterialInspectionSubsetOperationInspectionActivityResult();
    activity.Result[0].ID = "0001";
    activity.Result[0].AcceptanceStatusCodeSpecified = false;
    activity.Result[0].DefectNumberValueSpecified = false;
    activity.Result[0].ExceptionIndicatorSpecified = false;
    activity.Result[0].InspectedNumberValueSpecified = false;
    activity.Result[0].Comment = string.Empty;
    activity.Result[0].NonConformingUnitNumberValue = 0;
    activity.Result[0].Measure = new Measure();
    activity.Result[0].Measure.Value = decimal.Parse("4.15";);
    activity.Result[0].Measure.unitCode = "AMP";
    activity.Result[0].Text = new Text();
    activity.Result[0].Text.Value = "Some Text Here";
    activity.Result[0].actionCode = ActionCode.Item01 |ActionCode.Item02 | ActionCode.Item03;
    activity.Result[0].actionCodeSpecified = true;
    activity.CloseIndicatorSpecified = false;
    messageIn.MaterialInspection.Subset.Operation.InspectionActivity = activity;
    messageIn.MessageHeader = new BasicBusinessDocumentMessageHeader();
    messageIn.MessageHeader.ID = new BusinessDocumentMessageID();
    messageIn.MessageHeader.ID.Value = "starlims_update";
    try
          u2026ConfirmationMessage_sync messageOut = ws.MaterialInspectionSubsetOperationInspectionActivityResultRecordingRequestConfirmation_In(messageIn);
          if (messageOut.Log.Item != null)
                string message = String.Empty;
                foreach (LogItem item in messageOut.Log.Item)
                      message += (item.Note + "\n");
                MessageBox.Show(message);
    catch (Exception ex)
          MessageBox.Show(ex.Message);
    Edited by: Michel Roberge on Jul 16, 2008 2:38 PM

    See post for solution.

  • Use case export to text document

    In Jdeveloper you can export generated UML use case with scenarios, to HTML format, however is it possible to generate to say .txt or .doc type files?
    I am looking at a very good commercial product called Visual Use Case and wondered if JDeveloper's generated documentation has/can have similar features.
    Thank you

    Hi,
    there is SDE plugin for JDeveloper ( http://www.visual-paradigm.com/product/sde/jd/ ) but it only works with older - 10.1.2 version of JDev.
    Kuba

  • Use case for showing records in report view BAM based on version number

    Hi,
    I have a use case to update records based on version no. Let say I have a table or data object in BAM called 'Notes'. The Notes dataobject has three fields Id, Version, Description. The Notes data is displayed in a BAM report. I need to just display the latest version of the Notes. Say two records with one with Id as '124' and Version '4' and another with Id as '124' and version as '5'. The record related to version 5 should be dispalyed to user. How will I introduce this check in BAM reports for the latest version?
    Thanks
    Edited by: user5108636 on 28/06/2010 16:47

    That you see you're prints only means that your method outta called. The code creates a new row, but never inserts the row into the rowset. Then you call execute query which loses any connection to the new route which is not part of the rowset.
    First action would never to call insertRow(r1) on the view object.
    If you change data this way, only the model layer knows about it, the ui can't know about this (one of the disadvantages of using plsql or this construct you try). You have to tell the view controller to update it's data to. For this you can execute the iterator in the binding layer and/or ppr the container showing your data.
    Then I don't see any complicated plsql called do I question if a programmatic co is necessary.
    Timo

Maybe you are looking for

  • Want to use Time Capsule as external hard drive / Time Capsule als externe Festplatte

    Can somebody tell me what steps I have to take to use my TC as an external hard drive? Thanks! / Kann mir jemand einmal genau erklären, wie ich meine Time Capsule als externe Festplatte für meine Fotos etc. nutzen kann? Mein 128 GB Mac Book Air kommt

  • LR 5 "encountered error reading preview cache need to quit.

    LR main menu screen appears, but message pops up "encountered error reading preview cache need to quit.  Restarted several times but no change.  Message indicates it will attempt to resolve next time it starts, issue still remains

  • Error when comiling formula in OFA 6.3.4 web client

    When using OFA 6.3.4 for web we get the following error message displayed : The formula, xxx, could not be compiled. It will be removed from status Pleas contact your database administrator. It is no error number displayed, just the error message abo

  • CS5 64 bit and 32 bit versions

    Sorry if this has been asked before, but I didn't find anything when I searched. I've just bought a new 64 bit PC and intend to upgrade from CS3 to CS5. However, my laptop is 32 bit. My question is, does CS5 come with both 64 bit and 32 bit on the sa

  • Downloading OS X Lion

    Was in the middle of downloading OS X Lion, when my wireless connection disconnected.  Now it's back up, but I can't tell if it's continuing to download or not.  And don't know how to check.  Any help is welcome!