0 lines added

Hi all

I'm trying to load an XML file into Oracle.

SQL > INSERT IN THIS_XML (customer, 'Date', SequenceNumber, NbMessages, version, relea

to Agency, area, function, controlNumber, pnrPurgeDate, 'number', companyId, controlN

umber2, date3, time, typeOfPnrElement, agentId, officeId, iataCode, queueingOfficeId, this

tyCode, creationOfficeId, agentSignature, creationDate, creatorIataCode, creationTime

quantity, status, officeId4, agentCode, receiveFrom, originatorId, inHouseIdentificat

ion1, originatorTypeCode, companyId5, locationId, codedCountry, originatorId6, inHouse

Identification17, originatorTypeCode8, companyId9, locationId10, codedCountry11, inHo

useIdentification112, originatorTypeCode13, companyId14, locationId15, codedCountry1

6, qualifier, numero17, segmentName, family name, quantity18, name, origin,.

qualifier19, Nombre20, segmentName21, depDate, depTime, arrDate, arrTime, dayChangeIndi

Cator, cityCode22, cityCode23, identification, identification24, classOfService, detai

l, qualifier25, date26, time27, status28, function29, companyId30, controlNumber31, quan

tity32, status33, equipment, day of the week, arrivalTerminal, departTerminal, 'option', original

atorId34, inHouseIdentification135, originatorTypeCode36, companyId37, locationId38,

codedCountry39, trueLocationId, trueLocationId40, carrierCode, flight, bookingC

Lass, flightIndicator, codeShareAgreement, cabinCode, subclassId, sourceQualifier1, co

untryCode, systemCode, groupingCode, marriageQualifier, tatooNum, marker2, qualifier41

number42, segmentName43, subjectQualifier, longFreetext, indicator, date44, official

ceId45, marker3, actionRequestCode)

