Addition of high rank of the question from the table in OFA
Hi all
I have a customized page of the OPS with a table area advanced, under whom I add a line event, so when I select the Add button of the line box, I am able to insert a blank line in the table, but it is whenever it inserts the line to the top of the table, but I need the empty line must be added at the end so it is possible to implement this help please me.
I wrote a method like below in the AM to create a line.
Public Sub InsertRecord (String p_seq)
{
XXXVOImpl vo = getXXXVO1();
vo.setMaxFetchSize (0);
Line XXXVORowImpl = (XXXVORowImpl) vo.createRow ();
row.setAttribute ("xxId", p_seq);
vo.insertRow (row);
row.setNewRowState (rank. STATUS_INITIALIZED);
}
Thank you
Hello
Try using the code below:
public void InsertRecord (String p_seq) {}
XXXVOImpl vo = getXXXVO1();
vo.setMaxFetchSize (0);
Line XXXVORowImpl = (XXXVORowImpl) vo.createRow ();
row.setAttribute ("xxId", p_seq);
VO. Last();
VO. Next();
vo.insertRow (row);
row.setNewRowState (rank. STATUS_INITIALIZED);
}
Sushant-
Tags: Oracle Applications
Similar Questions
-
Get the rank of the table selected in DialogOKAction
I use JDeveloper 11.1.1.6
In my example, I have a page fragment that includes a table reading with the button 'Add Row '. When the user clicks on the button 'Add Row', the following will occur:
1. create the insertion occurs. The KP for this table is generated DB so that it is marked as not necessary in my model.
2. a popup in windw dialogue form is created asking required data and not need to be completed.
Now the user enters data and click on the OK button. The OK button calls a method that does the following.
1 validates the data user and if OK we continue on another that I have send a message to the user to correct the data.
2. the new line is posted. I must do this so that I can I hope to add value to the PK that is not created by the DB until the validation.
I have 2 questions:
1. I need to get this PK value so that I can write a record in a table of audit and also do something else with this value. I can't get that to work.
2. After all other work, I want to return to the table with the new selected line. I can't get that to work either.
I have attached the portion of my method in question below this 2 issues. 3 fault code lines are in bold. Could you please provide guidance as what I might want to try.
BindingContainer lBindings = getBindings();
now, I'm doing some validation before committing
Validation of new line... must start now because the primary key is generated DB
OperationBinding = lOperationBinding
lBindings.getOperationBinding ("Commit");
Object lResult = lOperationBinding.execute ();
Download the new line
DCIteratorBinding = lIteratorBindings
(DCIteratorBinding) lBindings.get ("myTable1Iterator");
ViewObject lVO = lIteratorBindings.getViewObject ();
VORowImpl Lrowrequired = (VORowImpl) lVO.getCurrentRow ();
Create and insert the Audit record
RowIterator lAuditIterator = lRow.getAudit ();
AuditVORowImpl = lAuditRow
(AuditVORowImpl) lAuditIterator.createRow ();
lAuditRow.setId (lRow.getId ()); _*
set the other fields on the lAuditRow
Validate the new line of verification
lOperationBinding = lBindings.getOperationBinding ("Commit");
lResult = lOperationBinding.execute ();
refresh the VO
DCIteratorBinding = lDciter
(DCIteratorBinding) lBindings.get ("myTable1Iterator");
Key lCurrentKey = lDciter.getCurrentRow () .getKey (); _*
lDciter.executeQuery ();
Define the new line created as the selected line in the table during update
lDciter.setCurrentRowWithKey (lCurrentKey.toStringFormat (true)); _*
refresh the page fragment "store Group view.
AdfFacesContext.getCurrentInstance () .addPartialTarget (this.getTable ());User,
I see two possible things to try.
1. check the entity behind the new line and make the key attribute "update after inserting" to ensure that you get the key based on the sex of the db.
2 use a sequence of db and you get the key before inserting the row into the db. Then you know the key.One last thing, you should check for errors after executing an operation...
Timo
-
Derive from ranking on the different criteria
Hello world
I have another difficult SELECTION to (I hope that this is possible).
Some examples of data:
The first table is a tree of the organization. A very simple. The work of the table is more important in this case. The work table contains the different jobs of a person. A person may have several jobs and I need their rank.CREATE TABLE departments ( dpt_id NUMBER(10) UNIQUE, dpt_name VARCHAR2(100), dpt_parent_id NUMBER(10) ); INSERT INTO departments VALUES(1, 'Company', null); INSERT INTO departments VALUES(2, 'HR', 1); INSERT INTO departments VALUES(3, 'SALES', 1); INSERT INTO departments VALUES(4, 'IT', 1); INSERT INTO departments VALUES(222, 'Helpdesk', 4); INSERT INTO departments VALUES(223, 'French Speaking', 222); INSERT INTO departments VALUES(224, 'Another level', 223); INSERT INTO departments VALUES(5, 'LEGAL', 1); INSERT INTO departments VALUES(66, 'Recruitment', 2); INSERT INTO departments VALUES(33, 'Logistics', 2); INSERT INTO departments VALUES(39, 'Fleet management', 33); INSERT INTO departments VALUES(31, 'Local Sales', 3); INSERT INTO departments VALUES(60, 'European Sales', 3); INSERT INTO departments VALUES(61, 'Germany', 60); INSERT INTO departments VALUES(62, 'France', 60); INSERT INTO departments VALUES(620, 'Paris', 62); INSERT INTO departments VALUES(621, 'Marseilles', 62); INSERT INTO departments VALUES(38, 'American Sales', 3); INSERT INTO departments VALUES(34, 'Asian Sales', 3); INSERT INTO departments VALUES(9999, 'VIP 01', 1); INSERT INTO departments VALUES(9998, 'Politicians', 9999); INSERT INTO departments VALUES(9997, 'Singers', 9999); INSERT INTO departments VALUES(9996, 'Korean Singers', 9997); INSERT INTO departments VALUES(6325, 'VIP 02', 1); INSERT INTO departments VALUES(6311, 'Steering Bord', 6325); INSERT INTO departments VALUES(6310, 'Another high level group', 6325); -- show the tree. SELECT dpt_id, level, LPAD(' ', LEVEL-1)|| dpt_name FROM departments START WITH dpt_parent_id IS NULL CONNECT BY dpt_parent_id = PRIOR dpt_id; CREATE TABLE jobs ( person_id number(10), dpt_id number(10), job_type varchar2(10) ); insert into jobs values(1, 9996, 'X'); insert into jobs values(1, 33, 'X'); insert into jobs values(1, 224, 'D'); insert into jobs values(3, 38, 'D'); insert into jobs values(3, 222, 'A'); insert into jobs values(6, 60, 'A'); insert into jobs values(6, 223, 'S');
The rules are complex, but I just need an idea to see how I can do this kind of things. IN the sample data above, I have 3 people with different jobs. For example, person 1 as 3 jobs. No 3 has 2 and 6 person has 2 jobs.
If a person is a member of a group of VIP, this work must be rated 1, then jobs are classified on the letters. So it is:
Group 1-VIP
2. type work = D
3. use of type = A
4. use type = X
5. use the type = S
The thing is that if the user is not part of a group of VIP and there work of type d, then the ranking should be 1. So, the result of my sample data must be:
It is a simplification of reality. I just need an idea to see how I can deal with. I thought I could use a DEAL, but I quickly realized that I wouldn't go very far:1 9996 X 1 1 224 D 2 1 33 X 3 3 38 D 1 3 222 A 2 6 60 A 1 6 223 S 2
Any idea? I'm on Oracle 10 gSELECT person_id, dpt_id, job_type, CASE WHEN dpt_id IN (SELECT dpt_id FROM departments START WITH dpt_name LIKE 'VIP%' CONNECT BY PRIOR dpt_id = dpt_parent_id ) THEN 1 ELSE WHEN --- but what if he doesn't have a VIP job??? END FROM jobs;
Thanks guys,.Hello
Here is the logic or the application you are looking for-
SQL> SQL> with dpt_path as 1 ( 2 SELECT dpt_id, dpt_name, level, sys_connect_by_path(dpt_name,'$') path 3 FROM departments 4 START WITH dpt_parent_id IS NULL 5 CONNECT BY dpt_parent_id = PRIOR dpt_id 6 ), job_details as 7 ( 8 SELECT j.person_id 9 ,j.dpt_id 10 ,j.job_type 11 ,CASE 12 WHEN instr(d.path, 'VIP') <= instr(d.path, d.dpt_name) AND instr(d.path, 'VIP') <> 0 13 THEN 1 14 WHEN j.job_type = 'D' THEN 2 15 WHEN j.job_type = 'A' THEN 3 16 WHEN j.job_type = 'X' THEN 4 17 WHEN j.job_type = 'S' THEN 5 18 END rnk_criteria 19 FROM dpt_path d 20 ,jobs j 21 WHERE j.dpt_id = d.dpt_id 22 ) 23 SELECT j.person_id 24 ,j.dpt_id 25 ,j.job_type 26 ,dense_rank() over(PARTITION BY j.person_id ORDER BY rnk_criteria) rnk 27 FROM job_details j 28 ; PERSON_ID DPT_ID JOB_TYPE RNK ---------- ---------- -------- ---------- 1 9996 X 1 1 224 D 2 1 33 X 3 3 38 D 1 3 222 A 2 6 60 A 1 6 223 S 2 7 rows selected SQL>
I hope this helps.
-Gregory
-
Do I need approval from Apple to publish additional toll-free numbers if the app is approved?
Hello
Do I need approval from Apple to publish additional toll-free numbers if the app is approved?
Our magazine will be a multi app problem, the magazine itself is free to download by end-users, so no in-app purchase is necessary.
I just want to confirm if an approval by Apple is necessary in this case or not, because it will impact our workflow lipids.
For any additional questions, I understand that we cannot publish them directly from the producer of folio.
Can you please confirm.
Thank you.
Toll free numbers haven't needed approval from Apple. Once your application is approved, you can publish for free questions like 'Pubic and free' and your folios appear directly in your application.
-
I have Adobe Acrobat 9 Pro Extender. When I try to convert a Word file to PDF that says that it cannot find the drivers from the Adobe PDF printer and reinstall Adobe Acrobat 9.0. In addition, when I open just the program Acrobat 9 Pro Extender an error message comes up saying that a part of the Capture 3D plugin has been damaged. I went to customer service and they sent me here. Please tell me that this is not another race. I'm running out of patience! I have 10 window.
Acrobat 9 is quite old and not longer supported. The last Windows OS that could use Acrobat 9 has Windows 7 and Acrobat had to have all updates applied.
You need to upgrade to Acrobat DC.
-
Questions from the media on the report columns
Hello
I'm experimenting with questions from the media on the APEX components such as the columns on the report.
I have an example that works, but I wonder if it's the best way to go about it.
I applied the following CSS
@media (orientation:portrait) { .landscape_only {display:none;} } @media (orientation:landscape) { .portrait_only {display:none;} }
For components such as regions, buttons etc - I can apply "CSS Classes" attribute class to the component level.
for example: I have applied the .portrait_only in the area of 'Code' in my example
but for the columns in a report, I had to apply this jQuery on the page loading.
$('th#HIREDATE, td[headers=HIREDATE]').addClass("landscape_only");
If I applied to the class in the detail of the column that the data has been hidden when Guide to portrait - not the entire column.
Are there more effective methods of enforcement of the class to the column?
Reading articles like this lead me to think that way, but I don't know if APEX could be other solutions.
5 tips for better jQuery selectors - SitePoint
It becomes a little pain if I wanted to list a number of columns.
I look forward to jQuery gurus ;-)
Scott
Rather than specify the classes at the level of the components and using jQuery when running, why not simply specify the items directly in the stylesheet?
@media (orientation:portrait) { #P2_BUTTON2, th#HIREDATE, td[headers=HIREDATE] {display: none;} } @media (orientation:landscape) { #P2_BUTTON1 {display: none;} }
This seems to be a more effective approach that all orientation-based rules are easily visible and easy to manage in one place, rather than be dispersed through the definitions component and dynamic action.
-
How to design the table from the answer to the question table.
Hi all
I am creating an application for student review online.
There are two types of questions, the only choice of response and multi choice answers.
My question is less than
my table to answer (I'm not satisfied with who is belowcreate table question_master ( exam_id number references exam_master(exam_id), marks_of_each_question number, type_of_question char(1),-- single choice answer/multiple choices answer q1 varchar2(2000), q2 varchar2(2000), q3 varchar2(2000), q4 varchar2(2000))
now, I'm perfectly how to create the RESPONSE table to contain the answers.create table answers_of_questions ( answer_id number primary key, question_ID number referenes question_master(question_id), answer varchar2(4000) not null, is_answer_correct char(1),--y/n, student_selection char(1),--y/n student select it or not .... ...
the only choice is good, but several checkboxes choices, what to do?
How to design the table from the answer?
do I have to create 2 tables to contain the answers?
Note: the QUESTIONS and ANSWERS, all will be entered by the teacher. students will make a choice and I will store this choice in another table
may be called STUDENT_SELECTED_ANSWERS or something like that.
If anyone has some reference to the script retail scheme review online, kindly share with me.
Kind regards.
Kind regards.If you need to have answers in another table:
Student (student_id, name, etc...)
Review (exam_id, exam_name, etc...)
Question (question_id, exam_id, question_text)Response (question_id, a_text, b_text, c_text, d_text, a, b, c, d).<-- one-to-one="" with="" question="" table,="" a-d="" flags="" used="" to="" indicate="">-->
OR
Response (question_id, answer_id, answer_text, OK)<-- many-to-one="" with="" question="" table,="" correct="" flag="" used="" to="" indicate="" correctness="" for="" this="" single="">-->Student_Answer (student_id, question_id, a, b, c and d)
OR
Student_Answer (question_id, student_id, answer_id)<-- creation="" of="" a="" question_id+answer_id="" in="" this="" table="" implies="" the="" student="" checked/selected="" it="" as="" an="">-->To what extent you want to standardize, it is up to you.
-
RENAMECOLLECTIONTABLE - questions by renaming the table from the collection.
Hi all
I use the version of database Oracle 10.2.0.2, OS - Solaris
I am enrolled in the scheme after successfully.
<? XML version = "1.0" encoding = "UTF-8"? >
< xs: schema xmlns: XS = "http://www.w3.org/2001/XMLSchema".
xmlns:xdb = "http://xmlns.oracle.com/xdb".
elementFormDefault = "qualified" attributeFormDefault = "unqualified" >
< xs: element name = "employee" type = "employeeType" xdb:defaultTable = "EMPLOYEEXMLTYPE_TABLE" / >
< name XS: complexType "employeeType" = >
< xs: SEQUENCE >
< xs: element name = "name" type = "xs: String" / >
< xs: element name = "departments" type = "departmentsType" nillable = "true" minOccurs = "0" / >
< xs: element name = "name" type = "xs: String" / >
< / xs: SEQUENCE >
< name XS: attribute = "id" type = "Integer" use = "required" / >
< / xs: complexType >
< name XS: complexType = "departmentsType" >
< xs: SEQUENCE >
< xs: element name = "Department" type = "DepartementType" maxOccurs = "unbounded" / >
< / xs: SEQUENCE >
< / xs: complexType >
< name XS: complexType = "DepartementType" >
< xs: SEQUENCE >
< xs: element name = "name" type = "xs: String" / >
< xs: element name = "departmentWings" type = "departmentWingsType" / >
< / xs: SEQUENCE >
< / xs: complexType >
< name XS: complexType = "departmentWingsType" >
< xs: SEQUENCE >
< xs: element name = "departmentWing" type = "departmentWingType" maxOccurs = "unbounded" / >
< / xs: SEQUENCE >
< / xs: complexType >
< name XS: complexType = "departmentWingType" >
< xs: SEQUENCE >
< xs: element name = "name" type = "xs: String" / >
< xs: element name = "target" type = "xs: String" / >
< / xs: SEQUENCE >
< / xs: complexType >
< / xs: Schema >
My goal is to create indexes on/employee/departments/department/departmentWings/departmentWing/name.
I followed the steps mentioned in Create index for an XMLType column.
One of the measures mentioned in the link above is to rename the table in the collection (in my case departmentwing) using the DBMS_XMLSTORAGE_MANAGE procedure. RENAMECOLLECTIONTABLE.
So I tried the following:
SQL > START
DBMS_XMLSTORAGE_MANAGE 2. () RENAMECOLLECTIONTABLE
OWNER_NAME 3 = > "XDB_TEST"
Table_name 4 = > "EMPLOYEEXMLTYPE_TABLE"
5 COL_NAME = > NULL,
XPATH 6 = > ' / employee/departments/Department/departmentWings/departmentWing/name. "
7 COLLECTION_TABLE_NAME = > 'DEPTWING_TABLE '.
(8);
9 END;
10.
PL/SQL procedure successfully completed.
If the procedure has said that it has completed successfully, I couldn't see the created DEPTWING_TABLE.
SQL > DEPTWING_TABLE DESC;
ERROR:
ORA-04043: object DEPTWING_TABLE does not exist
I am left helpless. Can someone please?
Kind regards
Simo.
Published by: user5805018 on October 12, 2011 04:40Hello
First of all, are you sure that the nested tables generated during the registration of the scheme?
You must annotate the schema with xdb:storeVarrayAsTable = 'true' and use the option genTables-online true for registration.
Then you should see something like this:SQL> select table_name, table_type_name, parent_table_name, parent_table_column 2 from user_nested_tables 3 ; TABLE_NAME TABLE_TYPE_NAME PARENT_TABLE_NAME PARENT_TABLE_COLUMN ------------------------------ ------------------------------ ------------------------------ -------------------------------------------------------------------------------- SYS_NTy8fd9LOzSmun4whyTbJC4g== department384_COLL EMPLOYEEXMLTYPE_TABLE "XMLDATA"."departments"."department" SYS_NTeAiIyOu0Q9G3nvWMtcM6mQ== departmentWing381_COLL SYS_NTy8fd9LOzSmun4whyTbJC4g== "departmentWings"."departmentWing"
In addition, according to the manual (xdb_easeofuse_tools.pdf):
For Oracle Database 11g Release 2 (11.2) and above, this function accepts only, XPath
the rating as a dotted notation. If the XPath notation is used, a setting of namespaces
may also be necessary.So, on your version, you must use the notation 'dot ':
SQL> call XDB.DBMS_XMLSTORAGE_MANAGE.renameCollectionTable( 2 USER 3 , 'EMPLOYEEXMLTYPE_TABLE' 4 , NULL 5 , '"XMLDATA"."departments"."department"' 6 , 'DEPT_TABLE' 7 ); Method called SQL> call XDB.DBMS_XMLSTORAGE_MANAGE.renameCollectionTable( 2 USER 3 , 'DEPT_TABLE' 4 , NULL 5 , '"departmentWings"."departmentWing"' 6 , 'DEPTWING_TABLE' 7 ); Method called SQL> select table_name, table_type_name, parent_table_name, parent_table_column 2 from user_nested_tables; TABLE_NAME TABLE_TYPE_NAME PARENT_TABLE_NAME PARENT_TABLE_COLUMN ------------------------------ ------------------------------ ------------------------------ -------------------------------------------------------------------------------- DEPT_TABLE department384_COLL EMPLOYEEXMLTYPE_TABLE "XMLDATA"."departments"."department" DEPTWING_TABLE departmentWing381_COLL DEPT_TABLE "departmentWings"."departmentWing"
Hope that helps.
-
Question from beginner on the fusion of the Recrords in the Table
This question is about question 10-b of merger on page 3-41, it says:
(page 3-41 "Oracle Database 10g SQL Fund. II Vol.1")
Merge the data into the EMP_DATA table that is created in the lab last in the data in the table emp_hist. assume
EMP_DATA external table data corresponds to the EMP_HIST of table, update the email column
table EMP_HIST to match the row in the EMP_DATA table. If a row in the EMP_DATA table is not
match, to be inserted in the tables of EMP_HIST lines are considered as corresponding whenever his first and
family name are the same.
For me, this issue is built wrong. First of all in the last lab we have not been asked to create EMP_DATA. Secondly, EMP_DATA is empty.
Thirdly, this question asks us to merge into the table EMP_HIST while EMP_DATA is empty.
Table EMP_HIST currently copied data from the employees table. Structure EMP_HIST:
FIRST NAME VARCHAR2 (20)
LAST_NAME NOT NULL VARCHAR2 (25)
EMAIL NOT NULL VARCHAR2 (45)
EMP_DATA table is empty. I created it as follows:
create or replace directory emp_dir
like 'F:\emp_dir ';
drop table emp_data;
CREATE TABLE emp_data
(first name VARCHAR2 (20))
, last_name VARCHAR2 (20)
, email VARCHAR2 (30)
)
EXTERNAL ORGANIZATION
(
TYPE oracle_loader
Emp_dir default DIRECTORY
ACCESS SETTINGS
(
RECORDS DELIMITED BY NEWLINE CHARACTERSET US7ASCII
NOBADFILE
NOLOGFILE
FIELDS
(first name POSITION (01:20) TANK)
, last_name POSITION (22:41) TANK
CHAR POSITION (43:72) by email)
)
LOCATION ('emp.dat'));
Back to our question, I've done the merger as follows:
merge into e emp_hist
with the help of emp_data d
on (e.first_name = d.first_name)
When matched then
game update
Select = d.last_name,
e.email = d.email
When not matched then
Insert values (d.first_name, d.last_name, d.email);
I get this error:
Error report:
SQL error: ORA-29913: error in executing ODCIEXTTABLEOPEN legend
ORA-29400: data cartridge error
KUP-04040: file emp.dat in EMP_DIR not found
ORA-06512: at "SYS." ORACLE_LOADER', line 19
29913 00000 - "error in the execution of %s legend".
* Cause: The execution of the specified legend caused an error.
* Action: Examine the error messages take appropriate measures.
On the other hand, I said I'm going to try this:
merge into emp_data d
using e emp_hist
on (d.first_name = e.first_name)
When matched then
game update
d.last_name = select,
d.email = e.email
When not matched then
Insert values (e.first_name, select, e.email);
I get this error because the external table's final after its creation (no update, insert, delete authorized) as far as I know:
Error report:
SQL error: ORA-30657: operation not supported on external organized table
30657.0000 - "operation not supported on external-organized table".
* Cause: User attempted on the operation on an external table which is
not supported.
* Action: Don't do that!
**********************************
I don't know what to do. I did my best, please help.What happens if I want to import large data set in the external table?
Hmm, external table is just a definition on how you want to watch a file as a table in the database. Think of it as a tool to import data.
1. first of all, have a ready file (with data).
2. create an external table using the format of the file.
3. now you should be able to see the data when you do this. Select * from my_external_table.
4. now, create an ordinary table where you want the data to insert permanently.
5 insert into permanent_table select * from my_external_table.
I hope this helps.
-
compress the question from the table
My question is simple:
If I execute this SQL:
and the table is already compressed, Oracle jump or spend time re - compress?ALTER TABLE some_table_name MOVE COMPRESS;
Why I ask this is because I have a few nice PL/SQL that loops through all the tables
in my schema, I have about 1800 tables and it compresses, but it takes a long time, hours
and I would like to only compress Tables which are not already compressed, so compressed, jump, so
that's why I ask... try to determine whether or not PL/SQL needs a dry:-)Kodiak_Seattle wrote:
Thanks for all the help, space is always a big problem for us here, we always run out of it. On only 1/3 of all Tables is compressed, 2/3 is not.So just research in there, thanks!
on the 11G R2
To continue the question I found the following:
(a) have compression enabled for a table does not necessarily mean that the data is compressed. If compression is enabled with the statement:
ALTER TABLE tablename COMPRESS;
the existing data in the table remain uncompressed.
However the execution of the order
ALTER TABLE tablename MOVE COMPRESS;
Compress in the existing data in the table and it is caught in time.
Try to compress an already compressed or partially compressed table is taken on time. Oracle will analyze the data in the table again and try to compress.
I did a test on a table with half million records already compressed and time was almost the same as the initial compression.You can do a quick test on your environment to verify that.
Sorry for the misinformation, I provided before.
Kind regards.
Al -
Additional code added when you paste the table from Word in Dreamweaver
Hello world
I stuck in a table from Word in Dreamweaver and even if all the table code was written, Dreamweaver put < p > tags around all the content of the data cell and he also added valign = "top".
Is it possible to get just Dreamweaver to create the base table code and do not add any extra markup?
Appreciate any advice.
I just tested this and had the same results, regardless of the option I used when using 'paste special '.
Outside the coding table yourself and adding data, it didn't there has anything you can do on the entry formatting of MS Word.
If you insert the code in the table in a new document, maybe run a search and replace to remove the valign = top of all cells. Regarding the
Tags, you could do the same, find and replace each of the tags separately (but this should be done in a new document that has this particular table), otherwise I don't worry too much about those, maybe just set padding and margin on the
elements to 0 or all that is appropriate, within this particular table.
Once you have the code as you like, then copy and paste into your web page document.
Just an idea anyway
-
Help: Form sum from the ranks (of the conditional statements)
I hope someone more advanced that I am.
I have a form with a table requesting entry for travel expenses. Rows contain for receipt number (auto-remplit with a whole number), Date, name of the vendor, Type of expense (drop-down filled beforehand with a variable), payment Type (drop-down filled beforehand with a variable), costs cost (user imput data to integer), Exchange Office (drop-down filled beforehand with a variable), Conversion rate, the cost of expenses in U.S. dollars (calculated total cost of spending * currency).
The table has a row of data called 'Élément', and there is a button to add a row to the table.
Table auto are the cost of the expenditure in USD field so there is total on the table.
On the previous page (summary page), there is another table. This table summarizes the fees information based on the Type of expenditure and the payment Type.
Currently I have the following formula to calculate the amount under certain conditions fees according to the table below, based on the response to the Type of expenditure and the payment Type. This example is meant to summarize all of the expenses that are "51807 - dues/contributions" and whose payment type is NOT equal "BMC-credit card."
Form1. #subform [1]. Table1.Row1.Expense_51087::calculate - (JavaScript, client)
var sum = 0;
aLines var = form1.resolveNode ("#subform [3].") General_Expense.item [*] ");"
for (var i = 0; i < aLines.length; i ++)
{
If (. expense_type.rawValue aLines.item [i] == "51807 - dues/contributions")
& & aLines.item [i].payment_type.rawValue! = 'BMC-credit card')
sum += aLines.item [i].total.rawValue;
}sum;
However, it does not add the values. It doesn't do anything.Any suggestions? I'll change the formcalc is someone has the solution. I have a formcalc formula works, but it doesn't have the sum of several lines, only the first entry.
Here is the sketch of the shape:
http://www.Brynmawr.edu/Provost/documents/Travel_Form.PDF
This is a modified version of your form. ... with a few suggestions:
1. you should always call your subforms. I changed your subforms without title to page1, Page2... This makes things easier to follow when error messages are generated.
2. I did 1 calculation in the table on page 2. By placing it on the Calc event dependence is established between this field and a field named in the Calc. So when one of these fields is changed, the script is run.
3. I use has to loop through each row in the table on Page 3 and if the coonditions are met, we update the value on Page2.
The syntax to get each item in the line is illustrated in the calc (using an expression xfa.resolveNode ("string") is the only way to get these values).
Hope that helps
BTW - nice shape looking
Paul
-
The tables stored in memory but can be viewed from other sessions
Dear Oracle experts,
It's maybe a stupid question, but I'm looking for the best opportunity to create a kind of temporary table that can be accessed from other sessions.
Could you give some advice / keywords to speed up my research.
Thank you very much
Danieldanielwetzler wrote:
danielwetzler wrote:
I'm afraid that caching is not appropriate for my case due to the machines of reasons cited in my other ads...First of all I don't think you need to worry about the effectiveness of caching in your particular case. In addition, Oracle is very skillful when actually writing the Sales blocks from the buffer on the disk cache, so if your amount of data written to the array of result is quite small and no other activity is happening on your system it will not get written to disk immediately anyway but remain in memory until a condition is met that trigger the writer of the database in order to eliminate the blocks on the disk.
But there are options that you might consider if you want to avoid as much overhead as possible and write the result of your calculation in the table of results as soon as possible.
You can use the path direct inserts (INSERT / * + APPEND * /) and set the table of results for "NOLOGGING". In this way, no cancellation and minimum never do again is generated.
Note, however, that there are certain reservations and restrictions to consider when using this approach, for example your result table will be not recoverable (what you say is OK), that a single direct-path insert access is allowed at the same time (it blocks the table exclusively, no other possible DML until you commit the transaction / rollback), and the direct-path insert access has some restrictions. If any of them apply that prevent the direct path operation, then it silently returns to the 'classic' insertion mode that generates the undo and redo. One of the most annoying restrictions is that you can not read a table that was written for in the direct-path access mode in the same transaction, you must first validate the transaction, otherwise you get "ORA-12838: cannot read/change an object after edit it in parallel." In other words, adding simply the indicator APPEND you might break the existing logic.
Finally the direct path insert never reuses the space in the blocks below the current high waters, which means that if you make a direct path insert and then remove rows from the table and repeat once again a direct path operation will increase your insertion and empty in the blocks already used space segment won't get reused. Best way would be to truncate the table rather than deletion of lines of it.
There are of the available workarounds to overcome some of these direct-path insert limits (exclusive lock, truncated rather than remove etc.), as the use of a table partitioned (if you have an appropriate edition/license), because direct-path inserts of access may be limited to the partitions. In this case you can do simultaneous direct-path inserts if you use different partitions, but then you sort of logic that determines which partition to use.
Kind regards
RandolfOracle related blog stuff:
http://Oracle-Randolf.blogspot.com/SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676 /.
http://sourceforge.NET/projects/SQLT-pp/ -
Outlook has been changed from hotmail, my emails say don't link with windows media player, outlook is not their problem, but it happened only when they merged account
I have to be able to open MP3 files that ae sent emails in my work, it's urgent, please I need to know what settings to correct to sort this please
It comes to getting the error message
There was a problem playing this file. (0xC00D0FEA: "Windows Media Player has encountered a problem during the download of the file.) For any additional help, click Help on the Web. »)
E-mail address is removed from the privacy *.
Hello
Method 1:
See the article and check if that helps:
Windows Media Player sync: frequently asked questions
Method 2:
I suggest also refer to the thread with a similar problem and a possible solution:
It will be useful.
-
High utilization of the processor all in buffering a video
I have a high utilization of the processor (over 40%) while only buffering of this video.
IE10pre1
Firefox 20121229 nightly, protected mode enabled
Firefox 20121229 nightly, protected mode disabled
Opera Next
Chrome Canary
a) open this url: http://www.wimp.com/marsearth/
(b) pause the video if it starts automatically
(c) use the the Task Manager or process explore to display the cpu/gpu use
reproducible: for most
Windows 7 SP1
Flash Player 11.6.602.108 / HWA enabled
TestPC: Gigabyte GA-K8NS Pro; Venice AMD Athlon 64 3200 +. 2 x 1 GB DDR MDT-400-CL2; Club3D HD4670 AGP; Samsung HD103SJ, SyncMaster 204BM
While we are aware of the problem, there is little we can do about it. The modern realities of security of the web browsers have made sandbox, a necessity.
There is a good explanation of what is happening here: http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html
Long story short, every video packet must be transmitted from the browser to a medium integrity process broker, then the integrity process low drive flash for rendering. If an attacker is able to hijack the thread of Flash Player, the process is low integrity, which prevents the attacker to do a lot with it. While it is not an absolute guarantee (nothing security is), it raises the bar significantly for the attackers.
The downside is that all this additional message passing consumes cycles CPU, especially if you are trying to fill a buffer of exceptional size as soon as possible. There's not a lot of opportunity to optimize this.
If you're fine with the risk, you can manually disable ProtectedMode on your machine. If you deal only with trusted sites, and you do not have anything critical with the machine (work, banking, etc.), then it is probably not a huge deal.
Finally, ProtectedMode is like a vaccine - it's one thing to immunity. If the majority of people run it, exploits targeting machines without that it does not conform and probably not merit to be pursued when you look at the effort involved in the development of a feat of end-to-end. If a large number of people turn it off, it becomes economically attractive for builders of networks of zombie computers, and you will have problems if you do not use.
To disable the Protected Mode, add the following line to your mms.cfg file located in:
32-bit Windows: C:\windows\system32\macromed\flash
64-bit Windows: C:\windows\syswow64\macromed\flash
ProtectedMode=0
If the mms.cfg file does not exist, create one to any text editor standard (p. ex. Notepad)
Depending on your operating system, you must first save the mms.cfg file in a directory writable (for example, your document or desktop folder), and then copy the file into the folder using Windows Explorer.
To re - enable Protected Mode, simply delete the line in the mms.cfg file.
Maybe you are looking for
-
Satellite Pro A200-16YT - update wireless adapter card for 802.11n
Satellite Pro A200-16YT (PSAE1E) with Windows XP Professional SP3 from the East.I tried to increase my existing 54 Mbps wireless network speed by replacing the Atheros AR5007-EG existing with 802.11n 802.11a/b/g more quick adapter. The Atheros driver
-
How to burn a music CD in a PC HP Pavilion 500 model - 205-t
My PH Pavilion PC came with a DVD burner. But, I want to burn audio CDs I can do with my original configuration (that is, DVD burner) or if a change is necessary? If so, what should do? Can I just download a CD burner app or a change in equipment?
-
I received an email from my hotmail account validation
Hi, I didn't received verification e-mail to the property to my hotmail e-mail account? Can you help me
-
ORIGINAL TITLE: Cannot scroll. When I try to scroll information comes minis jumps (staggers) instead of moving smoothly as in the past - I am running XP
-
Trouble sometimes with WebView short Web page rendering
I noticed sometimes in my application poorly rendered Web pages in a WebView because the webview appears dynamically size itself so that it is only as high as it should be... so if something to Center vertically, it appears at the top of the screen,