Table Control: make a field editable or not based on another field value
HI All,
How to make a column field input enabled or disabled based on another field value in a Table Control.
Here's the scenario:
I have a table control with two columns, KTOKK and LIFNR. Now for certain KTOKK, the LIFNR field should be editable and for certain KTOKK it should not be editable.
Eg., KTOKK = 0001 => LIFNR field is not editable.
KTOKK = ZKTO => LIFNR field is editable.
But these fields are in a table control.
Please advice.
Thanks in advance,
RK.
Hi RK,
Go through the below link..
how to make special field editable or diseditable in table control?
the code mentioned in the link.. just add ur conditions in the module....
Best Regards,
Brijesh
Similar Messages
-
How to make DFF mandatory in forms personalization based on another field
how to make DFF field mandatory in forms personalization based on another field ,and also user can put values in the DFF field.
Edited by: SinghP on Mar 14, 2012 12:16 AMHi,
4 DFFs are enabled.
CASE1: when payment is voided DFF4 should be mandatory feild
CASE2: when user queries the voided payment , above DFF4 should be readonly or not editable
Unable to acheive both the cases with Forms Personalization.
When trying case2 error pops up saying null canvas.
Can you please provide some examples if you have any.
I can find any customizations on this form
Thanks
Edited by: user11344029 on Mar 15, 2012 11:28 AM -
Update a field to a Sequence based on another Field
Hello Everyone,
Little problem: -
CREATE TABLE: -
CREATE TABLE SEQTABLE
("GRP_NUM" VARCHAR2(20),
"ORDER" NUMBER(5),
"NEW_GROP" VARCHAR2(20) ) ; DATA:-
INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('POIP1234567891234567' ,1 ,'' )
INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('POIP1234567891234567' ,2 ,'' )
INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('POIP1234567891234567' ,3 ,'' )
INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('LKJG1234567897412589' ,1 ,'' )
INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('JHGF1234567891234567' ,1 ,'' )
INSERT INTO SEQTABLE ("GRP_NUM" ,"ORDER" ,"NEW_GROP" ) VALUES ('JHGF1234567891234567' ,2 ,'' ) SELECT *
SQL> SELECT * FROM SEQTABLE;
GRP_NUM ORDER NEW_GROP
POIP1234567891234567 1
POIP1234567891234567 2
POIP1234567891234567 3
LKJG1234567897412589 1
JHGF1234567891234567 1
JHGF1234567891234567 2 Here my problem, I need to generate a smaller GRP_NUM in the NEW_GROP field. But cant just Substr the original field. This field has to be uniquie to the group.
Desired Results: -
GRP_NUM ORDER NEW_GROP
POIP1234567891234567 1 10001
POIP1234567891234567 2 10001
POIP1234567891234567 3 10001
LKJG1234567897412589 1 10002
JHGF1234567891234567 1 10003
JHGF1234567891234567 2 10003 Any ideas guys-- Data:
with seqtable as
select 'POIP1234567891234567' grp_num,1 "ORDER",'' new_grop from dual union all
select 'POIP1234567891234567' ,2 ,'' from dual union all
select 'POIP1234567891234567' ,3 ,'' from dual union all
select 'LKJG1234567897412589' ,1 ,'' from dual union all
select 'JHGF1234567891234567' ,1 ,'' from dual union all
select 'JHGF1234567891234567' ,2 ,'' from dual
-- Query:
select grp_num, "ORDER",
dense_rank() over (order by grp_num desc)
from seqtable;or:
-- Data:
with seqtable as
select 'POIP1234567891234567' grp_num,1 "ORDER",'' new_grop from dual union all
select 'POIP1234567891234567' ,2 ,'' from dual union all
select 'POIP1234567891234567' ,3 ,'' from dual union all
select 'LKJG1234567897412589' ,1 ,'' from dual union all
select 'JHGF1234567891234567' ,1 ,'' from dual union all
select 'JHGF1234567891234567' ,2 ,'' from dual
-- Query:
select grp_num, "ORDER",
10000 + dense_rank() over (order by grp_num desc)
from seqtable;I suggest not to use "ORDER" as column name, because it is an oracle reserved word.
You may ommit the quotes, when you use another column_name. -
Does not save changes if do not tab to another field
Hi all,
I have created a simple text book Business Component Data form based on one table (using wizzards). Everything looks good UNTIL :
at runtime if I change a value to a field but do not navigate to another field (tab or click) it does not take my changes into account (even the arrow in the tool bar 'Save changes to the database' becomes enabled only until I click out of the field).
Any ideas?
How can I programatically force the tab or click (I tried validate triggers, mouse exit etc..)
PS : I am using JDev3.1
Thanks<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sathish Kumar:
|How can I programatically force the tab or |click (I tried validate triggers, mouse exit |etc..)
If you registered a mouse listener with the control, you can set the value of the
attribute by,
ImmediateAccess ia =
(ImmediateAccess)myControl.getDataItem();
ia.setValue(newValue);
<HR></BLOCKQUOTE>
Thanks for the answer but I tried it and it does not compile the ImmediateAccess stuff (do I need to import a class to get this feature working).
Thanks
PS : I am a newby in Java....
null -
Search help for a field in table control based on another field value
Hi,
I want to attach the Search help for a field in table control based on another field value.
Please help me asap.
Will be highly rewardedHI,..
Check these links
search help in table control
Re: How to create Search Help for a field in Table control !!
How to create Search Help for a field in Table control !!
F4 Help In Table Control
Control table F4 help
Problem in F4 help in screen field
check this code
DATA: BEGIN OF it_value4 OCCURS 0,
TEXTCODE LIKE ZXX-TEXTCODE,
TEXTDESC LIKE ZXX-TEXTDESC,
END OF it_value4.
progname = sy-repid.
dynnum = sy-dynnr.
SELECT TEXTCODE TEXTDESC
FROM xxxx
INTO CORRESPONDING FIELDS OF TABLE<b> it_value4</b>
WHERE LOSS_CODE =<b> IT_VALUE1 .</b>
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'TEXTCODE'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'ITVALUE-TEXTCODE' "-->UR 4 th filed value in screen
value_org = 'S'
TABLES
value_tab = it_value4.
endmodule.
Message was edited by:
veereshbabu ponnada -
Please Help, I want to change field value in a table, based on another field value in the same row (for each added row)
I am using this code :
<HTML>
<HEAD>
<SCRIPT>
function addRow(tableID) {
var table = document.getElementById(tableID);
var rowCount = table.rows.length;
var row = table.insertRow(rowCount);
var colCount = table.rows[0].cells.length;
for(var i=0; i<colCount; i++ ) {
var newcell = row.insertCell(i);
newcell.innerHTML = table.rows[1].cells[i].innerHTML;
switch(newcell.childNodes[0].type) {
case "text":
newcell.childNodes[0].value = "";
break;
case "checkbox":
newcell.childNodes[0].checked = false;
break;
case "select-one":
newcell.childNodes[0].selectedIndex = 0;
break;}}}
function deleteRow(tableID) {
try {var table = document.getElementById(tableID);
var rowCount = table.rows.length;
for(var i=0; i<rowCount; i++) {
var row = table.rows[i];
var chkbox = row.cells[0].childNodes[0];
if(null != chkbox && true == chkbox.checked) {
if(rowCount <= 2) {
alert("Cannot delete all the rows.");
break;}
table.deleteRow(i);
rowCount--;
i--;}}}catch(e) {alert(e);}}
</SCRIPT>
</HEAD>
<BODY>
<INPUT type="button" value="Add Row" onClick="addRow('dataTable')" />
<INPUT type="button" value="Delete Row" onClick="deleteRow('dataTable')" />
<TABLE id="dataTable" width="350px" border="1">
<TR>
<TD width="32"></TD>
<TD width="119" align="center"><strong>Activity</strong></TD>
<TD width="177" align="center"><strong>Cost</strong></TD>
</TR>
<TR>
<TD><INPUT type="checkbox" name="chk"/></TD>
<TD>
<select name="s1" id="s1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</TD>
<TD><input type="text" name="txt1" id="txt1"></TD>
</TR>
</TABLE>
</BODY>
</HTML>Hi,
Let me make sure u r working with table control.
First u have to create a event(VALIDATE) to do the validation.
Inside the event,
1. First get the current index where user has pointed the curson
2. Once u get the index read the internal table with index value.
3. Now u can compare the col1 and col2 values and populate the error message.
1. DATA : lo_elt TYPE REF TO if_wd_context_element,
l_index type i.
lo_elt = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
CALL METHOD LO_ELT->GET_INDEX( RECEIVING MY_INDEX = l_index.
above code should be written inside the event.
Thanks, -
Choose field from joined table based on another field?
Good morning!
Is it possible to select a field from a joined table row based on another field? Consider the following data in the CVALUES table:
ID C1 C2 C3 C4 C5 C6
T1 9.6 10.3 12.4 19.6 19.6 0
T7 9.6 10.4 0 0 0 0
T3 8.2 9.9 11.4 19.6 19.6 0
T8 8.3 10.7 13.5 20.7 0 0
T5 9.4 10.3 12.7 22.9 19.6 0
...And the following data in the MDETAIL table:
ID MDATE CNUM ...
T1 03/28/2012 18:00:00 4
T1 03/28/2012 18:00:00 1
T8 03/29/2012 06:00:00 6
T8 03/29/2012 06:00:00 5
...I want to get the column from CVALUES corresponding to the CNUM field in the MDETAIL table. I'm currently doing this:
SELECT m.t1, m.mdate,
CASE WHEN m.cnum = 1 THEN c.c1
WHEN m.cnum = 2 THEN c.c2
WHEN m.cnum = 3 THEN c.c3
WHEN m.cnum = 4 THEN c.c4
WHEN m.cnum = 5 THEN c.c5
WHEN m.cnum = 6 THEN c.c6 END AS cvalue
FROM mdetail m
JOIN cvalues c ON m.id = c.idThe records in the CVALUES table are unique; only one row per ID.
This method works, and it's fast but it's messy code and I think there has to be a better way to do it. I use the cvalue value in several calculations so every calculation I use it in has this giant glob of CASE in it!Since you're comparing the same column against scalar values, the CASE statement could be simplified in a similar way :
CASE m.cnum
WHEN 1 THEN c.c1
WHEN 2 THEN c.c2
WHEN 3 THEN c.c3
WHEN 4 THEN c.c4
WHEN 5 THEN c.c5
WHEN 6 THEN c.c6
END AS cvalueSince performance is not the issue here, now it depends on what you consider "more readable".
Using a one-liner piece of code certainly makes the query looks less bulky, but I won't be so sure about readability and immediate understanding. -
Field catalog does not agree with the fields of the functional area
G'day everyone,
I am using a generic extractor via infoset to extract data from R/3 source system.
Using RSA3, I have obtained an error message and no further details.
****ERROR MESSAGE
"Field catalog does not agree with the fields of the functional area
Message no. RSUQ134
****ERROR MESSAGE
I have checked and adjusted my infoset in SQ02 and they seems fine but still obtain the same error.
In BW, replicated the datasource and activate the transfer rules but still obtain the same error.
Anyone knows how to get more details for this type of error? Or how to fix this problem?
Regards
WayneI think I have just solved it.
Transaction RS02 delete and recreate after checking the structure in BW and Source system are the same.
Cheers -
Ref2 on JE not populated for Credit Memos not based on another document
Version: (2007A)
Description of requirements: (Please provide a detailed description)
When the Setting in System Initialization\Document Settings \General tab\
Document Remarks Include is set to BP Reference Number, the Ref2 field on the Journal Entry for the document is populated with the BP Reference from the document. This is true for all documents, regardless of whether or not the document is based on another document, EXCEPT for AR and AP Credit Memos. In the case of Credit Memos, if the Credit Memo isnu2019t based on another document, the BP Reference isnu2019t written to the Ref2 field on itu2019s Journal Entry. Our customers have complained that this makes it very difficult for them to do their reconciliations as the Ref2 is blank on the reconciliations screen for these Credit Memos. If the Ref2 field were populated in the same manner as other documents, the Ref2 Field would contain the same BP Reference as the invoice(s) it should be reconciled with. We have been asked to request that this functionality be added in a future patch, as it would greatly simplify the customeru2019s reconciliation and save them a great deal of time and effort.
Business needs: (Please describe the impact on your business, if the functionality is not realized)
It is very difficult to reconcile our Credit Memos with the correct documents, as there is no reference available on the screen to connect them to the other documents. This requires a great deal of time researching which Credit Memo(s) should be reconciled with which Invoice(s).
Examples: (Please describe a typical example, how the functionality should work.)
When a Credit Memo (Purchase or Sales) not based on another document is created, the Ref2 field on the Journal Entry should be updated with BP Reference entered by the user on the Credit Memo.
Current Workaround: (Please describe the workarounds you are using at the moment)
None. Hours wasted trying to reconcile correctly.
Proposed solution: (Please suggest how the new functionality should work)
When a Credit Memo (Purchase or Sales) not based on another document is created, the Ref2 field on the Journal Entry should be updated with BP Reference entered by the user on the Credit Memo.
Regards,
Sally Weinrauch
Coastal Range Systemshi,
so change field status group with trx <b>OB41</b>
A. -
Changing a field based on another field
hi one and all
i am looking for a way to change a field based on another field. if i have item 2 and item 8 on the page and item 8 needs to be required based on item 2 based on a requirement, how would this be done.
ex if item 2 has a PO inputed, when it is moved off the field, item 8 should be changed from required false to required true. i have tried in both the process request and process form request with no luck
any suggestions.
thankshello again
after your input and after reviewing the tutorial ( which i accomplished based on data from a table but not a field ) , i did the following and have been fighting it for a day. am i doing this correctly
on the itemid OrgRptCode1 i changed the action type to firePartialAction and the event is name o1
then i added this code to see if the action would fire
if (pageContext.getParameter("OrgRptCode1") !=null) // either line will be commented out
if (pageContext.getParameter("o1") !=null) // either line will be commented out
System.out.println("Field is not empty");
else
System.out.println("Field is empty");
am i missing a step . also
when i enter the page i get Field is empty. when i enter the field and tab off i get the error page w/ this msg
oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1064)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1294)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2396)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.lang.NullPointerException
at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processFormRequest(manageOrgCO.java:289)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.lang.NullPointerException
at uaboaf.oracle.apps.xxuab.hr.orghierarchy.webui.manageOrgCO.processFormRequest(manageOrgCO.java:289)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:734)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:943)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1546)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:373)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:929)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:895)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:751)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:352)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:340)
at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2392)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1512)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
at OA.jspService(OA.jsp:40)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534) -
Making a DFF field mandatory based on another field
Hello All,
We have a requirement where in we need to make a DFF field mandatory based on another field.
example:
DFF has two fields :
Filed1 : values 'Email', 'Fax'
Filed2
If 'Email' is selected in 'Field1' then Field2 should become mandatory.
Any inputs on this will be really helpful.
Thanks & Regards,
Satya.hi kumar3a,
recently, i spent considerable amount of time wracking my brain on a similar problem. the nearest i came to a solution was when i used a forms personalisation. mind you, forms personalisation will not work directly on the DFF window, so it has to be approached in a roundabout sort of way.
i got this information from an Oracle Support personnel - MOS Note 1078348.1.
i would start with the flexfield segment as "not required", and then using Forms Personalization, i would make it "required". i would try to figure out how to establish a condition where the previous 'required' flexfield segment's value is checked to see if this 'not required' segment needs to be made 'required'. in theory, this should solve the issue. i gave up on it because the forms personalisation would need to cover WHEN-VALIDATE trigger event, and we had close to 100 validations going on through other preexisting forms personalisations, which rendered it near impossible to employ this method.
best regards. -
Automatically populate fields in jsp documents based on other fields
hello guys. I have a jsp document
that has the following
<af:inputText value="#{bindings.SourceDocumentId.inputValue}"
label="#{bindings.SourceDocumentId.label}"
required="#{bindings.SourceDocumentId.mandatory}"
columns="#{bindings.SourceDocumentId.displayWidth}"
binding="#{backing_transactions_editTransactions.docId}"
id="docId">
<af:validator binding="#{bindings.SourceDocumentId.validator}"/>
<f:convertNumber groupingUsed="false"
pattern="#{bindings.SourceDocumentId.format}"/>
</af:inputText>
<af:inputText value="#{bindings.DocumentName.inputValue}"
label="#{bindings.DocumentName.label}"
required="#{bindings.DocumentName.mandatory}"
columns="#{bindings.DocumentName.displayWidth}"
binding="#{backing_transactions_editTransactions.docName}"
id="docName">
<af:validator binding="#{bindings.DocumentName.validator}"/>
</af:inputText>
And I have created the generated the backing beans automatically.
public class EditTransactions {
private CoreInputText docId;
private CoreInputText docName;
public CoreInputText getDocId() {
return docId;
public void setDocName(CoreInputText inputText7) {
this.docName = inputText7;
public CoreInputText getDocName() {
return docName;
I have a method in appmodule that has this
public String getDocName(Number docId)
{String docName;
return docName
on the document Id field I have to input a certain docId after I input the docId I have to populate automatically the docName based on the doc Id being given.
question
1. how can I set the document name automatically w/out submitting the page ?
2. how can I use my backing bean to set the docName using the method in my AppModule.?
Can anyone help me regarding this one.
Thank in advance
alvin.
here is what you need to do:
1. Change the definitions for your fields as following
<af:inputText value="#{bindings.SourceDocumentId.inputValue}"
label="#{bindings.SourceDocumentId.label}"
required="#{bindings.SourceDocumentId.mandatory}"
columns="#{bindings.SourceDocumentId.displayWidth}"
binding="#{backing_transactions_editTransactions.docId}"
id="docId" valueChangeListener="#{backing_transactions_editTransactions.docIdChange}"
autoSubmit="true">
<af:validator binding="#{bindings.SourceDocumentId.validator}"/>
<f:convertNumber groupingUsed="false"
pattern="#{bindings.SourceDocumentId.format}"/>
</af:inputText>
<af:inputText value="#{bindings.DocumentName.inputValue}"
label="#{bindings.DocumentName.label}"
required="#{bindings.DocumentName.mandatory}"
columns="#{bindings.DocumentName.displayWidth}"
binding="#{backing_transactions_editTransactions.docName}"
id="docName"
partialTriggers="docId">
<af:validator binding="#{bindings.DocumentName.validator}"/>
</af:inputText>2. add the followig method to your backing bean:
public void docIdChange(ValueChangeEvent valueChangeEvent) {
getDocName().setValue((String)getDocId().getValue() + "suffix");
}Run your form and enter the value into docId field, then press tab to go to the next field - docName will be populated
here is what you need to do:
1. Change the definitions for your fields as following
<af:inputText value="#{bindings.SourceDocumentId.inputValue}"
label="#{bindings.SourceDocumentId.label}"
required="#{bindings.SourceDocumentId.mandatory}"
columns="#{bindings.SourceDocumentId.displayWidth}"
binding="#{backing_transactions_editTransactions.docId}"
id="docId" valueChangeListener="#{backing_transactions_editTransactions.docIdChange}"
autoSubmit="true">
<af:validator binding="#{bindings.SourceDocumentId.validator}"/>
<f:convertNumber groupingUsed="false"
pattern="#{bindings.SourceDocumentId.format}"/>
</af:inputText>
<af:inputText value="#{bindings.DocumentName.inputValue}"
label="#{bindings.DocumentName.label}"
required="#{bindings.DocumentName.mandatory}"
columns="#{bindings.DocumentName.displayWidth}"
binding="#{backing_transactions_editTransactions.docName}"
id="docName"
partialTriggers="docId">
<af:validator binding="#{bindings.DocumentName.validator}"/>
</af:inputText>2. add the followig method to your backing bean:
public void docIdChange(ValueChangeEvent valueChangeEvent) {
getDocName().setValue((String)getDocId().getValue() + "suffix");
}Run your form and enter the value into docId field, then press tab to go to the next field - docName will be populated
Table Control on a report selection screen -not a dialog transaction screen
Hi
Does anyone know of a way to have table control functionality on a report selection-screen? The program needs to be able to run as a background job (ie cannot be a dialog transaction) and we need to be able to save variants with the selection-screen values.
Any help would be appreciated.
The key point is we want to allow the user to enter a dynamic number of rows of table data on the selection-screen, save a variant containing that data and execute the program with the variant as a background job.
Thanks
Nicole Knight
Hi Nicole,
The main problem is how to persist the data. If you are not able to create a couple of tables then you could always utilise TVARV instead. On a similar line to my original post you could have the button call a dialog transaction. In here you could do your normal GUI table control. When saving the data simply transpose each column into a separate select-option held on TVARV keyed by the 'variant name' + fieldname. Then retrieve and transpose this back when executing the report.
Other methods could be storing the data in cluster xy (see EXPORT TO DATABASE command).
This seems a bit overkill for what would be a couple of maintenance dialogs.
Cheers,
Pete
PS. The view cluster is just a way of hierarchically performing table maintenance across multiple related tables. It offers a good UI for this purpose (header and item config tables) and is utilised extensively in the IMG.
Conditional formating in a pivot table field based on another field
Hello All,
I have a pivot table with fields like Division, Day, Current DayTotal, Previous DayTotal. I have to set the background color of CurrentDayTotal field based on PreviousDayTotal. I searched all the blogs and they say Crossconditional Formatting is not possible in 10.1.3.4 pivot table.
Conditional formatting works fine with the same field but not with a calculated field. I have tried these two options (Java Script and setting XML in Advanced tab) on a similar solution based on Grand Total.
Conditional formtting in Grand total
But not able to make it work for my current situation. Can you help.
Regards,
-Srini
Hi,
I've read all the tips that are offered in this forum. I tried all the solutions provided here, but I can not get the grand total formatted conditionally, what I get is the following error nell'answer:
DXE compiler error. No table 'GTGT' found in DXE. Source name: DxeAPI. XML: None
Error details
Codici di errore: YV3KVTDM
Location: saw.hypercube.dxeApi, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
I'm use the version: OBIEE 11.1.1.6.2
Anyone have any ideas for me?!
Input field - entry is not in the list of values
Hi
I have a very strange thing going on in my aPP.
I use an input field to which I attach an on Enter event.
When user presses 'Enter', a pop up window appears with the list of countries.
Selecting a country automatically puts this country into the input field. So far so good.
The problem, however, I am experiencing is in a situation where the user enters a valid value into the input field
without pressing 'Enter' and then continues pressing other buttons in the app. What happens is that the web dynpro framework immediately throws an exception saying the value is not in the set of accepted values.
I do not understand why the system throws such an exception if no set of values has yet been attached to the input field (by ImodifiableValueSet for example).
Any idea?
Thank you
yuval peery
Hi
1. In comp controller in wdDoInit I get the list of countries and write them to a local node.
2. This node is mapped to a view in a different window.
3. When I press enter, a pop up window is created. The values mapped from the comp controller to this view are presented to
the user in a nice table.
4. When the user selects a line in the table, the method writes back the value to my input field.
Quite straight forward.
The problem is that when the user enters a valid name into the input field before even pressing "Enter" the framework
returns "entry is not in the set of values".
Frustrating.
regards
yuval
Maybe you are looking for
-
It has quit working with "liverez" which is my web based reservation program. The place I login is https://reservations.liverez.com/login.asp?LogOff=True&Return=Res but once I login, the site does not work as it did before. The website that correspon
-
How can my wife and I use our two iTunes account on one iPad
How can my wife and I use our two iTunes accounts on one IPad
-
Cancel Indicator X record is not updating to Standard DSO
Hi All, I working on SD--> Deliveries Extractor 2LIS_12_VAITM, we have setup the solution as similar to LSA model. I can see a Delivery 123 has been created and changed in the same day. Delivery item createdon GI_DATE 123 10 2014.01.01 20
-
'Store images' adds new copies of existing files
Using N73 by bluetooth, PCsuite 6.80.22 and XP-SP2 Typical question; is a bug or a feature when 'store images' downloads images again and again to the PC? For example: image_630.jpg, image_630(1).jpg and image_630(2).jpg PC suite first searchs for NE
-
How to add Project 365 to existing Office 365 subscribed through GoDaddy
We subscribe to Office 365 through our GoDaddy account. Is there a way to add Project 365 to this subscription? If not (meaning we have to go through Microsoft) is there a way to merge these accounts? It appears we would need a different sign in t