Help with apex.server.process

Hello

I try to use the new function apex.server.process for and I seem to have some problems with it. The appeal itself seems to work very well as firebug it returns what to expect. It's just that I return the json string to an object, and this is what causes the problem.

Here is my application process:

DECLARE

  lv_json             VARCHAR2(4000 CHAR);
  lv_score            NUMBER(12);

BEGIN

    --Will get the score from the database...
    lv_score := round(fm_apex.events_api.get_percent_complete(:P40_EVENT_ID,'TOTAL'));
    
    IF lv_score = 100 THEN
      lv_json := '{"success":true}';
    ELSE
      lv_json := '{"success":false}';
    END IF;
    
    htp.p(lv_json);
    
END;

And this is my javascript function:

function checkScore(pThis) 
{
    var getScore = apex.server.process(
        'IS_SCORE_COMPLETE_JSON',
        {
            pageItems: "#P40_EVENT_ID"
        }
    );
    
    if ( eval(getScore.success) )  {
        alert('This is successful');
        //doSubmit(pThis.id);        
    } else {
        openModal('notScoredFully');
    }
        
};

It is done when the answer is {'success': false} and Firebug, it is it was still evaluating true? Everyone can see what I'm doing wrong?

See you soon,.

Paul.

1 / apex.server.process is asynchronous. You manage it as if it is not. You initiate the call and he went, in contrast to htmldb_get that works synchronously (= makes the browser to wait for return). You must use the function of success.

Apex.Server.process JavaScript APIs

The return value of the call to server.process is an object jqXHR, documentation on which you can find here: jQuery.Ajax | jQuery API Documentation

I would just use same success if, as shown in the example in the documentation.

apex.server.process ( "MY_PROCESS", {
  x01: "test",
  pageItems: "#P1_DEPTNO,#P1_EMPNO"
  }, {
success: function( pData ) { ... do something here ... }
  } );

So something along these lines:

apex.server.process(   'IS_SCORE_COMPLETE_JSON'
                     , { pageItems: "#P40_EVENT_ID" }
                     , { success: function( pData ) {
                                    if(pData.success){
                                      alert('This is successful');
                                    } else {
                                      alert('This is NOT successful');
                                    }
                                  }
                       }
);

2 / default apex.server.process manages the return as a json data type value. It would be pointless to 'eval', he.

Tags: Database