with t AS (SELECT xmltype (bfilename('MYXML','sabresample.xml.txt'), nls_ch 2

(arset_id ('WE8ISO8859P1')) xmlcol FROM dual)

3. SELECT

4 extractValue (value (x), '/ ROW/Client') customer

5, extractValue (value (x), "/ROW/ 'Date'") 'date '.

6, extractValue (value (x), "/ LINE/SequenceNumber") SequenceNumber

7, extractValue (value (x), "/ ONLINE/NbMessages ') NbMessages

8, extractValue (value (x), "/ LINE/version ') version

9, extractValue (value (x), "/ LINE/release") output

10, extractValue (value (x), "/ LINE/agency") Agency

11, extractValue (value (x), "/ LINE/field ') area

12, extractValue (value (x), "/ROW/ 'function'") 'function.

13, extractValue (value (x), "/ LINE/controlNumber") controlNumber

14, extractValue (value (x), "/ ONLINE/pnrPurgeDate ') pnrPurgeDate

15, extractValue (value (x), '/ROW/ 'number' ') 'number '.

16, extractValue (value (x), "/ LINE/companyId ') companyId

17, extractValue (value (x), "/ ONLINE/controlNumber2 ') controlNumber

18, extractValue (value (x), "/ LINE/date3") 'date '.

19, extractValue (value (x), '/ ROW/time') times

20, extractValue (value (x), "/ ONLINE/typeOfPnrElement ') typeOfPnrElement

21, extractValue (value (x), "/ LINE/agentId") agentId

22, extractValue (value (x), "/ LINE/officeId") officeId

23, extractValue (value (x), "/ ONLINE/iataCode ') iataCode

24, extractValue (value (x), "/ ONLINE/queueingOfficeId ') queueingOfficeId

25, extractValue (value (x), "/ LINE/cityCode") cityCode

26, extractValue (value (x), "/ ONLINE/creationOfficeId ') creationOfficeId

27, extractValue (value (x), "/ ONLINE/agentSignature ') agentSignature

28, extractValue (value (x), "/ LINE/creationDate") creationDate

29, extractValue (value (x), "/ ONLINE/creatorIataCode ') creatorIataCode

30, extractValue (value (x), "/ LINE/creationTime") creationTime

31, extractValue (value (x), "/ LINE/amount") amount

32, extractValue (value (x), "/ LINE/status") status

33, extractValue (value (x), "/ ONLINE/officeId4 ') officeId

34, extractValue (value (x), "agentCode/LINE / ') agentCode

35, extractValue (value (x), "/ LINE/receiveFrom") receiveFrom

36, extractValue (value (x), "/ LINE/originatorId") originatorId

37, extractValue (value (x), "/ ONLINE/inHouseIdentification1 ') inHouseIdentificatio

n

38, extractValue (value (x), "/ ONLINE/originatorTypeCode ') originatorTypeCode

39, extractValue (value (x), "/ ONLINE/companyId5 ') companyId

40, extractValue (value (x), "/ LINE/locationId") locationId

41, extractValue (value (x), "/ ONLINE/codedCountry ') codedCountry

42, extractValue (value (x), "/ ONLINE/originatorId6 ') originatorId

43, extractValue (value (x), "/ ONLINE/inHouseIdentification17 ') inHouseIdentificati

on

44, extractValue (value (x), "/ ONLINE/originatorTypeCode8 ') originatorTypeCode

45, extractValue (value (x), "/ ONLINE/companyId9 ') companyId

46, extractValue (value (x), "/ ONLINE/locationId10 ') locationId

47, extractValue (value (x), "/ ONLINE/codedCountry11 ') codedCountry

48, extractValue (value (x), "/ ONLINE/inHouseIdentification112 ') inHouseIdentificat

ion

49, extractValue (value (x), "/ ONLINE/originatorTypeCode13 ') originatorTypeCode

50, extractValue (value (x), "/ ONLINE/companyId14 ') companyId

51, extractValue (value (x), "/ ONLINE/locationId15 ') locationId

52, extractValue (value (x), "/ ONLINE/codedCountry16 ') codedCountry

53, extractValue (value (x), "/ LINE/qualifier") qualifier

54, extractValue (value (x), "/ ONLINE/numero17") 'number '.

55, extractValue (value (x), "/ ONLINE/segmentName ') segmentName

56, extractValue (value (x), "/ LINE/name of family ') family name

57, extractValue (value (x), "/ ONLINE/quantity18") amount

58, extractValue (value (x), "/ LINE/firstName") first name

59, extractValue (value (x), "/ LINE/origin") origin

60, extractValue (value (x), "/ ONLINE/qualifier19 ') qualifier

61, extractValue (value (x), "/ ONLINE/numero20") 'number '.

62, extractValue (value (x), "/ ONLINE/segmentName21 ') segmentName

63, extractValue (value (x), "/ LINE/depDate") depDate

64, extractValue (value (x), "/ LINE/depTime") depTime

65, extractValue (value (x), "/ ONLINE/arrDate ') arrDate

66, extractValue (value (x), "/ LINE/arrTime") arrTime

67, extractValue (value (x), "/ ONLINE/dayChangeIndicator ') dayChangeIndicator

68, extractValue (value (x), "/ ONLINE/cityCode22 ') cityCode

69, extractValue (value (x), "/ ONLINE/cityCode23 ') cityCode

70, extractValue (value (x), ' the identification/LINE / ') identification

71, extractValue (value (x), "/ ONLINE/identification24") identification

72, extractValue (value (x), "/ LINE/classOfService") classOfService

73, extractValue (value (x), "/ ONLINE/retail") detail

74, extractValue (value (x), "/ ONLINE/qualifier25 ') qualifier

75, extractValue (value (x), "/ LINE/date26") 'date '.

76, extractValue (value (x), "/ ONLINE/time27 ') times

77, extractValue (value (x), "/ ONLINE/status28") status

78, extractValue (value (x), "/ ONLINE/function29") function

79, extractValue (value (x), "/ ONLINE/companyId30 ') companyId

80, extractValue (value (x), "/ ONLINE/controlNumber31 ') controlNumber

81, extractValue (value (x), "/ ONLINE/quantity32") amount

82, extractValue (value (x), "/ LINE/status33") status

83, extractValue (value (x), "/ LINE/equipment") material

84, extractValue (value (x), "/ ROW/weekDay") during the week

85, extractValue (value (x), "/ ONLINE/arrivalTerminal ') arrivalTerminal

86, extractValue (value (x), "/ ONLINE/departTerminal ') departTerminal

87, extractValue (value (x), "/ROW/ 'option'") 'option '.

88, extractValue (value (x), "/ ONLINE/originatorId34 ') originatorId

89, extractValue (value (x), "/ ONLINE/inHouseIdentification135 ') inHouseIdentificat

ion

90, extractValue (value (x), "/ ONLINE/originatorTypeCode36 ') originatorTypeCode

91, extractValue (value (x), "/ ONLINE/companyId37 ') companyId

92, extractValue (value (x), "/ ONLINE/locationId38 ') locationId

93, extractValue (value (x), "/ ONLINE/codedCountry39 ') codedCountry

94, extractValue (value (x), "/ ONLINE/trueLocationId ') trueLocationId

95, extractValue (value (x), "/ ONLINE/trueLocationId40 ') trueLocationId

96, extractValue (value (x), "/ LINE/carrierCode") carrierCode

97, extractValue (value (x), "/ LINE/flight") flight

98, extractValue (value (x), "/ LINE/bookingClass") bookingClass

99, extractValue (value (x), "/ ONLINE/flightIndicator ') flightIndicator

100, extractValue (value (x), "/ ONLINE/codeShareAgreement ') codeShareAgreement

101, extractValue (value (x), "/ ONLINE/cabinCode ') cabinCode

102, extractValue (value (x), "/ ONLINE/subclassId ') subclassId

103, extractValue (value (x), "sourceQualifier1/LINE / ') sourceQualifier

104, extractValue (value (x), "/ LINE/countryCode") countryCode

105, extractValue (value (x), "/ ONLINE/systemCode ') systemCode

106, extractValue (value (x), "/ ONLINE/groupingCode ') groupingCode

107, extractValue (value (x), "/ ONLINE/marriageQualifier ') marriageQualifier

108, extractValue (value (x), "/ ONLINE/tatooNum ') tatooNum

109, extractValue (value (x), "/ LINE/marker2") marker

110, extractValue (value (x), "/ ONLINE/qualifier41 ') qualifier

111, extractValue (value (x), "/ ONLINE/number42") 'number '.

112, extractValue (value (x), "/ ONLINE/segmentName43 ') segmentName

113, extractValue (value (x), "/ ONLINE/subjectQualifier ') subjectQualifier

114, extractValue (value (x), "/ LINE/type ') type

115, extractValue (value (x), "/ ONLINE/longFreetext ') longFreetext

116, extractValue (value (x), "/ LINE/indicator ') indicator

117, extractValue (value (x), "/ ONLINE/date44") 'date '.

118, extractValue (value (x), "/ ONLINE/officeId45 ') officeId

119, extractValue (value (x), "/ ONLINE/marker3") marker

120, extractValue (value (x), "/ ONLINE/actionRequestCode ') actionRequestCode

T,TABLE(XMLSequence(extract(t.xmlcol,'/ROWSET/ROW 121'))) x;

0 rows created.

Is this a problem with the XML file or my code?

XML you posted is not well formed. It is absent from the end tags and uses wrong quotes. In any case:

with t as)

Select xmltype (')

REG

REG

REG

REG

REG

XmlCol ') of double

)

Select customer,

DT,

SequenceNumber,

NbMessages,

Version

Liberation,

Agency,

field,

function

t,.

XMLTable)

' / BatchFeed'

passage xmlcol

columns

Path of varchar2 (2) customer "@Client."

Path of varchar2 (11) DT "@Date."

SequenceNumber number path "@SequenceNumber."

NbMessages number of path "@NbMessages."

Path ForPnrHandling xmltype "ForPnrHandling."

),

XMLTable)

' / ForPnrHandling'

by the way ForPnrHandling

columns

path varchar2 (2) version "@version."

Release number path "@release."

path of the Agency varchar2 (2) "@agency."

path of VARCHAR2 (3) domain "@domaine."

function VARCHAR2 (3) path "messageAction/business/function".

)

/

PLEASURE OF CL DT NBMESSAGES VE SEQUENCENUMBER DOM RELEASE AG
-- ----------- -------------- ---------- -- ---------- -- --- ---
KQ 130228:1600 1366 30217 08 1 1A PNR REG
KQ 130228:1600 1366 30217 08 1 1A PNR REG
KQ 130228:1600 1366 30217 08 1 1A PNR REG
KQ 130228:1600 1366 30217 08 1 1A PNR REG
KQ 130228:1600 1366 30217 08 1 1A PNR REG

SQL >

SY.

Tags: Database

Similar Questions

  • Query, which returns lines adding up to a value in a column

    Hello

    You are looking for an application that will process and return only the many lines that add up to a special value on a column value.

    for example

    ID name date_joined allocated salary

    --        ------           ---------------     -------         ------------

    1 Tom January 1, 2010 1000 5000

    Dave 2 3000 5000 February 1, 2010

    3 Cindy 1000 5000 01-apr-2010

    4 Ian 01-mar-2010 1000 5000

    5         Matt          10 -jan-2010 1000-5000

    Return the lines where wages adding upto or beyond the value allocated to 5000, order by date_joined or more former employee first.

    The query should return:

    ID name date_joined allocated salary

    --        ------           ---------------     -------         ------------

    1 Tom January 1, 2010 1000 5000

    2         Matt          10 -jan-2010 1000-5000

    3         Ian            01-mar-2010 1000 5000

    Dave 4 3000 5000 February 1, 2010

    We do not want to deal with or include other lines summarizing calculation, would instead add first, if deficit adds to the line.

    Tried with lead, windowed with range UNLIMITED etc. that PRECEDES, that would not come up with good logic.

    I could make it work with PL/SQL, but do it in SQL turns out to be delicate.

    Thank you.

    A.

    Thanks for the input guys.

    Here, the ask is:

    1. how to treat only as lines that satisfy the "allocated" value, without treatment of all lines.

    > Thanks to Jarkko year John for the right direction.

    > RanitB thank you for your approach to the application of the model, I am not well versed with model query that I'll get to. But for the moment its not useful for me.

    2. to get only as much lines that are either less than or equal to 'assigned' value or satisfy "allocated", from less than "attributed" just beyond "allocated".

    (Sorry for the language, if its not very clear, I do not know how this fits better, following example should help demonstrate).

    I came up with the following code, although there could be best way to do it, I hope to see someone.

    {code: sql}

    create table t:

    Select object_name, join_dt, the salary of 1000 last_ddl_time, allocated 5500

    of object;

    Select

    / * gather_plan_statistics * / *.

    Of

    (select

    object_name, join_dt, salary, allocated, sofar, lag (sofar, 1, 0) over (order by join_dt) lag_sofar

    Of

    (select

    object_name, join_dt, salary, allocated,

    Salary on sofar (order by no_lig)

    Of

    (select object_name, join_dt, salary, allocated, row_number() on no_lig (order of join_dt) t) t - must do it has several join_dt even inputs (objects have same time ddl)

    )

    )

    where

    allocated > lag_sofar;

    OBJECT_NAME JOIN_DT SALARY  ALLOCATED SOFAR LAG_SOFAR
    SDO_TOPO_GEOMETRY 17 JULY 02

    1000

    5500 1000 0
    SI_AVERAGECOLOR 18 JULY 02 1000 5500 2000 1000
    SI_COLORHISTOGRAM 18 JULY 02 1000 5500 3000 2000
    SI_POSITIONALCOLOR 18 JULY 02 1000 5500 4000 3000
    SI_FEATURELIST 18 JULY 02 1000 5500 5000 4000
    SI_STILLIMAGE 18 JULY 02 1000 5500 6000 5000

    {code}

    Sorry for the bad formatting, I tried couple of code integration/formatting of tags, but could not get formatting just as many of you have done above.

    Can someone point me on the document where the tags for this type of formatting is present?

    For now I am marking my question as answered with my own response and that of the other answers as useful.

    If I get a better approach/solution I would mark it as correct.

  • new line added at the top of advancetable

    Hello

    IAM trying to add the line in a table dynamically so i have used adds the concept of line in the table advance.

    But while trying to add new lines they are added to the top of the current line is not the bottom of the current line.

    can someone help me please how to reach this.i want to add new lines to the bottom of the current line.

    Hello

    When inserting new line in take VO control in the last row and try to add a new line after the last of them.

    Below the code could help.

    public void InsertRecord() {}

    TempVOImpl vo = getTempVO1();

    vo.setMaxFetchSize (0);

    Line TempVORowImpl = (TempVORowImpl) vo.createRow ();

          VO. Last();

    VO. Next();

    vo.insertRow (row);

    row.setNewRowState (rank. STATUS_INITIALIZED);

    }

    BR, 906099

  • Possible to get the handle to the line added with::AddRow()

    I need set default values for newly added lines in tabular form, based on some other page elements, hidden. Unfortunately, like many other elements APEX incredibly useful, addRows seems to be completely undocumented. So, I hope someone here can tell me how to get a reference to each newly added line.

    I am able to replace the functionality of 'javascript:addRow()' by default with my own dynamic Action triggered by clicking on the button Add a line.
    alert('Chicken or Egg?');
    var newRow = addRow();
    newRow doesn't seem to provide a reference to a valid object. I say this because "alert (typeof newRow)' returns"undefined ".

    How can I get a reference to each newly added line? Yes, I know that I can walk the apex_application.g_f0* collections, but it just seems like this could be done directly in the same javascript block where the line has been added.

    Someone has ideas how I could expand the foregoing to define two columns to default values?

    Thank you

    -Joe

    Published by: Joe Upshaw on March 15, 2012 15:19

    Hello

    name = "f03" assumes that the column is the same as that which is located in apex_application.g_f03, correct?

    It's true.

    Fact the ': last "automatically find the last row.

    It's true. The last input field with the same name.

    The default value that I need to get is a hidden page element.

    If the default value is the session to the State of an item, you can use the attributes in a table, by default type (name of the application or page element) element to set the default value for the form. Then you don't need dynamic action. To get the value of the element the page use $v ('PAGE_ITEM_NAME').

    Rod West

  • AS3/Fx3, if no 'save' between several lines added, all the lines contain the last modified value.

    Hi all

    I'm a sucker for creating problems. I'm working on adding role and content to a client website management. Currently, I have problems with the management of the role page.

    It is a legacy application and the customer is unwilling to upgrade to Coldfusion 8 and Flex Builder 3 Professional, so 'use the new stuff' is not enough for a response. No, I did not select the colors and I don't have the power to change their .

    It is a populous example:

    roleMgmt.png

    Here's the situation:

    1. The management of roles (mxml) page receives its data from a pair of files xml, siteManagement.xml, and roleManagement.xml through cffile calls via a cfc
    2. The xml data is stored locally in vars XML until the clerk.
    3. If I click once on the button 'Add', change the 'Save Changes' and fields immediately (the changes to the file through cfc is validated), everything works as expected, except that resets the combobox of roles. This normally isn't a problem - it is often exactly the behavior you want, but I can't stop reset.
    4. If I click on "Add control" more than once between save changes, changin any field on a new line causes all other lines have the same value for the same domain. (problem 2)
      1. This behavior can be fixed by saving and reloading the xml data between each click on 'add a control '. the problem with this solution is that it clears the Combobox of roles, adding unnecessary clicks to add (sometimes several) controls for the datagrid control.

    Controls are added by adding a new child element var XML:

    private function btnAddControl_click (): void

    {

    var tempXML:XML = new XML;

    tempXML = controlXMLTemplate;

    If (ensureFileExistsForRole ())

    {

    rolesXML.role [cbRolePicker.selectedIndex] .filename. (@fileName == cbChosenFile.selectedLabel).controls.appendChild (tempXML);

    }

    on the other

    {

    Alert.Show ("something does not work...", "Error Control adding :");)

    }

    dgcControlLabel.editable = true;

    dgcControlID.editable = true;

    dgcControlType.editable = true

    updateControls();

    supposed selects new line - this isn't

    dgControls.selectedIndex = rolesXML.role [cbRolePicker.selectedIndex] .filename. (@fileName == cbChosenFile.selectedLabel).controls.control.length ();        xmlDisplay.text = rolesXML;

    saveRoles();

    where controlXMLTemplate is:

    < control controlID = "Control ID' controlLabel ="Label control"controlType ="type"editable ="false"visible ="false"/ >

    and is added to the filename element:

    < canAccess filename = "true" fileName = "" friendlyName = "" > "

    < controls >

    < / controls >

    < / name of the file >

    I don't know what is causing the problem with the datagrid control where a line edit causes changes in others. My first thought was that it is caused by all the changes and selections via xml calls for example;

    dgControls.dataProvider = rolesXML.role [cbRolePicker.selectedIndex] .filename. (@fileName == cbChosenFile.selectedLabel).controls.control;

    So I added the code to add a number to the values that feed the datafields hoping that have unique data would cure the problem. There can be no.

    It's the function/code that causes the role Combobox to reset but prevents the datagrid problem:

    private function loadSiteInfo (): void

    {

    cursorManager.setBusyCursor ();

    roleManager.RO.loadSiteData.addEventListener (ResultEvent.RESULT, loadSiteData_resultsHandler);

    roleManager.RO.loadSiteData ();

    }

    private void loadRoles_resultsHandler(re:ResultEvent):void

    {

    cursorManager.removeBusyCursor ();

    roleManager.RO.loadRoles.removeEventListener (ResultEvent.RESULT, loadRoles_resultsHandler);

    rolesXML = re.result in XML format;

    }

    I don't know how much information you need to help. I can post the code if necessary, but I have to be careful - it's something health.

    This line is suspect:

    tempXML = controlXMLTemplate;

    This means that you may re-use of the same instance for multiple lines.  Probably, you need to copy the template rather than just use it.

  • Touch reset and lines added

    Hello

    I recently by a fluid dynamic array with a button "add a line".  I also added a reset button to the form and it erases all the good of the text, but I was wondering if there was a way to restore the lines in table 1.  I saw another post that indicates a reset button could not do that, but I was not not quite clear about this in the post.  Input would be appreciated.  Thank you!

    So you're working on the wrong table. Try...

    Form1. #subform [0]. Subform1.Button2::click - (JavaScript, client)

    xfa.host.resetData ();

    var CNT = Subform2.Table.Table1._Row1.count;

    for (var i = cnt; I > 1; i--) {}

    Subform2.table.Table1._Row1.removeInstance (i-1);

    }

    Instead of...

    Form1. #subform [0]. Subform1.Button2::click - (JavaScript, client)

    xfa.host.resetData ();

    var CNT = Subform1._detail.count;

    for (var i = cnt; I > 1; i--) {}

    Subform1._detail.removeInstance (i-1);

    }

    Steve

  • Display the last few lines added

    Hello

    Could someone help me how to prepare a select statement which show the last 10 added lines? I have the column with DATE format.

    Best.

    Hi Best

    SQL > drop table t;

    Deleted table.

    SQL > create table t (t1 date);

    Table created.

    SQL > insert into values (sysdate) t;

    1 line of creation.

    SQL > insert into t values (sysdate + 1);

    1 line of creation.

    SQL > insert into t values (sysdate + 2);

    1 line of creation.

    SQL > insert into t values (sysdate + 3);

    1 line of creation.

    SQL > insert into t values (sysdate + 4);

    1 line of creation.

    SQL > insert into t values (sysdate + 5);

    1 line of creation.

    SQL > insert into t values (sysdate + 7);

    1 line of creation.

    SQL > insert into t values (sysdate + 6);

    1 line of creation.

    SQL > insert into t values (sysdate + 8);

    1 line of creation.

    SQL > insert into t values (sysdate + 9);

    1 line of creation.

    SQL > insert into t values (sysdate + 10);

    1 line of creation.

    SQL > insert into t values (sysdate + 11);

    1 line of creation.

    SQL > insert into t values (sysdate + 12);

    1 line of creation.

    SQL > commit;

    SQL > select * from (select * from (select rownum, t1 from t by t1 desc) where rownum)<=10) order="" by="" t1="">

    ROWNUM T1
    ------ ---------
    6 24 AUGUST 09
    8 25 AUGUST 09
    7 AUGUST 26 09
    9 27 AUGUST 09
    10 28 AUGUST 09
    11 AUGUST 29, 09
    12 30 AUGUST 09
    13 31 AUGUST 09
    14-01 - SEP - 09
    15-02 - SEP - 09

    Please use above written request...

    A P R I T S I N H A

  • line added to the custom report selector

    I made a report with some tables and I want to add the line with all the lines selector. Is that someone has an idea how to add line selector in the custom report


    Concerning

    Published by: Adi on January 20, 2010 23:21

    ADI
    Change the select list of the query of the report to add a "checkbox" as shown in the example below

    Select
    other_columns...
    apex_item.checkbox(1,'row_identifier') Row_selector
    table

    CITY

  • Value of Dublicate checking form added lines

    Hello

    I'm working on apex4.1

    I am woking on slot form of table and adding several lines in the table before you click presentation on submit button. I want to check photocopy in the lines added before submitting in the table.

    IF there is no copy in the value of the column, should be through the error and value should not be entered into the table.

    How can I do this?

    Thanks and greetings
    CORINE

    The approach is to loop through the bays of apex_application.g_fxx. You can do the same thing in tabular form wizard generated. You must determine what element of apex_application.g_fxx is mapped to your required column.

  • Add &amp; Remove button line (also added hidden before the line add)

    I am creating a form with some fixed fields and also have some users change fields to add something, not in fixed fields. I created a button Add and Remove, and the excellent work but I prefer the line is hidden until the Add button is selected. In addition, I can not auto calculate the lines added.

    I'm new and I would appreciate anyone supported

    I have included a link below to show you my form

    Thanks again

    https://docs.Google.com/fileview?ID=0B10U6MT6e83fYmJmOWRkMjktMzEyZC00Yjg3LThlZWEtNmQ2YTk0Y zQ4Y2Y5 & hl = en

    Here is the updated file.

    https://Acrobat.com/#d=1FoAqhMxrzGVnW6jpfkOmg

    In the initialize event of the line Add I'm defining the presence of Row11 property to hidden. When the user clicks the AddRow I checks if the presence is hidden then makes it Visible. Similarly while eliminating the lines, I check if only a Row11 exists, so I hide the line. (You can change if your condition is different) Make sure the Click event code for the buttons.

    To get the value of the amount instead of using the Row11.Amount, you must use "Sum (Row11 [*]. "Amount)"

    I would like to know if that helps...

    Thank you

    Srini

  • New lines are not included in the formula of TOTAL in the footer cells

    I have a table in which I put a SUM formula in the line of the footer for a total of the column over a series of columns.

    It was that I could drag the icon '=' under the table to add additional lines and the formula of the SUM comes automatically adjusted to include the additional lines added.  Now, so that the total cell of the column to include values in other lines, I have to individually edit the formulas and drag to include the new lines in each formula of TOTAL.

    What on earth did I screw up?  I googled this 1 million ways and keep only to find the instructions to find out how he set up to begin with... but clearly I did something wrong.

    Your formula looks something like this?

    = SUM (A)

    The trick is to have just the letter of the column, not something like A2:A5.

    A quick way to enter a formula in a cell in the row of the footer is to select the cell, and then choose this toolbar:

    SG

  • How to modify and update a line later was inserted and updated in the doDML() method?

    Mr President

    Jdev worm is 12.2.1

    How to modify and update a line later was inserted and updated in the doDML() method?

    I added two rows in my table a method of action-listener in bean managed and secondly with operation doDML() as below.

    Method 1-first row in managed bean

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();        
            DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");        
            RowSetIterator rsi = dciter.getRowSetIterator();        
            Row lastRow = rsi.last();        
            int lastRowIndex = rsi.getRangeIndexOf(lastRow);        
            Row newRow = rsi.createRow();        
            newRow.setNewRowState(Row.STATUS_NEW);        
            rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);         
            rsi.setCurrentRow(newRow);
            
            BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();        
            DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");        
            RowSetIterator rsi1 = dciter1.getRowSetIterator();        
            Row lastRow1 = rsi1.last();        
            int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);        
            Row newRow1 = rsi1.createRow();        
            newRow1.setNewRowState(Row.STATUS_NEW);        
            rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);         
            rsi1.setCurrentRow(newRow1); 
            
            
        }
    


    Method of doDML() of line 2 seconds in the entityImpl class


        protected void doDML(int operation, TransactionEvent e) {        
            setAmount(getPurqty().multiply(getUnitpurprice()));
           
            if (operation == DML_INSERT)  
                       {          
                         insertSecondRowInDatabase(getVid(),getLineitem(),getDebitst(),
        (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));  
                           }
                           
                           if(operation == DML_UPDATE)
                           {
                               
                           updateSecondRowInDatabase(getVid(),getLineitem(),getDebitst(),
        (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));                        
                           }                                       
            super.doDML(operation, e);
        }
    
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4)  
                  {  
                    PreparedStatement stat = null;  
                    try  
                    {  
                      String sql = "Insert into vdet (VID,LINEITEM,DEBITST,AMOUNT) values 
       ('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "')";  
                      System.out.println("sql= " + sql);    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
                      stat.executeUpdate();  
                    }  
                    catch (Exception e)  
                    {  
                      e.printStackTrace();  
                    }  
                    finally  
                    {  
                      try  
                      {  
                        stat.close();  
                      }  
                      catch (Exception e)  
                      {  
                        e.printStackTrace();  
                      }  
                    }  
                  }  
                  
                  private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4)  
                  {  
                    PreparedStatement stat = null;  
                    try  
                    {  
                      String sql = "update vdet set vid='"+ value1+"',lineitem='"+ value2+"',DEBITST='" 
       + value3 + "', AMOUNT='" + value4 + "' where VID='" + VID + "'";  
                      System.out.println("sql= " + sql);      
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
                      stat.executeUpdate();  
                    }  
                    catch (Exception e)  
                    {  
                      e.printStackTrace();  
                    }  
                    finally  
                    {  
                      try  
                      {  
                        stat.close();  
                      }  
                      catch (Exception e)  
                      {  
                        e.printStackTrace();  
                      }  
                    }  
                  }
    

    Now the problem is that when later I change the quantity and price of the first line isn't updated but second row, because I used the command

     <af:button actionListener="#{bindings.Commit.execute}" text="Commit"
    

    This button update the first line added by bean managed, but the second row remains unchanged.

    Please help how to update the two lines with the same button or something else.

    Concerning

    DML_UPDATE will call only if there is some change data attributes.

    I guess that the update statement is false because vid looks like a primary key for the table, then, how update you the primary key of the update statement and how the update condition statement where the vid = '0'

    I assume the update statement should look like:

      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4)
      {
        PreparedStatement stat = null;
        try
        {
          String sql =
            "update vdet set lineitem='" + value2 + "',DEBITST='" + value3 + "', AMOUNT='" + value4 +
            "' where VID='" + value1 + "'";
          System.out.println("sql= " + sql);
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • APEX in a table, add 3 default empty lines

    Hello

    I created a tabular presentation on my APEX page.

    Whenever he has some data in the table, it is displayed as below:

    I have to add 3 empty rows by default to the same when the first page load.

    In the dynamic actions, I tried to add a Java Script that add 3 blank lines by default on the page load event.

    JavaScript:apex.widget.Tabular.AddRow(); -This text is written by three times.

    However, the problem is when the page is loaded 2nd, 3rd time whenever 3 more empty lines gets added to the tab.

    I just WAN t 3 fault lines added only the first time when the page loads.

    Help please..!

    Capture.JPG

    Hi David,

    Step 1:

    Create branch on the Page that deals

    Type: Branch to the page or URL

    Branch point: present now (after calculation, Validation and treatment)

    Target type: Application Page

    Page: same number of pages / / assume that you create the branch on page 2 and then give 2.

    for example:

    Page: 2

    Application: APPLY_REQ / / here you can write the query that you want to pass after clicking on the button apply.

    Step 2: Change your dynamic action and put this request in the part of the State as suggested in previous post

    Change the dynamic Action

    Conditional - > select "ask!" = Expression1.

    Under Expression1-> APPLY_REQ

    If you still not able to solve so please create the sample on apex.oracle.com?

    and share the workspace name credentials and connect with the name of the application.

    that won't be easy for us to solve your problem.

    Kind regards

    Jitendra

  • Display default lines

    Hi friends,

    IM in Apex 4.2.5

    I have a master form / retail. I have button to add a line in the detailed form. After pressing the line button Add I have the lines added in detailed form.

    But before you add lines by pressing the button to add a line in the long-form it displayed as "No. Data found". But in the long-form I want to show 5 standard ranks before entering any data in it.

    Is it possible to display the default 5 in the form of retail lines before entering any data.

    Thank you

    Kind regards

    Saro

    Show your complete javascript code

    in DA

    or use following code of DA

    for (var i = 0; i)<5;>

    {apex.widget.tabular.addRow ();

    }

  • How to manage the lines multiple region table OFA

    Hi gurus,

    I'm new to the development of new Pages of the OFA. Please help me how to manage multiple lines in the table region OAF.

    My requirement I'm not able to manage multiple lines in my area of Table.

    First row in my table area I am selected date_start and date_end when I select the end_date I need I need difference bet ween dates.

    My problem is I am able to manage the first Table line but I am not able to manage the table still ranks when I fire that time I first get the rank only.

    POS:

    14/08/12 07:59:40 1

    14/08/12 07:59:40 inside

    14/08/12 07:59:40 date difference is 86400000

    14/08/12 07:59:40 date difference is 1

    14/08/12 07:59:40 date is less than 365

    14/08/12 07:59:57 1

    14/08/12 07:59:57 inside

    14/08/12 07:59:57 date difference is 86400000

    14/08/12 07:59:57 date difference is 1

    14/08/12 07:59:57 date is less than 365

    14/08/12 08:00:13 1

    14/08/12-08:00:13 inside

    14/08/12 08:00:13 date difference is 86400000

    14/08/12 08:00:13 date difference is 1

    14/08/12 08:00:13 date is less than 365

    My custom logic:

    If (DutDetSEndDat".equals (pageContext.getParameter (EVENT_PARAM))) {" "}
    DateDiff (pageContext, webBean);
    //Am = XxDutyTravelAMImpl
    //(XxDutyTravelAMImpl) pageContext.getApplicationModule (webBean);
    OAViewObject = oaviewobject1
    (OAViewObject) am.findViewObject ("XxDutyTravelDuDetEOVO1");

    System.out.println("1");
    If (oaviewobject1! = null) {}
    System.out.println ("Inside");
    oaviewobject1. Reset(); New line added
    oaviewobject1. Next(); new line added
    Line OARow = (OARow) oaviewobject1.getCurrentRow ();

    Date sDate = (Date) row.getAttribute ("DutdetStartDate");

    Date = eDate (Date) row.getAttribute ("DutdetEndDate");
    java.util.Date VChangeDateTime =
    new java.util.Date (sDate.timestampValue () .getTime ());

    If (sDate! = null & & eDate! = null) {}
    long m1 = sDate.timestampValue () .getTime ();
    long m2 = eDate.timestampValue () .getTime ();

    long diff = m2 - m1;
    System.out.println ("difference in date is" + diff);
    int diffDays = Math.round (diff / (24 * 60 * 60 * 1000));
    System.out.println ("difference in date is" + diffDays);
    If {(diffDays > 365)
    System.out.println ("Date is greater than 365");
    } else {}
    System.out.println ("Date is less than 365");
    }
    }
    }
    }

    Kind regards

    Srinivas

    Hi Srini,

    To get the event line descriptor that shot please use code below.

    If (DutDetSEndDat".equals (pageContext.getParameter (EVENT_PARAM))) {" "}
    DateDiff (pageContext, webBean);
    Am = XxDutyTravelAMImpl
    (XxDutyTravelAMImpl) pageContext.getApplicationModule (webBean);

    String rowRef = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OARow line = (OARow) am.findRowByRef (rowRef);

    Date sDate = (Date) row.getAttribute ("DutdetStartDate");

    Date = eDate (Date) row.getAttribute ("DutdetEndDate");
    java.util.Date VChangeDateTime =
    new java.util.Date (sDate.timestampValue () .getTime ());

    If (sDate! = null & eDate! = null) {}
    long m1 = sDate.timestampValue () .getTime ();
    long m2 = eDate.timestampValue () .getTime ();

    long diff = m2 - m1;
    System.out.println ("difference in date is" + diff);
    int diffDays = Math.round (diff / (24 * 60 * 60 * 1000));
    System.out.println ("difference in date is" + diffDays);
    If {(diffDays > 365)
    System.out.println ("Date is greater than 365");
    } else {}
    System.out.println ("Date is less than 365");
    }
    }
           
    }

    Thank you

    Vlaminck

Maybe you are looking for

  • How can I delete a tab?

    I can't locate remove tab?

  • Toshiba AT200 refuses to acknowledge my connection wireless home

    My AT200 refuses to acknowledge my connection wireless home.1st time, that he could not recognize, I restarted the broadband system and then recognized. Now he just continues to scan and will not find the connection?I tried to manually force but he s

  • ADAM 4050

    Hello world Please help me. I'm trying to contact ADAM 4050 with VISA files. Advantech has own software from where you can send commands and check the response of the card. I have attached the screenshot on a single order. I tried to send the same co

  • error-200552 DAQmx code.

    I received this error when you use a period in the name string channel for the creation of a virtual channel. Is there a list of invalid characters somewhere?  I checked help LV and did not find anything.

  • Ignoring a call when the phone is in standby

    When the phone is in standby and locked (black screen) and a call comes, is it possible to send it directly to your voicemail? All I do is just wait until voicmail picks it up. Most of the calls come to me when the phone is locked and that the only c