Make the required column in table advanced of the OPS
Hi all
I have an obligation to make the column as required in table advanced BWC (worker buyer Center).
Navigation: Purchase of super user-> Work Center buyer-> orders-> create a Standard command-> click the tab lines
Please find the screen shot for your reference below
Void tab lines, five lines created automatically in advanced table and I made the need-by / Start Date is required by using customizations.
I saw the line and submit button launches the error message ' form Validation failures: a value must be entered for 'need a day'. "
Requirements of companies is required the need - by / column Start Date and the user trying to enter the line instead of 5 lines and when click on submit/save button without having to throw the error. Please let me know how to make and share sample code.
Page path: / oracle/apps/po/document/order/webui/OrderPG
Kind regards
Vincent
{public processFormRequest (pageContext OAPageContext, OAWebBean webBean) Sub
pageContext.writeDiagnostics (this, "XxBEFOrderCO PFR start:", 1);
OAApplicationModule am = pageContext.getApplicationModule (webBean);
DocumentAMImpl documentamimpl = (DocumentAMImpl) pageContext.getRootApplicationModule ();
String submitButton = pageContext.getParameter ("SubmitButton");
String SaveButton = pageContext.getParameter ("SaveButton");
String strPoMode = pageContext.getParameter ("poMode");
String strEventParam = pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM);
String strRowRef = pageContext.getParameter (OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
Dim description As String = null;
Day needbydate = null;
String str2 = (String) pageContext.getTransactionValue ("DOCUMENT_MODE");
PoLinesMergeVOImpl PoLinesMergeVO = documentamimpl.getPoLinesMergeVO ();
Line PoLinesMergeVORowImpl = null;
If (SaveButton! = null | submitButton! = null) {}
pageContext.writeDiagnostics (this, "inside the if condition in the PFR:", 1);
int pcLineRowCount = PoLinesMergeVO.getRowCount ();
RowSetIterator rowSetIterator = null;
try {}
rowSetIterator = PoLinesMergeVO.createRowSetIterator ("PcLineIterator");
If (pcLineRowCount > 0) {}
rowSetIterator.setRangeStart (0);
rowSetIterator.setRangeSize (pcLineRowCount);
for (int i = 0; i)< pclinerowcount;="" i++)="">
pageContext.writeDiagnostics (this, "inside the LOOP:", 1);
line = (PoLinesMergeVORowImpl) rowSetIterator.getRowAtRangeIndex (i);
Description = row.getItemDescription ();
needbydate = row.getNeedByDate ();
If (description! = null & needbydate == null) {}
throw new OAException ("Please enter the Needby/Startdate", OAException.ERROR);
}
}
rowSetIterator.closeRowSetIterator ();
}
rowSetIterator.closeRowSetIterator ();
{/ *} catch (Exception exception) {}
exception.printStackTrace ();
}*/
}
super.processFormRequest (pageContext, webBean);
}
The above code is correct. This code can useful to others on the OrderPG in 12.2.4 version.
Tags: Oracle Applications
Similar Questions
-
How to make a required column as a tab?
Hello
I have a form of tab for the entrance, where a user can add a group and the user for this group ID. I want to make the mandatory user ID column. However I don't know how to do this.
The only way I know to do the validation is by adding a control of validation to the elements.
Any help would be great.You can refer to columns in the form of tables through the apex_application.g_fxx (where xx is the number of your column). First of all, find what column is the user ID column. View the html source of your page, you should easily find it like that.
Once you know, you can create a validation of type 'Boolean function return' and enter something like that in the Validation Expression (assuming that the user ID is the "f02" column):
BEGIN FOR i IN 1 .. apex_application.g_f02.COUNT LOOP if apex_application.g_f02(i) is null then return false; end if; END LOOP; return true; END;
Kind regards
Matt -
Adding dynamic Style of items in a column in table advanced
Hello
I use the table in my project. In this table, I have 3 columns and 4 rows. For the first 2 columns the itemtype will be the same for every 4 rows. But for the third column, the style of the element must be different for each line.
Example: Row1, value in Column1 is "guaranteed".
the Column3 must be of type messagechoice for this value.
Row2, value in Column1 is "Currency Bonus"
the Column3 must be LOV type for this value.
Can you please tell me how can this be possible using the OPS?
I use Jdeveloper9i.
Thank you
RiyaHello
From your response, I can understand that you have renamed the cases1, CAS2, cases.3 as choice, check and text respectively.
You get the CAS2 and no. 3 rendered but not the case1 right?For this audit ID that you assigned for 1 is the same as in the query and then 'guarantee' spelling is the same as in the DB column field_name with if necessary.
If all these are perfect then put a breakpoint in the VOImpl of your VO in the getSwitcher1() method and check what value it returns?
Kind regards
Krishnan guru. -
Impossible to extract the data of an additional column in the table advance
Hello
We have an obligation to add an extra column to the table of advanced search. In addition, we need sort the table using this additional column.
Now, we have achieved the following:
1. the required VO was already extended previously and the additional column (LAST_UPDATE_DATE) is already present in the definition of the EO. So, we just added the tag for LAST_UPDATE_DATE in YOUR XML in the form:
< ViewAttribute
Name = "LAST_UPDATE_DATE".
IsPersistent = "false".
Type = "Oracle.jbo.domain.date"
ColumnType = "DATE".
AliasName = 'LAST_UPDATE_DATE. '
Expression = "LAST_UPDATE_DATE."
SQLType = 'DATE' >
< / ViewAttribute >
2 added a new MessageStyledText column, and updated the following property:
Prompt = LastUpdateDate. Discover the Instance = TaskPerzSumVO. Display attribute = LAST_UPDATE_DATE. Sort Allowed = true
The field is now visible in table advance and whenever we seek, attaches the value as ' 1901-01-01'. While I checked manually in the respective table, we have the appropriate data. But in the front end we do not get the data in our additional column of table in advance. In addition, if we try to sort the table by clicking the column LAST_UPDATE_DATE, we get the NPE error. Spec of NullPointerException is as follows:
# # 0 in detail
- java.lang.NullPointerException
at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:989)
Kindly help us to obtain the appropriate data in the additional column. Thank you!
Kind regards
Zahid
Hi Zahid,
This is the error:
29000: unexpected exception caught: oracle.jbo.NoObjException, msg = Houston-25003: TaskEO.LAST_UPDATE_DATE object of type entity activity not found
Tag entity by its use should have only name of EO and not the name of the attribute.
Use instead under the tag:
EntityUsage = "TaskEO".
Also, I mentioned that rather tags manually, add it please try Wizard VO to add this attribute in EO attributes available list.
-
How do I remove the filter from column of table without QueryEvent
Hi all
With the help of JDev 12.1.3.
I have a table that contains a list of customers and suppliers like so. Auto Repair Bob is a client. Chips R Us is a seller.
Name | TypeKey (foreign key to the Table of Type) | Unique ID
Auto repair Bob C 1
Quickie Mart C 2
R chips us V 3
Let's say that I filter on 'V' through the user interface by selecting a choice selection of the column in the table. Now only chips R Us opens.
Name | MasterTypeKey | Unique ID
R chips us V 3
Now, let's say that I want to remove my filter I can do another business process programmatically. How to do that without requiring a QueryEvent and so to refresh a page? I have been searching the various view classes of being variable Manager and have located the variable I need to remove it, but I'm not sure how to let him go.
// get the query in it's current state String lQuery = bpIterator.getViewObject().getQuery(); //get Valriables VariableValueManager lEnsureVariableManager = bpIterator.getViewObject().ensureVariableManager(); Variable[] lVariables = lEnsureVariableManager.getVariables(); int lCount = lEnsureVariableManager.getVariableCount(); // Dump query System.out.println("---query--- " + lQuery); // if variables found dump them if (lCount > 0){ System.out.println("---Variables:"); for (int ii = 0; ii < lCount; ii++){ Object lObject = lEnsureVariableManager.getVariableValue(lVariables[ii]); System.out.println(" --- Name: " + lVariables[ii].getName() + " Value: " + (lObject != null ? lObject.toString() : "null")); } }
Makes me
---query--- SELECT BusinessPartners.COMPANY_ACCOUNT_ID, BusinessPartners.MASTER_TYPE_KEY, BusinessPartners.NAME, BusinessPartners.BUSINESS_PARTNER_REF_KEY, FROM BUSINESS_PARTNERS BusinessPartners WHERE ( ( ( (UPPER(BusinessPartners.MASTER_TYPE_KEY) = UPPER(:vc_temp_1) ) ) ) ) AND BusinessPartners.COMPANY_ACCOUNT_ID = :Bind_CompanyAccountId ORDER BY BusinessPartners.NAME ---Variables: --- Name: vc_temp_1 Value: C --- Name: pCompanyAccountId Value: null
I am trying to get vc_temp_1 is deleted or to accept any value, but when I write what follows I get an error message "missing parameter IN or OUT."
lEnsureVariableManager.removeVariable("vc_temp_1");
Any ideas on how I can remove the filter on my view object?
It cannot work without running the query again. As you see that the filter is running a query make the vo is not all data.even if you delete the variable filter, that you do not get the data from the database you need to show.
You can reset the filter (see https://tompeez.wordpress.com/2013/08/06/jdev-12c-how-to-reset-a-filter-on-an-aftable-the-12c-way/) but you must run the query again to the corresponding data.
Timo
-
I use RoboHelp 11. The software product I am documenting is modular, so help is also divided into numerous CHMS (requirement). One of the other requirements is that the table of contents of the master project appears, called anyone who chm contains the link by the software. I did it with merged WebHelp (Kudos to Peter Grainge), but I could not help using RoboHelp HTML. Someone has it tried with success? Advice would be appreciated.
This forces you to make the following changes:
- In each project, open the window used to display CHM. Click Advanced Properties and enter the name of the file from the table of contents for the master project in the field of the "Table of contents".
- After compiling all the files, open the master project. High hydrostatic pressure in the Notepad file. Locate the [MERGEDFILES] section. This should be a list of all CHMS that make up the final deliverable. For some time I used CHMS, so I do not remember if you must do this in all projects. Try first in the main project and you'll know if you do.
-
How to make the waveform table rows less laeti WITHOUT using a lot of mathematics of interpolation
So I use a graph shaped wave, the numbers of entries sequence like that, sensor 22,23,24,25... the graph seems laeti. (Fussy) client says hey I want a good graph, you have function spline or something?
So I was to research the properties of chart and saw the settings below that does not help much. I proposed to the customer (picky) that Hey maybe we can make the balance Y greater for the lines of the stairs will be not so obvious, the customer (picky) says no. So I was sweating on tedious mathematics required for interpolation in the hot oil and noisy, without internet, fortunately the dinner bell rang.
Now is there some function blocks which makes the table lines smooter, a function spline or something? Thank you.
-
Hello experts,
I created a page that contains an array of advanced, 6-7fields (including a poplist column)
Whenever I have add a new using the line add new line button, I get a null pointer exception.
Code in Scenario1.
Public Sub handleCurrencyChangeEvent()
{
PVO OAViewObject = (OAViewObject) findViewObject ("xxCurrencyPVO1");
Line OARow = (OARow) pvo.first ();
OAViewObject dtlVO = (OAViewObject) findViewObject ("xxEcreditCardDtlVO1");
OARow dtlRow = (OARow) dtlVO.getCurrentRow ();
String currency = (String) dtlRow.getAttribute ("CurrencyCode"); / / NULL POINTER EXCEPTION
If ((currency == null) |) ("AED".equals (currency)))
{
row.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);
row.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);
row.setAttribute ("ExchangeRateRender", Boolean.FALSE);
}
on the other
{
row.setAttribute ("ExchangeRateTypeRender", Boolean.TRUE);
row.setAttribute ("ExchangeRateDateRender", Boolean.TRUE);
row.setAttribute ("ExchangeRateRender", Boolean.TRUE);
}
}
Public Sub initPVO()
{
OAViewObject appPropsVO = (OAViewObject) findViewObject ("xxCurrencyPVO1");
If (appPropsVO! = null)
{
If (appPropsVO.getFetchedRowCount () == 0)
{
appPropsVO.setMaxFetchSize (0);
appPropsVO.executeQuery ();
appPropsVO.insertRow (appPropsVO.createRow ());
Line OARow = (OARow) appPropsVO.first ();
row.setAttribute ("RowKey", new Number (1));
}
}
handleCurrencyChangeEvent(); / / If I comment on this call, there will be no null pointer when I click on the button Add a new rank and PPR will not be the first line when I select the poplist.
}
Public Sub createDetailRow()
{
String hdrId;
OAViewObject hdrvo1 = (OAViewObject) getxxEcreditCardHdrVO1 ();
OAViewObject dtlvo = (OAViewObject) getxxEcreditCardDtlVO1 ();
Initialize and create a line of VO
If (! dtlvo.isPreparedForExecution ())
{
dtlvo.setMaxFetchSize (0);
dtlvo.executeQuery ();
}
Line dtlrow = dtlvo.createRow ();
dtlvo.executeQuery ();
int count = dtlvo.getRowCount ();
dtlvo.insertRowAtRangeIndex (count, dtlrow);
Development of the sequence for the number of request *.
Number of dtlseq = getOADBTransaction () .getSequenceValue ("xxdm. XXDMI_ECREDIT_CARD_DTL_SEQ");
hdrId = hdrvo1.getCurrentRow ().getAttribute("CreditCardHdrId").toString (); mind vo
dtlrow.setAttribute ("CreditCardHdrId", hdrId);
dtlrow.setAttribute ("CreditCardLineId", dtlseq);
dtlrow.setAttribute ("LineNumber", count + 1);
End of sequence generation *.
dtlrow.setAttribute ("CurrencyCode", "AED");
String currency = (String) dtlrow.getAttribute ("CurrencyCode");
System.out.println ("CurrencyCode:" + currency);
dtlrow.setNewRowState (Row.STATUS_INITIALIZED);
} / / end createDetailRow()
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processFormRequest (pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule (webBean);
Event string = pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM);
* Treatment add line button *.
If ((ADD_ROWS_EVENT. Equals (Event)) & & "AdvTblRN".equals (pageContext.getParameter ("source"))) ".
{
am.invokeMethod ("createDetailRow", null);
am.invokeMethod ("initPVO");
} //**End add row button *.
otherwise if
("currCodeChangeEvent".equals (pageContext.getParameter (OAWebBeanConstants.EVENT_PARAM)))
{
am.invokeMethod ("handleCurrencyChangeEvent");
}
===========================================================================================================================
Could please help what is wrong in the code, I followed all the steps as stated in the guide, but the table advance, the problem starts whenever I click on the button Add a new row for the creation of new line.
I couldn't understand what was wrong with the code.
Thanks in advance,
Suman
Suman,
A few points:
1. Why do you call handleCurrencyChangeEvent in the event to add a line? Simply set the useful, likely of the values in the line it himself.
ex:-instead of calling the handleCurrenyChange method, simply add the below lines inside the createDetailRow()
dtlrow.setAttribute ("ExchangeRateTypeRender", Boolean.FALSE);
dtlrow.setAttribute ("ExchangeRateDateRender", Boolean.FALSE);
dtlrow.setAttribute ("ExchangeRateRender", Boolean.FALSE);
2. it looks like you have on the field of the currency and that fireAction handleCurrencyChangeEvent action method is called, right?
Instead of using dtlVo.getCurrentRow, use the code below:
public void handleCurrencyChangeEvent(String eventRowSourceParam) { OAViewObject pvo = (OAViewObject)findViewObject("xxCurrencyPVO1"); OARow row = (OARow)pvo.first(); OAViewObject dtlVO = (OAViewObject)findViewObject("xxEcreditCardDtlVO1"); //OARow dtlRow = (OARow)dtlVO.getCurrentRow(); OARow dtlRow = (OARow)this.findRowByRef(eventRowSourceParam); String currency = (String)dtlRow.getAttribute("CurrencyCode"); // NULL POINTER EXCEPTION if ((currency == null) || ("AED".equals(currency))) { row.setAttribute("ExchangeRateTypeRender", Boolean.FALSE); row.setAttribute("ExchangeRateDateRender", Boolean.FALSE); row.setAttribute("ExchangeRateRender", Boolean.FALSE); } else { row.setAttribute("ExchangeRateTypeRender", Boolean.TRUE); row.setAttribute("ExchangeRateDateRender", Boolean.TRUE); row.setAttribute("ExchangeRateRender", Boolean.TRUE); } }
In the controller:
if((ADD_ROWS_EVENT.equals(event)) && "AdvTblRN".equals(pageContext.getParameter("source")) ) { am.invokeMethod("createDetailRow",null); am.invokeMethod("initPVO"); } //**End Add Row Button** else if ("currCodeChangeEvent".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) { String eventRowSourceParam = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE); Serializable[] params = {eventRowSourceParam}; Class[] paramTypes = {String.class}; am.invokeMethod("handleCurrencyChangeEvent",params, paramTypes); }
3. Why do you call initPVO when it is clicked on the Add line? Are you calling not just in the PR?
You could call it once in the PR and let. When you call it PR, you may need to remove the handleCurrencyChangeEvent of this method call.
See you soon
AJ
-
Hi all
We work in a custom oaf page subdivision. We have an obligation to fill the values in table advanced based on a value selection in an element of the lov (this LOV is not in the advanced table) .can share you it please me steps or examples of code to achieve this. Waiting for response.
Kind regards
I do not understand completely still. What do you mean by "default in the table values must be inserted".
You can create a dummy VO with the same columns and fix the VO in the advanced table.
In the normal scenario, when the user clicks on submit button, browse this VO, and copy the values to the validation according to VO and appeal EO. If values gets inserted into the database.
When the user selects the number of PO, simply run the other VO and fill this dummy VO so that values are available in the advanced table. When you click on send, do not copy these values to the EO based VO, so these lines won't get inserted.
It work?
See you soon
AJ
-
Try to make the Table system (Acrobat Pro MS - Windows) dynamic intern
Hi Experts...
I developed system of presence of an intern in Adobe Acrobat Pro ms, Im new in JavaScript, but I managed to make the picture, but now I need to make the dynamic table, not all courses are 10 days, some are 20 days so every time I need to change the form (prepared) to copy the boxes and divide 100 / number of boxes so I can put a value in each box check out if the trainee course is 10 days so every day will come it will be equal to 10%, so at the end of
I can see the percentage of presence, now I want to copy the boxes to cover all 4 weeks so I change the number of (duration) of the course each cru of the boxes will change their values dynamically, so the percentage of presence will work right.
Here is the download link for the original PDF:
https://www.dropbox.com/s/dgaf771nhqsixzo/testing%20New%20Presence%20system.PDF?DL=0
So please can you help me or me to know what to do to make this table dynamically change the values for the checkboxes as percentage the guide will change automatically, thanks in advance.
You might want to rethink your approach.
I would like to change to count the number of checkboxes limited the period number and then simply divide the number of boxes checked by the number of the period.
-
How can I make the width of the cell fixed by percentage in a table?
I have a table in a grid of liquid, which I would like "width" to be fixed cells [I want to the height to increase when I put the text in the cell, but not the width]. Here's the html code:
< table width = "95%" border = "1" >
< b >
< scope = "col" th > < /th >
< scope = "col" th > < /th >
< scope = "col" th > < /th >
< scope = "col" th > < /th >
< scope = "col" th > < /th >
< scope = "col" th > < /th >
< scope = "col" th > < /th >
< scope = "col" th > < /th >
< scope = "col" th > < /th >
< /tr >
< /table >
Thanks in advance
You could give an id to the table, and then target the th of the table tags to give them heights VH (% of the height of the viewport) on the css. Something like...
In the html code...
In the css...
{#mytable}
Width: 95%;
}
#mytable th {}
min-height: 50vh; / * 50% of the height of the viewport but can to be more important if the content wants more * /.
}
Height in css works a little differently than you expect. Using a right unit % will make the element this height % of the adjustment of the height of the parent element. If there is no parameter in the parent, the child setting is ignored. In my example, I use the vh unit based on the height of the viewport for the minimum height of the element. In this way, if the content ends up needing more space that otherwise, would be available, it will not "come out" of the container. Instead, the container will expand to contain the content or be 50% of the height of the current window, if it is larger.
It works very well in the modern browser, but is ignored in what anyone lower than IE9.
There are probably better ways to do what you want, without the aid of a table.
-
How to make the field as a table display only?
A form on a table, I can do the display as field: "view only".
In a tabular presentation, it doesn't seem to be the option "View only" view. In tabular form attributes, I set a default value, and I have no users to edit this field. So, how can we make the field only do "display"?
V4.1You can change the definition of the column and change the Display as in "Display text (saved state)" attribute whose value will be the column will be saved with the other columns and the default way.
Thank you
-Jorge -
How do allow null to a column of table all the.
Hello
I have a "col1" column in all tables (table makes the user), I would like to allow null
Please tel me how it can be done using unique script.
I mean short way.
Yours sincerely.drop constraints, or you can generate a script for you the instructions to do so. It spool to a .sql file you can run the .sql file.
for example
select 'alter table ' || table_name || ' modify(col1 null) ; ' from user_tab_columns where column_name='COL1' and nullable ='N';
-
Disable the image in the table advanced using SPEL
Hi all
I'm trying to render the image in the table advanced conditionally using SPEL in a custom page.
In the properties of the grain of the Image, I added SPEL to make the Image under certain conditions.
When the user clicks on the image, you'll see a window.
This works well up to this point, I am able to make the Image for certain lines.
But the images that are rendered conditionally are disabled.
When I click on the image it does not popup.
Please help me solve this problem
Thank youWhy not add the switch with images on and off under certain conditions.
-
In the column of table when the values are grater that maximum linear axis it does not show the bar
Hi guys,.
In the column of table when the values are grater than there maximum linear axis it does not show the Bar.But I want to display the bar up to the maximum limit of the axis is linear without changing the limit max.
Consider following the example:
The values are 80 90 200 300
and here is the result:
Left: when I don't put maximum property of linear axis.
Right: when I put in maximum property of linear axis to 200.
Law 4th bar is not visible because the value of this bar is 300 which is excedding maxium. But I want the 4th bar to appear identical to 3 bar.
How can I do this?
Thanks in advance.
Then you should change the value of Y to the maximum value.
Another option, you should consider is changing the Render item column to reflect that the value is greater than the specified maximum value.
Maybe you are looking for
-
Qosmio F30-112: cannot install Virtual Sound for Vista
Installed Windows Vista, downloaded sigma drivers audio version 6.10.5462.0 and installed them, then I tried to install Virtual Sound and got the message "Toshiba Virtual Sound can't stand your computer." Where is the problem?
-
XP installation LAUGH on 32 Satellite Pro A200 laptop via computer
Hello Can anyone help? I try to install 32 laptops (Satellite Pro A200) through Services of Installation Windows 2003 Server remotely. I had problems with network cards and now have these working by adding pilots in a $OEM$, $1, drivers, network card
-
Unable to run Windows update, error: 0 x 80070424
Original title: Windows update will not work. I receive [error number: 0 x 80070424]. I am running Windows XP, Media Center Edition, Version 2002, Service Pack 3 Windows Update will not work. I receive [error number: 0 x 80070424]. I am running Windo
-
This laptop comes wth 4 gigabytes of RAM, but I can't find anywhere, as to what the ram max, this laptop is going to take. WhatIs the max RAM will take this laptop?
-
Download/Download speed of control with windows vista
I've searched for a solution to control my download speed on my system. I live in a House with other roommates and need to know if there is a way with windows vista to restrict my network speed and download. I looked at the software and routers, rout