Similar Questions

  • How to set the value of a * APPLICATION * with apex.server.process?

    If I have a page named point P1_MY_PAGE_ITEM, I could put its value in the session by doing this:

    $s('P1_MY_PAGE_ITEM', 'I Like Pie!');
    
    apex.server.process(   'dummy'
                           , { pageItems: "#P1_MY_PAGE_ITEM" }
                           , { dataType: "text",
                             async: false,
                               complete: function( ajaxResponse )
                                     {
                                          var ignoredReturn = ajaxResponse.responseText;
                                     }
                             });

    Which works very well. If you check the session, the P1_MY_PAGE_ITEM will now have the value: I like pie!

    However, if I have an Application element (not a page element!) named MY_APP_ITEM, how could I do the same thing? How can I use apex.server.process to set the value of MY_APP_ITEM in the session? I wouldn't be able to use "pageItems" because MY_APP_ITEM is not a page element, it is a part of the application.

    What is the correct syntax to do this?

    Thank you

    -Joe

    Hey Joe,

    Returning to that thread you made a couple of months ago, the answer is here:

    Post adjustment Application items in the apex.server.process for a * process application *.

    Defining a point of application is as easy as providing the name of the application element to p_arg_names Bay and set a corresponding value in the p_arg_values table.

    For example, in an application with article SOME_ITEM of the application, I can put the value as follows:

    (function(){
    var arrNames = [], arrValues = [];
    arrNames.push("SOME_ITEM");
    arrValues.push('some value');
    apex.server.process(   'dummy'
                         , { p_arg_names: arrNames, p_arg_values: arrValues }
                         , { dataType: "text"
                           });
    })()
    

    Any required application process. Should the item be free that you set it from the browser.

  • Post adjustment Application items in the apex.server.process for a * process application *.

    We were spending the entirety of our method of apex.server.process htmldb_get request the favorite (and documented and supported!). It has worked well so far for the AJAX JavaScript process call, as long as the process of AJAX in question was one * Page * level process. However, when we try to eat a * application * process, it just doesn't seem to work.

    For the examples below, we have two elements of Application named PRS_PRODUCT_PROFILE_ID and PRS_PROFILE_OPERATION. We have a process to request on request (* not * a process page!) named MAINTAIN_PRODUCT_PROFILE_2.

    Here are the previous htmldb_get approach (which works fine):

    function resynchronizeProductProfile (productProfileID)

    {

    var profileOperation = 'EDIT_PROFILE ';

    var ajaxRequest = new htmldb_Get (null, $v ('pFlowId'), 'APPLICATION_PROCESS is MAINTAIN_PRODUCT_PROFILE_2', 0);

    ajaxRequest.add ("PRS_PRODUCT_PROFILE_ID", productProfileID);

    ajaxRequest.add ("PRS_PROFILE_OPERATION", profileOperation);

    var resynchronizeResult = ajaxRequest.get ();

    ajaxRequest = null;

    Return resynchronizeResult;

    }

    Here's the (what I think is the) same call using the new approach of apex.server.process:

    function resynchronizeProductProfile (productProfileID)

    {

    var resynchronizeResult;

    $s ("PRS_PRODUCT_PROFILE_ID", productProfileID);

    $s ('PRS_PROFILE_OPERATION', 'EDIT_PROFILE');

    Apex. Server.Process ("MAINTAIN_PRODUCT_PROFILE_2"

    , {pageItems: ' #PRS_PRODUCT_PROFILE_ID, #PRS_PROFILE_OPERATION '}

    , {dataType: "text"}

    Async: false,

    complete: function (ajaxResponse)

    {

    var resynchronizeResult = ajaxResponse.responseText;

    }

    });

    Return resynchronizeResult;

    }

    However, in the new version, arguments don't appear to be preparing when the MAINTAIN_PRODUCT_PROFILE_2 application process is called. PRS_PROFILE_OPERATION, for example, is on "even if above, you can see that it is, in fact, pre-programmed on 'EDIT_PROFILE '.

    As a general rule, the call to apex.server.process sets the item values in the page and in the session in a single step. This doesn't seem to be the case with elements of the Application (although it works very well for the items on the Page).

    What's up with that? Everyone see my mistake?

    Thank you

    -Joe

    Post edited by: Joe Upshaw

    Joe,

    Using the pictures I showed you can simply use your application objects in the process. This is exactly the same as what htmldb_Get: when you use. add(), you provide a key pair / value that will be added to the respective tables, it is just behind the scenes. By manually adding to the table with apex.server.process, you get the same exact behavior and apex define elements of page/application corresponding to the value in the table of p_arg_names with the value in the p_arg_values table.

    When test you it in your demo application by assigning the value of the page element, and then using the 4 button (point), you can see that the question of the application session state has changed by inspecting the session state of the elements of the application through "session" in the developer toolbar. (it's in the "apex of ajax samples - forum" app)

    Of course, you can use the scalar parameters x # to provide values for the process, but why would you do the extra arch? If the elements of the application would set the restrictions, you still get the same result as if they were not, and they are easily manipulated through the same ajax call. I added an extra button with an ajax call using x 01. I never had problems with the help of the scalar parameters.

  • Possible bug in apex.server.process?

    I was testing the documented new AJAX function apex.server.process and I noticed that I seem to get an error.
    The documentation on the process can be found here:
    http://docs.Oracle.com/CD/E37097_01/doc/ doc.42 /e35127/javascript_api.htm#BGBJEFDJ

    I created an example where I have both called an Ajax function by using apex.server.process and another call button using pure jQuery. The use of jQuery works and returns "test", the apex.server.process gives an error.
    I just follow the syntax has been documented so I don't think I did a syntax error.

    I downloaded an example on apex.oracle.com
    Workspace: Ajax
    User: demo/demo

    If you make changes to the application, make a copy first please.

    Error returned with apex.server.process:

    Error: parsererror - SyntaxError: JSON.parse: unexpected keyword

    Documentation:

    See also: see the documentation for jQuery jQuery.ajax for all other available attributes. The dataType attribute is set by default in json.

    Solution when it returns plain text:

    apex.server.process( 'AJAX_TEST',null, {"dataType": "text"});
    
  • need help with SQL Server 2008 R2 deadlock uninstall process

    I installed SQL Server 2008 R2 trial version on my PC running Windows Vista Ultimate, a day ago, but he placed himself completely in the disk partition (E :) that I specified. [i.e. I found some parts of the installation in my C:\program files as well as a USB as well].

    I tried to uninstall SQL Server 2008 R2, but was only partially successful.  I'm prevented from uninsalling the main parts using the programs and features Panel - that is "Microsoft SQL Server 2008 R2" and "Microsoft SQL Server 2008 R2 Setup (in English).

    Still visible are:

    1 C:\Program Files (x 86) \Microsoft SQL Server

    2 C:\Program Files (x 86) \Microsoft Visual Studio 9.0

    3 C:\ProgramData\Microsoft\Windows\Start demarrer\programmes\microsoft SQL Server 2008 R2

    I would like your help to uninstall the other goals of SQL Server, so that I can do a clean install once more.

    Any advice on how SQL Server 2008 R2 evaluation version must be correctly installed what a future unistall is not messy, would be welcome.

    Hello

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the SQL Server forums. Please post your question in the SQL Server forums.

    http://social.msdn.Microsoft.com/forums/en/category/SQLServer

  • Help with Apex 4.2 and 6.2 Anychart full version

    Help!

    I'm working on Apex version 4.25.00.08

    We bought and installed the full licensed version of Anychart 6.2.0

    I can resolve the path very well through the browser to the full version license (which is an alias of our DBA as ac6)

    http://server:port/AC6/SWF/AnyChart.swf

    The same with the standard oracle install (which for some reason we have a path #IMAGE_PREFIX # slightly different from the norm, but again this works very well, I see the SWF file)

    http://server:port/sma_images/Flashchart/anychart_6/SWF/OracleAnyChart.swf

    So I think I'm all set in this regard.

    But I fight to point my Apex regions full version and would be really grateful for the help.

    This day-

    I took the Anychart xml sample and used it to create a region before as an anonymous block PLSQL process called get_p19data

    Loading - before regions / once per visit (default) Page

    declare

    l_xml varchar2 (32767).

    Start

    l_xml: =.

    ' <? XML version = "1.0" encoding = "UTF-8"? >

    < anychart >

    < graphics >

    < graphic plot_type = "CategorizedHorizontal" >

    < data >

    < name of series = 'Year 2003' type = 'bar' >

    < point name = "Department stores" y = "637166" / >

    < point name = "Discounters" y = "721630" / >

    < point name = "stores specialized mens / Womens" y = "148662" / >

    < point name = 'Juvenile specialty stores' y = "78662" / >

    < point name = "all the other exits" y = "90000" / >

    < / series >

    < / data >

    < chart_settings >

    < title >

    < text > sales of ACME Corp. < / text >

    < /title >

    < axes >

    < y_axis >

    < title >

    sales < text > < / text >

    < /title >

    < / y_axis >

    < x_axis >

    < labels alignment = "External" / >

    < title >

    Retail Channel < text > < / text >

    < /title >

    < / x_axis >

    < / axis >

    < / chart_settings >

    < / chart >

    < / charts >

    < / anychart >

    ';

    : P19_DATA1: = l_xml;

    end;

    Then I created a Page called P19_DATA1 element

    his hidden, protected value NO, Source used only when the current value in session state is null, Expression of Source of Type PLSQL

    I then created a chart called TESTXML1 area, removed the series and changed to XML part custom, in the removed and replaced with - custom xml part

    & P19_DATA1.

    Presents all the works and the graph makes it absolutely perfect, so my page process seems ok and is spewing some valid XML for anychart to return.

    I saw this forum last post

    https://community.Oracle.com/thread/2468200

    I thought I could use the same process above to generate XML, but change the path of the region / swf via dynamic action.

    So I copied the Javascript code in the post on the forum and changed to suit my name of the item page etc. I tried pointing to both the standard Anychart for Apex path and the path for

    our full licensed

    So I created a second graphic region called

    TESTXML2

    and added a dynamic action called TESTSWF

    change event

    Region selection type

    No Condition on the status

    Action to execute JavaScript Code

    Fires when the outcome of the event is set to TRUE

    Fire on the loading of the page

    Code

    table = new AnyChart('#IMAGE_PREFIX#flashchart/anychart_6/swf/OracleAnyChart.swf','#IMAGE_PREFIX#/flashchart/anychart_6/swf/Preloader.swf ');

    Chart.Width = 800;

    Chart.Height = 500;

    chart.setXMLFile (' #OWNER #.) GET_DASHBOARD_XML_PRC? p_param1 = Full');

    chart.setData ($v ('P19_DATA1')); Chart.Write ('chartDiv');

    Selection Type region

    TESTXML2 region

    But nothing makes chartwise, with the normal path of the Oracle, or the full path to the license version.  I just get a blank space. There is a component in this space Anychart flash (I can right click on it etc), but no graphic is displayed.

    Any ideas what I am doing wrong?

    Alternatively, if you have another way to achieve and can point me to an example that would be great. Unfortunately I keep finding old messages that might help, but

    the examples cited to look like to no longer exist.

    Thank you very much

    Neil

    Kiran, FYI, finally got it working, using this position and another one of your very useful answers

    How do the db oracle procedure in Anychart setXMLFile?

    So, if its useful to someone else, here's what I did.

    (Keep in mind that our path to the full version of anychart is an ac6 alias that is... 6.2.0.anychart/binaries/)

    Create a blank page.

    In the attributes of the homepage in FILEUrls

    /AC6/js/AnyChart.js

    I took the Anychart xml sample and used it to create a region before as an anonymous block PLSQL process called get_p19data

    Loading - before regions / once per visit (default) Page

    declare

    l_xml varchar2 (32767).

    Start

    l_xml: =.

    '

    <p class="reply"> <p class="reply"><text>Sales of ACME Corp.</text></p> <p class="reply">

    <p class="reply"> <p class="reply"><text>Sales</text></p> <p class="reply">

    <p class="reply"> <p class="reply"><text>Retail channel</text></p> <p class="reply">

    ';

    : P19_DATA1: = l_xml;

    end;

    Then I created a Page called P19_DATA1 element

    its value hidden, protected YES, current Source used only when value in session state is null, Expression of Source of Type PLSQL

    Then I created an HTML region called TESTXML, with the source of the region of

    Adds a dynamic action in the area called TESTSWF

    change event

    Region selection type

    No Condition on the status

    Action to execute JavaScript Code

    Fires when the outcome of the event is set to TRUE

    Fire on the loading of the page

    Code

    Table = new AnyChart ('/ ac6/swf/AnyChart.swf ',' / ac6/swf/Preloader.swf');

    Chart.Width = 800;

    Chart.Height = 500;

    Chart.setData ($v ('P19_DATA1'));

    Chart.Write ('chartDiv');

    Selection Type region

    Region TESTXML

    and she's displayed a chart using our special custom path to the full version of AnyChart

    Thanks again for your help.

  • help with robohelp server

    Hello

    I don't know it was user error, but... I'm evaluating Adobe Technical Communications t (which I never used before) because we want to publish help files on a web site with an existing application running in a .net environment. I looked everywhere but could not find documentation that says:

    1. do I or do I not need RoboHelp Server (I think so, but I would like to see why writing)
    2. the actual process of publishing on the Web

    Can anyone help direct me to where this documentation can be?

    Thank you

    zjillian

    Hey zjillian and welcome to the forums!
    In the case to explain, I do not think you need the RoboHelp Server * necessarily *. It is optional and depends on whether you want to use the functionality provided by the server. You can read this article which explains more on the server.

    http://www.Adobe.com/devnet/RoboHelp/articles/rhserver.html

    If you don't need these features, then publish as simple "WebHelp" to support a .NET application would be nice. Or the other method may use the .NET API (also optional) which is included free of charge with RoboHelp along this path on your computer.
    C:\Program Files\Adobe\RoboHelp 7.0\CSH API\RoboHelp .NET

    The actual process of publish depends on your particular destination and method. For example, they are sent by FTP to a web server directly, or placing them on a LAN drive part where the web administrator can pick them up and drop on the web server.

    Check out these two sections of online help for more details. To access paste these two topics in the online help search box.

    Dialog publish WebHelp

    New Destination dialog box

    Thanx
    John

  • help with the login process completed Windows error

    One of my friends has a laptop that suddenly began to the old "Stop."
    c000021a {fatal system error}. The Windows Logon Process System completed
    quit unexpectedly with status f 0xc0000135 (0x00000000 0x00000000). The
    system has halted.

    Using BartPE I managed to run Dr. Watson according to them here:
    http://support.Microsoft.com/kb/156669

    The problem is that even after having no start nothing happened that
    error, so I can't look at the Dr. Watson log!
    It's the same thing in Mode safe mode and last known good configuration.

    I am now currently looking (using a Linux Live CD) for "winlogon" see if
    who is corrupt, and he found FOUR different - a
    in system32, one in servicepackfiles\i386, in $Ntservicepackuninstall$
    and the other to Softwaredistribution\download\cf (a lot of numbers)

    The situation is complicated by the fact that the Windows XP Home CD of
    That has been installed has disappeared in a move, and I have XP
    CD Pro.

    Is there anyway I can repair a XP Home using a CD XP Pro installation?
    Is it possible to repair this without a Cd XP Home at all?
    If you find my answer helpful, please click the button "Vote as helpful"! Thank you! My Blog

    AVG 8 intercepts not non-viral malware, which can be just as destructive as the virus. As probably a disk upgrade XP Home retail has been used to install XP on the laptop of Win2k, you will need to use a XP Home retail disk, not a professional one.

    By doing a simple Google search for "doing a repair install using i386", I found this link that may be useful:

    http://www.howtohaven.com/system/createwindowssetupdisk.shtml

    I didn't do this, have a good store of various types of XP installation disks so YMMV. MS - MVP - Elephant Boy computers - don't panic!

  • Need help with Apex tree - 4.2

    Hello everyone. I'm having a problem with a requirement that I was responsible for a tree. I use Apex 4.2, DB 11 g, Classic Blue theme 13. Let me explain what this is and what I'm trying to accomplish.

    Currently, the structure is as follows:

    REQUIREMENT_ID PARENT_REQUIREMENT_ID DESCRIPTION
    1883nullDescription Test 1
    18841883Description Test 2
    1885nullDescription Test 3
    18861884About Test 4

    The query is as follows:

    Select case when connect_by_isleaf = 1 then 0

    When level = 1 then 1

    else                           -1

    end the status,

    level,

    requirement_id | ' - ' || Description as title,

    NULL as an icon,

    requirement_id as value,

    NULL as ToolTip,

    NULL as link

    of xx_requirements

    where project =: p0_project_id

    Start with parent_requirement_id is null

    Connect prior requirement_id = parent_requirement_id

    brothers and sisters of the order by requirement_id

    An excerpt from the result

    Current Tree.JPG

    I was responsible for the increase in the tree by two additional levels with column Module as first column object level, as the second level, and the rest would be what you see above, see Visual below

    Module

    Object

    [Parent] Requirement_ID | ' - '|| Description

    [Children] Requirement_ID | ' - ' || Description

    Module

    Object

    Object

    [Parent] Requirement_ID | ' - '|| Description

    [Children] Requirement_ID | ' - ' || Description

    Object

    REQUIREMENT_ID PARENT_REQUIREMENT_ID DESCRIPTION MODULE TOPIC
    1883nullDescription Test 1INVTopic A
    18841883Description Test 2INVTopic A
    1885nullDescription Test 3OMB.
    18861884About Test 4INVTopic A
    1887nullTest 5 descriptionOMB.

    The above five records should look like this:

    INV

    Topic A

    1883 - description Test 1

    1884 - description Test 2

    1886 - description Test 4

    OM

    B.

    1885 - description Test 3

    1887 - description Test 5

    Can someone help me to achieve this?

    I created a workspace and recreated the current tree + a few other records. It is on page 4 (form on page 5)

    https://Apex.Oracle.com/pls/Apex/f?p=4550:1

    Workspace: APEX_TREE_HELP

    Username: community

    Password: PleaseHelpThanks

    Application: Tree of requirements

    Hi Jennis

    Each node tree in any level must have unique id and specified parent. Your table is deceptively structured. For example topic B, how to determine the parent. Therefore, the table must be structured to get what you want. I've built a table called NEW_REQUIREMENTS with the following structure

    You can find the new code within the region new tree tree

    select case when connect_by_isleaf = 1 then 0
                when level = 1             then 1
                else                           -1
           end as status,
           level,
           case when category = 'DESCRIPTION' then requirement_id || ' - ' || nodename
                else nodename end as title,
           null as icon,
           requirement_id as value,
           null as tooltip,
           null as link
    from new_requirements
    start with parent_requirement_id is null
    connect by prior requirement_id = parent_requirement_id
    order siblings by requirement_id
    

    The result will be like this

    If it solves your problem, please mark it was OK and the thread as answered to help others with the same case

    Concerning

    Mahmoud

  • Help with the application process

    I create a process like that, and it doesn't work. Can someone help me check what is the problem?

    declare
    number of l_counter;
    Start
    owa_util.mime_header ("text/xml", FALSE ");
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    owa_util.http_header_close;
    HTP. PRN (' < select > < option value = "" >--select 2 results - </option > ');
    for rec in select (separate OUT2
    output
    where OUT1 =: V_OUT1 and OUT2 is not null
    order by the OID);
    l_counter: = 0;
    loop
    If REC OUT2 = "other - specify" then
    l_counter: = 1;
    on the other
    HTP. PRN ("< option value ="' | rec. OUT2 |) '">' || recomm. OUT2. ("< / option >");
    end if;
    end loop;
    If l_counter = 1 then
    HTP. PRN ('< option value = "other - specify" >' |) "Other - specify ' | ' < / option >");
    end if;
    HTP. PRN ("</select > '");
    end;

    Thank you
    Jen

    Published by: Jen Hu on July 12, 2012 11:29

    You had a semicolon after the beginning of the LOOP. You don't need this l_counter: = 0. Here is the code again.

    DECLARE
       l_counter   NUMBER := 0;
    BEGIN
       OWA_UTIL.mime_header ('text/xml', FALSE);
       HTP.p ('Cache-Control: no-cache');
       HTP.p ('Pragma: no-cache');
       OWA_UTIL.http_header_close;
       HTP.prn ('');
    END;
    

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Need help with service of process

    IM currently studying Oracle and SQL im really stuck on this.
    If someone could give me some help it would be greatly appreciated.

    drop table of Property_tab strength;

    drop table of Appointment_tab strength;

    drop table of Person_tab strength;

    Drop type view_list_type force;

    type of force projection Property_type;

    type of force projection Appointment_type;

    type of force projection SalesPerson_type;

    type of force projection Applicant_type;

    type of force projection Person_type;


    create or replace type Person_type;
    /
    create or replace type SalesPerson_type;
    /
    create or replace type Applicant_type;
    /
    create or replace type Appointment_type;
    /
    create or replace type Property_type;
    /
    Create type View_list_type as table ref Appointment_type;
    /

    Create the Person_type type as object)
    IdNo number,
    Name varchar (20),
    First name varchar (20),
    date dateOfBirth) NO FINAL;
    /

    create or replace type SalesPerson_type UNDER person_type)
    officeno number,
    fact View_list_type);
    /

    create type Applicant_type UNDER person_type)
    aAddressLine1 varchar (30),
    aAddressLine2 varchar (30),
    aTown varchar (20),
    Number of contactTel1
    Number of contactTel2
    maxPrice number,
    desiredArea varchar (30),
    take part in View_list_type);
    /

    create or replace type Appointment_type as object)
    Date # number,
    Date of AppDate,
    Number of times,
    appointmentType varchar (10),
    LevelOfInterest varchar (10),
    is_Viewed_by ref Property_type
    );
    /

    Create the Property_type type as object)
    Property # varchar (30),
    dateOfRegistration Date,
    HouseType varchar (30),
    rooms number,
    receptionRooms number,
    bathrooms number,
    Garage number,
    Number of garden,
    regionArea varchar (30),
    pAddressLine1 varchar (30),
    pAddressLine2 varchar (30),
    pCode VarChar (7).
    price an INTEGER,
    RelatesTo View_list_type
    );
    /

    create table (Person_tab of Person_type)
    Key primary IdNo NOT NULL);

    create the table Property_tab of Property_type
    nested table relatesto store like view_Appointment_table;

    create table (Appointment_tab of Appointment_type)
    the scope of (is_Viewed_by) is Property_tab);


    insert into Property_tab
    values (1, 18-sep-09', 'Individual', 4, 1, 2, 1, 2, 'Wales', ' 42 Spooner St', 'Bridgend', 'CF347LS', 120000, View_list_type());

    insert into Property_tab
    values (2, October 21, 10 ', 'Semi-private', 4, 1, 2, 1, 2, 'Wales', ' 44 Spooner St', 'Bridgend', 'CF348LS', 200000, View_list_type());

    insert into Property_tab
    values (3,'1-dec-09', 'Individual', 4, 1, 2, 1, 2, "Wales', ' 42 Roath St", "Cardiff", "CF407RQ", 125000, View_list_type());


    INSERT INTO person_tab VALUES (SalesPerson_type (123, 'Steve', 'Jones', January 12, 76 ', 401, View_list_type()));

    INSERT INTO person_tab VALUES (SalesPerson_type (234, 'Brian', 'Williams', October 18, 85 ', 401, View_list_type()));

    INSERT INTO person_tab VALUES (SalesPerson_type (345, 'John', 'Johnson', February 11, 75 ', 402, View_list_type()));

    INSERT INTO person_tab VALUES (SalesPerson_type (456, 'Mike', 'Adams', ' December 2 81', 402, View_list_type()));


    INSERT INTO person_tab VALUES (Applicant_type (111, 'Marie', 'Michaels', December 16, 81 ', '12 Merthyr RD', 'Mid Glam', 'Bridgend', 0165666123, 0780089623, 250000, 'Bridgend', View_list_type()));

    --------------------------------------------------------------------
    below does not work this is what im stuck on
    --------------------------------------------------------------------

    INSERT INTO Appointment_tab
    SELECT 1, January 12, 12 ', 1203, 'View', 'HIGH '.
    Treat (REF (C) UNDER REF Person_type),
    Treat (REF (D) UNDER REF Person_type),
    REF (E),
    Person_tab C, Person_tab D, Property_tab E
    WHERE process (value AS (C) Person_type). IdNo = 123 AND
    Treat (Person_type AS (D) of the value). IdNo = 111 AND
    E.Property_type. Property # = 1;

    I would always limit O - R for your view interfaces and packages.

    It is normally a good idea to stick to Orthodox relational modeling when it comes to the design of the table.

    Is that what you're looking for?

    SQL> INSERT INTO Appointment_tab
      2  SELECT Appointment_type(
      3        1
      4  ,     TO_DATE('12-JAN-12','DD-MON-RR')
      5  ,     1203
      6  ,     'Viewing'
      7  ,    'HIGH'
      8  ,     REF (E))
      9  FROM  Person_tab C
     10  ,     Person_tab D
     11  ,     Property_tab E
     12  WHERE Treat (Value (C) AS Person_type).IdNo = 123
     13  AND   Treat (value (D) AS Person_type).IdNo = 111
     14  AND   Treat (Value(E) AS Property_type).Property# = 1; 
    
    1 row created.
    
    Elapsed: 00:00:00.03
    SQL>
    SQL> select * from appointment_tab;
    
    APPOINTMENT# APPDATE         TIME APPOINTMEN LEVELOFINT
    ------------ --------- ---------- ---------- ----------
    IS_VIEWED_BY
    ----------------------------------------------------------------------------------
               1 12-JAN-12       1203 Viewing    HIGH
    0000220208B41108491D309848E040440A5B681B61B41108491D2E9848E040440A5B681B61
    

    There must be a mistake somewhere as your type of appointment has no attributes of the applicant/person/sales_person (so there is no point in selecting them with the current definition).

    Published by: Dom Brooks on December 15, 2011 16:40

  • Help with VC server and disk space

    We run our virtual Center as a virtual machine. It has a 90 GB virtual disk. I know that this is probably not advisable, but it was setup before coming. Disk is running out of space (3 GB remaining). I was wondering where all space is getting pulled to the top. I also wonder what to do next. I thought about simply expanding the drive as 150 GB. But I think that it is not recommended.

    Can someone recommend me a few options on what to do. I would like to do things and not to have any downtime.

    Thank you.

    If your database is local SQL (looks), and is 2.x and complete his recovery mode for SQL, you have probably some large translogs and you might also have a lot of data that has piled up over time in the database that could be purged.

    Browse the system files first, as you would with any other server, and find out what is using the space.   On the domestic ass that your database is in mode local recovery, full and the database is old for a few years and little or no maintenance has been done, this knockout can help http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=1003980&sliceId=1&docTypeID=DT_KB_1_1&dialogID=9840420&stateId=0%200%2011555726

    If this isn't the PB or if these conditions do not apply, and if all goes well a search through the file system will lead you in the right direction.

  • Help with Windows server 2008 Enterprise Edition

    Issue 01

    I have problems with plug a USB in my server it says found new device, but when I click on the little icon sometimes as an unknown device on the computer and it happens for each USB device y at - it a reason for this and is there a way to fix it I tried to re install windows, but doe some reason my computer doesn't start from the dvd :(
    Issue 02
    When I tried to install 2 hard disks that are dynamic disks it won't let not mt assigned disk numbers or anything that he says only: file not found
    How can I fix that if possible

    Support is located in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • Need help with apex listener administration username and passwd

    Hello
    I downloaded apex ODD and tried lunch listener admin http://localhost: 8888/apex/listenerAdmin
    Help me please the username and password.
    Thank you very much.

    Hailt wrote:
    Hello
    I downloaded apex ODD and tried to lunch listener admin http://localhost: 8888/apex/listenerAdmin
    Help me please the username and password.
    Thank you very much.

    (1) do not not eating a listener. It is not good for you.
    (2) you are sure that you are in the right forum for this? (You may be... but you may very well not be)... If ODD is open developer day information about passwords are usually in the installation instructions.

    .. I don't remember having to worry of the Auditors of the apex, but I havant used the latest versions...

    The main objective of how to post to fix your possible eating disorder.

  • Need help with Windows Server Essentials 2012 R2

    So I set up a server and I had a client computer to connect to the server without problem. I can disconnect and different users access to different folders on entry-level servers. On the following client computer, I did the same steps, but now, when that I log out, I can't change what users, I use on the server, only the one that I used when I first booted the computer. The client computer runs Windows 7 Home Premium. Any suggestions would be nice.

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

Maybe you are looking for