Eight hidden rows made visible one at a time with one button.

I have a table with eight (8) hidden rows. I want to make one row visible each time I click a button. Each button click makes the next row visible until all eight are showing. Is there a way to do this? I am using this script to delete individual rows.
FRM-MEG-02-NoRev.Action.Table1.MoreActions.Delete::click - (JavaScript, client)
// Prompt the user
var nResponse = xfa.host.messageBox("You are about to delete this row. \n\nDo you want to continue?", "Deleting a row", 1, 2)
// Test the response: Yes = 4
if (nResponse == 4) {_MoreActions.removeInstance(this.parent.index);
     // You deletion script
// Invoke the Instance Manager to remove the current instance of the detail subform.

Hi,
Are the rows populated with data when they are hidden? Would it be better to start off with no rows and then add a new row?
It should be possible to test the presence of the row in a loop and then take appropriate action. But I think the add/delete would be better than presence/delete.
Niall

Similar Messages

  • Hidden Objects made visible, hidden again upon saving?

    Hello,
    I've created a form where I have a master drop down list which causes other "hidden" drop downs to become visible depending upon the selection from the master.
    I have the master drop down, and four "hidden" drop downs. Depending on which selection is made in the first drop down list, one of the secondary drop downs then becomes visible. This all works just fine in the pdf form, until I try to save. As soon as I fill out the form, and save, everything that had become visible is now hidden again!
    I have been trying to play with the action builder and figure out why, but with no success. Does anyone have any idea what the problem is?
    Thanks!

    1) Add another action to your master drop down. Add two conditions: 'is initialized' and 'text selected' with the value you want selected. Then add the same result as you did with your first action.
    2) Stop using action builder
    Kyle

  • Hidden files made visible?

    My mac has recently has been reformatted and I'm using houdini to retract all my music off my ipod classic. Now I have all the files, I can't make them visible on Mavericks to import back into my itunes? How do I do this please?

    Thank you for the clarification.
    There may be a way to do what you want through the Terminal.  I am not a Terminal user/expert.  However, there are Terminal knowledgeable users who should be able to help you.
    In the meantime you may wish to use this free utility called Find File for Mac.  This utility searches files in the trash.  I use it myself.

  • VO got executed but is not showing the rows on the page the first time

    Hi, Below are my senario:
    I have one jspx which contain a panel tab and 2 tabs inside it: tab A and tab B, under each tab is its own taskflow, jsff page, and its own AM and datacontrol also.
    tab A have a table
    tab b have a table with search panel. The view criteria that used to generate the search panel is not check "Run Automatically"
    What I am trying to do is in tab A, user can select some rows and click one button, then below action happen:
    1. the id of the selected rows will be pass to a AM method of tab B as string that separated by comma, and this AM method will execute the VO that the table of Tab B is based on
    2. set tab b disclosure to be true to show tab B
    3. The row that selected in Tab a will be shown in the table of tab b
    Below are the code in the AM of tab b, it is exposed to client and it will be invoked by the button actionlistener of Tab A from the bean:
    public void applyDashbaordViewCriteria(String listOfPS) {
    if (listOfPS != null) {
    PullSequenceSetupVOImpl psvo = this.getPullSequenceSetupVO2();
    ViewCriteria vc = psvo.createViewCriteria();
    vc.setName("PSDashboardVC");
    ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
    ViewCriteriaItem vcItem =
    vcRow.ensureCriteriaItem(PullSequenceSetupVORowImpl.PULLSEQUENCEID);
    vcItem.setOperator(JboCompOper.OPER_IN);
    vcItem.getValues().get(0).setValue(listOfPS);
    vc.add(vcRow);
    psvo.applyViewCriteria(vc);
    psvo.executeQuery();
    However my issue here is:
    Whenever the first time entering the page, which will show tab A, I select some rows in the table and click the button, AM got executed correctly and before it leave above code, VO executed and row count is correctly match with what user selected in Tab A. However, the rows in the vo is not showing in tab B. Table in tab B show no rows.
    Workaround for the issue:
    If first time entering the page, I go to tab B first, without doing anything then come back to tab A, select some rows and click the button again, then this time, the row I selected start showing in the table of Tab B.
    So my question is, how can I solved this issue to make the selected rows show in tab B without going to tab B to load the page first? Is that something to do with datacontrol scope?
    I am using Jdev 11.1.1.3.0
    Thanks.

    Hi, now I think i know what is the root cause:
    I overide executeQueryForCollection and executeQuery method in the VOImpl that table of Tab B is based on. And I notice the following:
    Even when select row in tab A and click the button to call AM method to apply the view criteria and execute the query to return some row, when tab b loading the first time, I notice executeQueryForCollection is being fired again and invoked by executeEmptyRowSet.
    It looks to me that even thought before the page load, VO already executed and have some row, somehow when ADF load the page, it will empty all the rows in the VO. And also since I have a query panel which I uncheck the Query Automatically. So even my applied view criteria still there, but VO will not get re executed again and show the result.
    I think that is why this issue is happening. And also, that is why if I navigate to tab B first and come back to Tab A, now perform the same action, the selected rows start showing on the page.
    Anybody can help me how can I resolved this issue? And also, I don't want to check the "Query Automatically" of the view criteria that I used to genreate the search panel because it may impact the performance.
    Edited by: user10867484 on Apr 21, 2011 2:48 PM

  • How to move a selected row data from one grid to another grid using button click handler in flex4

    hi friends,
    i am doing flex4 mxml web application,
    i am struck in this concept please help some one.
    i am using two seperated forms and each form having one data grid.
    In first datagrid i am having 5 rows and one button(outside the data grid with lable MOVE). when i am click a row from the datagrid and click the MOVE button means that row should disable from the present datagrid and that row will go and visible in  the second datagrid.
    i dont want drag and drop method, i want this process only using button click handler.
    how to do this?
    any suggession or snippet code are welcome.
    Thanks,
    B.venkatesan.

    Hi,
    You can get an idea from foolowing code and also from the link which i am providing.
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    width="613" height="502" viewSourceURL="../files/DataGridExampleCinco.mxml">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.binding.utils.BindingUtils;
    [Bindable]
    private var allGames:ArrayCollection;
    [Bindable]
    private var selectedGames:ArrayCollection;
    private function initDGAllGames():void
    allGames = new ArrayCollection();
    allGames.addItem({name: "World of Warcraft",
    creator: "Blizzard", publisher: "Blizzard"});
    allGames.addItem({name: "Halo",
    creator: "Bungie", publisher: "Microsoft"});
    allGames.addItem({name: "Gears of War",
    creator: "Epic", publisher: "Microsoft"});
    allGames.addItem({name: "City of Heroes",
    creator: "Cryptic Studios", publisher: "NCSoft"});
    allGames.addItem({name: "Doom",
    creator: "id Software", publisher: "id Software"});
    protected function button1_clickHandler(event:MouseEvent):void
    BindingUtils.bindProperty(dgSelectedGames,"dataProvider" ,dgAllGames ,"selectedItems");
    ]]>
    </mx:Script>
    <mx:Label x="11" y="67" text="All our data"/>
    <mx:Label x="10" y="353" text="Selected Data"/>
    <mx:Form x="144" y="10" height="277">
    <mx:DataGrid id="dgAllGames" width="417" height="173"
    creationComplete="{initDGAllGames()}" dataProvider="{allGames}" editable="false">
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:FormItem label="Label">
    <mx:Button label="Move" click="button1_clickHandler(event)"/>
    </mx:FormItem>
    </mx:Form>
    <mx:Form x="120" y="333">
    <mx:DataGrid id="dgSelectedGames" width="417" height="110" >
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Form>
    </mx:Application>
    Link:
    http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/ae9bee8d-e2ac-43 c5-9b6d-c799d4abb2a3/
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • Generating pdfs with invisible sections made visible through code

    I have a survey with several question that are either visible or hidden based on the user's selection from a Yes/No radio button group.  The user can then either submit the survey by e-mail or print the survey.  If the user prints the survey before submission, all of the invisible portions that the user's input has rendered visible are included in the printed copy; however, when the pdf is generated to be attached to the e-mail submission or saved using the Save As option, the elements that were made visible by code are not included in the pdf.  The following is the code being used in the Yes radio button:
    Comp4WhenImplementText.presence = "invisible";
    Comp4WhenImplement.presence = "invisible";
    Comp4MajorFactorText.presence = "invisible";
    Comp4WhenImplement.Comp4When03 = 0;
    Comp4WhenImplement.Comp4WhenNever = 0;
    if (Comp4No.selectedIndex != -1 ||
      Page3.Comp1.Comp1No.selectedIndex != -1 ||
      Page4.Comp2.Comp2No.selectedIndex != -1)
    CorrectiveAction.presence = "visible";
    else
    CorrectiveAction.presence = "invisible";
    The code in the No radio button is as follows:
    Comp4WhenImplementText.presence = "visible"
    Comp4When.presence = "visible"
    CorrectiveAction.presence = "visible"
    The code in the e-mail submit button:
                   form1.#subform[12].Button2::click - (JavaScript, client)
                   if (CorrectiveAction.presence == "visible")
                      if ((CorrectiveAction.rawValue == null) || (CorrectiveAction.rawValue == ""))
                   else
                   Button1.execEvent("click");
                   else
                   Button1.execEvent("click");
    Button1 is invisible and layered under the visible e-mail submit button.  It actually submits the pdf by e-mail.  The visible button performs a test and displays a message to the user if the user's survey answers fail.  I have also tried "hidden" in all of the areas that are listed as "invisible".
    What should be added or changed so that the invisible elements of the survey that are rendered visible by code can be seen in the pdf of the survey.  Any assistance would be greatly appreciated.

    There is a setting that indicates to save the changes amde via code to the form when saved. In Designer goto the File/Form Properties/Defaults and ensure that the Radiobutton named Automatically under the Preserve Scripting changes to form when saved is set on.
    Paul

  • Office 2013 slow calculation when it contains hidden rows

    Hi,
    a colleague of mine has a very big excel sheet filled with product information.She recieves this from hq in japan.
    When we want to filter on product, it takes excel 1 minute to recalculate each time we select a different product.
    After a bit of experimenting , I've noticed that this is cause due to hidden rows/columns in the excel sheet.
    when i make it visible then it works like a charm.
    Is there a solution to this matter so that we can keep our rows and columns hidden because now we get to see too much data so it isn't easy to comprehend the file anymore.

    Hi,
    As far as I know, the "Filtering & hidden rows" are volatile actions that trigger a recalculation. It'll consume a lot of resource. We may try the following steps to improve Excel calculation performance.
    Use 64-bit Excel instead of 32-bit version.
    Processor Speed and Multiple Cores
    Add PC's RAM
    For more detail information, please refer to the following link:
    http://msdn.microsoft.com/en-us/library/office/ff700515(v=office.15).aspx#Office2007excelPerf_MakingWorkbooksCalculateFaster
    ======
    On the other hand, I recommend you use the big Excel file as database and re-create an Excel to read/report the data which you want. We can use
    PivotTable, PowerPivot and other Power BI add-ins to help us get/analyze the data. They are displayed the data which you want and hidden the data that you do not need.
    More reference:
    https://support.office.com/en-US/Article/Tutorial-PivotTable-data-analysis-using-a-Data-Model-in-Excel-2013-f9ad8310-3b5b-48a3-913d-5cc1b364ee46?ui=en-US&rs=en-US&ad=US
    http://office.microsoft.com/en-us/excel-help/overview-of-pivottable-and-pivotchart-reports-HP010342752.aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in
    Office programs.

  • Cut & Paste Hidden Rows.

    This is a fun problem. I use Excel as my main but i am running Numbers along side to test it so i can switch my office over. I have a Sheet that has multi hidden rows(for ex. an invintory list that has items not used any more) As I cut the data from Excel and paste into Numbers the hidden cells are ignored making the pasted data unuseable. Any Ideas?

    The problem is that the clipboard format that both Excel and Numbers can use to interchange data is very weak (this is a guess, I don't have access to Excel for Mac right now to verify, but it is almost certainly the case). This format is basically tab delimited text; no formatting, no cell properties or the like carries over on a copy from one into a paste on the other, just textual values. Copy and paste of the hidden property of the rows in Excel isn't going to happen.
    I think to migrate this data from Excel to Numbers you'll need to do something rather heavy handed. Perhaps there is a column (or one could be added to the Excel sheet temporarily) that would have, say, 1's for shown rows and 0's for hidden. (Maybe it possible for an Excel whiz here on the forum can concoct a formula that computes this). Then, with all rows shown in Excel, select the new column and the other data and copy and paste into Numbers. Now in Numbers, you'll want to re-establish the hidden rows. This can be done superficially by filtering the rows using "Sort & Filter". If this "light weight" hiding is not desirable, perhaps someone else on the forum can think of a way to actually hide the rows based on the 1's and 0's column. I tried a couple of things but failed.

  • Is anyone facing the similar problem of visible lag while opening app with 3G data on? It seems apple has made 5s slow to improve iphone 4 performance.5s was very smooth on 7.0.6 even with 3G data on. Is this a bug? Is apple going to fix this soon?

    Is anyone facing the similar problem of visible lag while opening app with 3G data on? It seems apple has made 5s slow to improve iphone 4 performance.5s was very smooth on 7.0.6 even with 3G data on. Is this a bug? Is apple going to fix this soon?

    I have same Problem. I tried all options - Reset All Settings, Erase Content & reset all settings, Upgrated to IOS8.1, Restore using iTune. But problem persists.
    When I turn Cellular Data or Wifi ON, then there is a lag while opening the Apps. But If I turn Data/Wifi off, phone becomes super fast. I have checked with my friends. They are not facing this issue. Not sure if Apple know this.

  • How to find out if JTable's selected row is visible?

    Hello there,
    Given:
    a JTable is inserted into a JScrollPane and the number of rows in the table is greater than the vieport size.
    A random row within the table gets programmatically selected.
    How to find out if the selected row is visible in a JTable visible area?
    Your help will be greatly appreciated.
    Tim

    That will make the row visible, but not answer whether it was visible
    in the first place. Try something like:
    public boolean isRowVisible( JTable table, int row ) {
        Rectangle rect = table.getBounds();
        int rowHeight = table.getRowHeight();
        int viewHeight = table.getParent().getHeight();
        int max = rect.y - viewHeight + 1;
        int rowPos = - rowHeight * row;
        return ( rect.y >= rowPos && rowPos > max );
    }assuming all rows have the same height.
    : jay

  • How to add one button at top of table that creates new rows each time a user clicks on it?

    In the help guide, there is an example of adding buttons to each row - an Add Row and Delete Row button.  I am interested in having one button at the top of the table that can add rows. 

    Hi,
    You can create a table with a header row, where you can place your add button in one of its cells.
    Then you need a script to create a new row in the buttons click event. In a table named 'Table1' with a row named 'Row1' it looks this way:
    Table1._Row1.addInstance()

  • Multi Row Madness: Insert?

    Hey Guys,
    I've been hitting my head against a cobbled wall trying to figure this one out.
    I'm creating a form that needs to support versioning - so instead of ever using an update the form always inserts a copy of the data into the database with an incremented version number.
    Frustratingly enough the form requires a dynamic amount of parts - best editting and represented but a tabular form. But MRU and MRD.... where is Multi-Row Insert?
    I've tried everything i can to load the information and then change the version - but doing this will result in a ORA-20001: Error in MRU as the data in database is different and cannot "update" the row for old records (when i just want it to copy with a new version number).
    The tables work with a header table that had id and version attributes making a combined pk, and the parts table with id and version which references the header table, and a parts_id to uniquely identify itself.
    Is there any suggestions on this issue? I was thinking about adding an extra value and adding a trigger to do the inserting instead - but i fear this approach may change the information in the current version (i'm not that familiar with oracle databases... so prefer to try to find a solution in apex).
    I'm using 2.2.
    cheers,
    Alex

    But MRU and MRD.... where is Multi-Row Insert?
    The MRU process does an update for existing rows and insert for new rows (that were added using the Add Row button)
    I was thinking about adding an extra value and adding a trigger to do the inserting instead
    Yes, a row-level trigger on the underlying table would be the best way to approach this problem. Let the APEX MRU and MRD processes do their job and your row-level trigger can keep inserting rows into a separate audit/history table with structure identical to the main table (plus sequence generated version number).
    Something like
    create table mytable_hist as select 'U' dml_action, 1 version_no,a.* from mytable a where 1=2;
    create or replace trigger mytrig
    after insert or update or delete on mytable
    for each row
    declare
    l_action varchar2(1);
    begin
      if inserting then l_action := 'I';
      elsif updating then l_action := 'U';
      elsif deleting then l_action := 'D';
      end if;
      insert into mytable_hist
      values
      l_action,
      version_no_seq.nextval,
      nvl(:new.col1,:old.col1), 
      nvl(:new.col2,:old.col2), 
      nvl(:new.col3,:old.col3), 
    end;
    /

  • Add Transition to Grid control when it is made Visible.

    Hi. I have a collapsed Grid and when I tap a HyperLinkButton I want the Grid to start getting visible from the closest point from the Button or any other transition effect similar to this. To simplify my question, how do I add a transition effect to a
    Grid when it is made visible?

    Hi Clint William Theron,
    For adding the transition to the Grid control in Windows Phone, first please try to check the following articles:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh452703.aspx .
    If you want to create a custom transition for the Grid control, please try to use the
    Storyboard class to help you implement it, for more information please try to refer to:
    https://msdn.microsoft.com/en-us/library/windows/apps/jj206955(v=vs.105).aspx .
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Producedure givng two rows instead of one row

    Hi
    Please find below my procedure..when I execute this proc...displays two rows instead of one row. Please help me incase if I did mistake.
    CREATE PROCEDURE SP_CWCTravel_Cruise_Amenities_S(
            @Cruise_Line_Code varchar(2500) = NULL,
            @Ship_Code varchar(2500) = NULL,
            @Sail_Id varchar(100) = NULL,
            @Base_Price decimal(8, 2),
            @Category_Groups varchar(2500) = NULL,
            @Categories varchar(2500) = NULL,
            @Rate_Codes varchar(2500) = NULL,
            @Booking_Date VARCHAR( 10 ),
            @Sail_Start_Date VARCHAR( 10 )
    AS
    BEGIN
        SELECT  TOP 1 *
        FROM CWCTravel_Cruise_Amenities_Definition as cad
                                    JOIN CWCTravel_Cruise_Amenities_Definition_Date_Range AS caddr
                                    ON cad.id = caddr.Amenities_Definition_Id
        WHERE Cruise_Line_Code in (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Cruise_Line_Code))
            AND (Min_Base_Price = 0 OR Min_Base_Price <= @Base_Price)
            AND (Max_Base_Price = 0 OR Max_Base_Price >= @Base_Price)
            AND (Ship_Code IS NULL OR Ship_Code = '' OR Ship_Code IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Ship_Code)))
            AND (Sail_Id IS NULL OR Sail_Id = '' OR Sail_Id IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Sail_Id))) 
            AND (Rate_Codes IS NULL OR Rate_Codes = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Rate_Codes)) A,
                                                                                       (SELECT REPLACE(REPLACE(Item,'?', '_'), '*', '%') Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Rate_Codes)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                                    AND (Category_Groups IS NULL OR Category_Groups = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Category_Groups)) A,
                                                                                       (SELECT  Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Category_Groups)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                    AND (Categories IS NULL OR Categories = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Categories)) A,
                                                                                       (SELECT  Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Categories)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                                    AND  (@Booking_Date is null or @Booking_Date=''
                                                                                                    OR (( caddr.from_date IS NULL OR caddr.from_date <= @Booking_Date ) AND ( caddr.to_date IS NULL OR caddr.to_date >= @Booking_Date )                                                                                   
                                                                                    AND  (( caddr.date_range_type IS NULL ) OR ( caddr.date_range_type = 'BOOK_DATE' ))) )
        union
        SELECT  TOP 1 *
        FROM CWCTravel_Cruise_Amenities_Definition as cad
                                    JOIN CWCTravel_Cruise_Amenities_Definition_Date_Range AS caddr
                                    ON cad.id = caddr.Amenities_Definition_Id
        WHERE Cruise_Line_Code in (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Cruise_Line_Code))
            AND (Min_Base_Price = 0 OR Min_Base_Price <= @Base_Price)
            AND (Max_Base_Price = 0 OR Max_Base_Price >= @Base_Price)
            AND (Ship_Code IS NULL OR Ship_Code = '' OR Ship_Code IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Ship_Code)))
            AND (Sail_Id IS NULL OR Sail_Id = '' OR Sail_Id IN (SELECT item FROM SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Sail_Id))) 
            AND (Rate_Codes IS NULL OR Rate_Codes = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Rate_Codes)) A,
                                                                                       (SELECT REPLACE(REPLACE(Item,'?', '_'), '*', '%') Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Rate_Codes)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                                    AND (Category_Groups IS NULL OR Category_Groups = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Category_Groups)) A,
                                                                                       (SELECT  Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Category_Groups)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
                    AND (Categories IS NULL OR Categories = '' OR ((SELECT COUNT(*) FROM
                                                                                       (SELECT Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(@Categories)) A,
                                                                                       (SELECT  Item FROM dbo.SF_CWCTravel_GetStrTableFromCommaSeparatedStr(Categories)) B
                                                                                        WHERE A.Item LIKE B.Item) > 0))
            AND  (@Sail_Start_Date is null or @Sail_Start_Date=''
                                                                                                    OR (( caddr.from_date IS NULL OR caddr.from_date <= @Sail_Start_Date ) AND ( caddr.to_date IS NULL OR caddr.to_date >= @Sail_Start_Date )                                                                                   
                                                                                    AND  (( caddr.date_range_type IS NULL ) OR ( caddr.date_range_type = 'TRAVEL_DATE' ))) )                                                                        
        ORDER BY Cruise_Line_Code DESC, Ship_Code DESC, Sail_Id DESC, Rate_Codes DESC, Category_Groups DESC, Categories DESC
    ENDWhile executing this SP
    I am getting the following results.
    2043 23-07-2010 AM 11:22:10 23-08-2011 PM 04:57:19 8 princess caribbeanPrincess 2043 20-08-2011 AM 12:00:00 30-11-2011 AM 12:00:00 BOOK_DATE
    2043 23-07-2010 AM 11:22:10 23-08-2011 PM 04:57:19 8 princess caribbeanPrincess 2043 01-10-2011 AM 12:00:00 30-11-2011 AM 12:00:00 TRAVEL_DATE
    I need only the first record.
    Thanks in adv
    Rekha

    871270 wrote:
    Hi
    Please find below my procedure..when I execute this proc...displays two rows instead of one row. Please help me incase if I did mistake.Seriously?
    You wrote a query against tables we've never seen, containing data we can't possibly have any idea about and you expect us to be able to help you?
    Please go discuss this with someone in your organization who understands the data model and have them explain to you how it is supposed to work.
    Put yourself in our situation (forum volunteers) ... if we threw some arbitrary code with no explanation as to what it does, what the data model looks like and what's supposed to be happening, do you think you'd be very successful ?

  • Join all rows bases on one column value

    Hi All,
    I have requrement like Join all rows bases on one column value, i am not getting how to accomplish that. Here is my requrement. i have table test(id,id_desc) with no key
    table:Test
    id id_desc
    1 desc_a
    1 desc_b
    1 desc_c
    Now the requremnet i have one more table as test1(id,id_desc) here id is primary key. where record i need to insert as
    id id_desc
    1 desc_a
    desc_b
    desc_c

    orza wrote:
    Hi All,
    I have requrement like Join all rows bases on one column value, i am not getting how to accomplish that. Here is my requrement. i have table test(id,id_desc) with no key
    table:Test
    id id_desc
    1 desc_a
    1 desc_b
    1 desc_c
    Now the requremnet i have one more table as test1(id,id_desc) here id is primary key. where record i need to insert as
    id id_desc
    1 desc_a
    desc_b
    desc_cI'm guessing you want to pivot the results in TEST and use that to insert into TEST1?
    If so this may be useful
    http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php

Maybe you are looking for