B1 Validation Conf. to change rows of a SO
Hello - I would like to be able to change all rows in a sales order. We have a custom field added to the sales order as a column. It's a combo box called shipping instructions with three values. If we have an order with twenty lines and wish to change the shipping instructions, it has to be done row by row. I have a B1 validation configuration firing when the value is changed, it runs a universal function which is a message of type question but then I can't run the code to change all the rows. If I use a line loop how would I insert the question.
The functionality should be if a user clicks on the shipping instructions and changes the value a question should be posed as weather the user wants to change all rows or just the current row. If the user clicks yes all rows should be set to the combo box value the user picked. If the user clicks no only the current row should be changed.
Am I approaching this wrong? Attached is a screenshot of what I currently have. Thanks for any pointers.
Hi Sheetal,
On the mouse click try this code.
oMenu.Item("MenuID").Image = "Image.jpg"
If helpful dont forget to give points.
Regards,
Vasu Natari.
Similar Messages
-
Change row's color in report painter
Hi all!!!
anybody knows how change row's color in report painter,
for example
number name | money
7020 payments1 | 100.00
7021 payments2 | 200.00
summary | 300.00
change color of row "7020 payments1" and "7020 payments1"
Regards!!!Hi,
For it, first place the cursor on the row and choose Formatting > Row. In the next dialog box, select a color (for totals, subtotals, inserted rows, or for emphasis). The system assigns a color based on the selection you make here.
Regards,
SDNer -
Hi all,
Oracle table A with fields companycode,Locid,suppid,supptyp .100 records for each company,locid combination,
but in VSAM file we have to load into a single record with 100 occurances
in table
Companycode1,locid1,supp1,supptyp1
Companycode1,locid1,supp2,supptyp2
Companycode1,locid1,supp100,supptyp100
Companycode300,locid1,supp1,supptyp1
Companycode300,locid1,supp2,supptyp2
Companycode300,locid1,supp100,supptyp100
need like
Companycode1,locid1,supp1,supptyp1,supp2,supptyp2....supp100,supptyp100
Companycode1,locid2,supp1,supptyp1,supp2,supptyp2....supp100,supptyp100
Companycode300,locid1000,supp1,supptyp1,supp2,supptyp2....supp100,supptyp100
Right now i am trying with Distinct companycode,locid and the other columns in cursor then useing update in
to the distinct copany,locid table its respective data .
is there any other easy way to change Row -> to Column
is there any pre build option in Oracle 10G to get this format?
Many Thanks
kalingaUse decode to achieve this. You will get plenty of examples in this forum. Try search with Pivot keywords. You will get plenty of example.
Regards.
Satyaki De. -
Hi,
How to change Row height in standart report template, if I use jquery.htmldbHscroll-0.0.1.min (which I found on this forum). Simply rows height are bit another than in colums without scrolling.
Thank you !go0ze wrote:
Hi,
How to change Row height in standart report template, if I use jquery.htmldbHscroll-0.0.1.min (which I found on this forum). Simply rows height are bit another than in colums without scrolling.
Thank you !Hi,
You did found from this forum??
Regards,
Jari -
hi
how can i change row color on alv.Hi
thanks your answer Uday Gubbala
i was examinated this link [https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/abapWebDynproALV-ChangeCellColourbasedonContent]
but i don't do this row wd_this->m_alv_model = lo_value. error message : m_alv_model unknow.
and this sample change column color but i want to row
Thanks. -
Re: Is it possible to change row colors on array fields ors
HI Martin!
Yes, it is possible to change row colors on array fields.
I have attached a PEX (tools.pex) which has an object which changes FillColor
and PenColor for Arrays. The PEX has it's own test window, so you can try
various combinations. (There are a few other Objects in the Project which are
not relevant
I'm not sure that you can change colors on individual choices in a scroll list.
I haven't tried playing around with it.
The test window actually changes the color of scroll lists as well.
The object keeps track of which rows have changed color, same with pen color, so
that when you scroll it keeps track of which rows are a different colors.
The pex is self-contained, just import the file and do a test run.
Please let me know if you have any problems.
-later
-labeaux
Is it possible to change row colors on array fields or scroll lists?
I need to create a list field that will allow me to dynamically change the
fillColor and/or penColor attributes of individual rows. (I just want to
highlight the rows, and those seem to be the obvious attributes...) It appears
you can't do that on scroll lists (the elements are list elements, and don't
have those attributes) and I can't figure out how to do it on an array field
either. Any ideas for how to accomplish this?
-Martin ([email protected])FreshWebmuse,
Version 2 of iCal has the "Group Calendar" feature. It was released as part of Mac OS X v10.4, and if you really want/need that feature you will have to upgrade to Tiger.
;~) -
How to get only the changed rows in h:dataTable
Hi,
I am very new in jsf technology.
For our application, I need to process only the changed rows in the jsf datatable in managed bean.
User may also enter new rows.We have to consider this also.
Pls post ur suggession as soon as possible.This is urgent.This will be best if someone can post me some code snippets.
Thanks
-SAs klejs said, set the valueChangeListener attribute to each of the input fields. Have a method in your backing bean which would
1) get the index from the component id
2) get the object and the above index from ArrayList
3) check if the old Value is different from the new value. If yes, set some boolean flag in that object to true indicating that the row is modified.
Sample code below. Please feel free to add checks if you need.
public void updateDirtyFlag(ValueChangeEvent valueChangeEvent){
if(valueChangeEvent.getOldValue()==null && valueChangeEvent.getNewValue()==null){
return;
if(valueChangeEvent.getComponent().getId()==null){
return;
//Extract the index from the component id in the getId method
int idVal=getId(valueChangeEvent.getComponent().getClientId(FacesContext.getCurrentInstance()));
ArrayList dataList=getData(); // data from session or request scope
if((valueChangeEvent.getOldValue()==null && valueChangeEvent.getNewValue()!=null)
|| (valueChangeEvent.getOldValue()!=null && valueChangeEvent.getNewValue()==null)){
if(dataList!=null && idVal<dataList.size() && idVal>-1){
YourBaseValueObject pojo=(YourBaseValueObject)dataList.get(idVal);
pojo.setUpdateFlag(true);
else if(valueChangeEvent.getOldValue()!=null && valueChangeEvent.getNewValue()!=null && !valueChangeEvent.getOldValue().equals(valueChangeEvent.getNewValue())){
if(dataList!=null && idVal<dataList.size() && idVal>-1){
YourBaseValueObject pojo=(YourBaseValueObject)dataList.get(idVal);
pojo.setUpdateFlag(true);
}HTH.
Karthik -
Hi,
I am trying to change rows into columns, and I have come up with a package that should do this. However, it doesn't work properly, so am wondering if someone can help me out finding out what is wrong.
I am using the emp table owned by Scott in an Oracle database, and I want my output to look like this:
SAL 10 20 30
800 SMITH
950 JAMES
1100 ADAMS
1250 WARD
1250 MARTIN
1300 MILLER
1500 TURNER
1600 ALLEN
2000
2000 beth
2000 Anne
SAL 10 20 30
2450 CLARK
2850 BLAKE
2975 JONES
3000 SCOTT
3000 FORD
5000 KING
I want the deptno to be the header of the column, except from the first column where I want the salary, and then I want all the employees with the specific salary in the specific department number in the row of the right salary and deptno. I saw on the preview screen that you guys will not see the result like I actually have pasted it in here, but I think you will understand what I want. Out of my result I want to read all the employees in deptno 10,20,30,..... and what the salary is.
So far I have come up with this:
create or replace package pivot
as
type rc is ref cursor;
procedure data(p_cursor in out rc );
end;
create or replace package body pivot
as
procedure data(p_cursor in out rc )
is
l_stmt long;
begin
l_stmt := 'select sal';
for x in ( select distinct deptno from emp order by 1 )
loop
l_stmt := l_stmt ||
', max(decode(deptno,' || x.deptno ||', ename)) "x.deptno"';
end loop;
l_stmt := l_stmt || ' from emp group by sal order by sal';
open p_cursor for l_stmt;
end;
end;
variable x refcursor
set autoprint on
exec pivot.data( :x );
The package gets created without any errors, but when I execute it, it returns the following error:
SQL> exec pivot.data( :x );
BEGIN pivot.data( :x ); END;
ERROR at line 1:
ORA-00936: missing expression
ORA-06512: at "SCOTT.PIVOT", line 14
ORA-06512: at line 1
And I can't see what is wrong with it. Can anyone help?
Thank you.
Regards,
AnneJust like this...and a dbms_output after the open cursor to show you the query begin formed.
create or replace package body pivot
as
procedure data(p_cursor in out rc )
is
l_stmt long;
begin
l_stmt := 'select sal';
for x in ( select distinct deptno from emp order by 1 )
loop
l_stmt := l_stmt ||
', max(decode(deptno,''' || x.deptno ||''', ename)) "'||x.deptno||'"';
end loop;
l_stmt := l_stmt || ' from emp group by sal order by sal';
open p_cursor for l_stmt;
dbms_output.put_line(l_stmt);
end;
end;
Package body created.SQL> set serveroutput on
SQL> exec pivot.data(:x);
select sal, max(decode(deptno,'10', ename)) "10", max(decode(deptno,'20',
ename)) "20", max(decode(deptno,'30', ename)) "30" from emp group by sal order
by sal
PL/SQL procedure successfully completed.
SAL 10 20 30
800 SMITH
950 JAMES
1100 ADAMS
1250 WARD
1300 MILLER
1500 TURNER
1600 ALLEN
2450 CLARK
2850 BLAKE
2975 JONES
3000 SCOTT
SAL 10 20 30
5000 KING
12 rows selected.
SQL>
Think that solves the single quote problem. :) -
Changing row color through a drop down box????
Is there a way I can get a table row to change color based on the value of a drop down box? I have 3 color options in the drop down list: yellow, green, red. I'm trying to get it so when I select a color in the list (like for example green) the whole row of that table fills with green. I'm searching for an answer and I can't find it. Any help would be greatly appreciated Thanks :)
Check the code very carfully, you appear to have left off a number of quotes:
// force to white in case there is no match following
Page1.Shape.LeaveType.border.fill.color.value = "0,0,0";
//changes row to red
if(LeaveType.rawValue == 4) {
Page1.Shape.LeaveType.border.fill.color.value = "255,0,0";
//change row to Green
if(LeaveType.rawValue == 3) {
Page1.Shape.LeaveType.border.fill.color.value = "0,128,0";
//change row to Blue
if(LeaveType.rawValue==2) {
Page1.Shape.LeaveType.border.fill.color.value = "0,0,255";
//keep row white
if(LeaveType.rawValue == 1) {
Page1.Shape.LeaveType.border.fill.color.value = "0,0,0";
Or you could use the "swithc(){}" statement:
var FillColor = "0,0,0"; // white
switch(LeaveType.rawValue) {
case 4:
FillColor = "255,0,0"; // red
break;
case 3:
FillColor = "0,128,0"; // green
break;
case 2:
FillColor = "0,0,255"; // blue
break;
case 1:
break;
default:
app.alert("Unkown Leave Type: " + LeaveType.rawValue, 1, 1); // identify unkown leave type
break;
Page1.Shape.LeaveType.border.fill.color.value = FillColor;
You might want to also open Acrobat and check the Debugging Conosole for errors. -
How to change row background when the value was changed?
hello expers!!
i need your help...plz help me.
i want my table row(specific) background changes when the user changed the value in a cell. I am able to know that a value in a cell was changed but the problem is i dont know how to change row color background. I've researched over the internet on how to solve this problem but nothing was found.
please see the link to help you visualize what i mean. tnx!
[http://www.flickr.com/photos/28686474@N04/2708299927/]
tnx in advance!! code snippet will be a great help...
Edited by: kagaw3000 on Jul 27, 2008 8:22 PMfinal JTable table = new JTable(data, columnNames) {
int lastRowChanged = -1;
@Override
public void tableChanged(TableModelEvent e) {
super.tableChanged(e);
lastRowChanged = e.getFirstRow();
repaint();
@Override
public Component prepareRenderer(TableCellRenderer renderer,
int rowIndex, int vColIndex) {
Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
if (rowIndex == lastRowChanged) {
c.setBackground(Color.RED);
} else {
c.setBackground(getBackground());
return c;
...........this code will changed background color when data was changed BUT if i changed another data in another row the previous backgound color(RED) will be erase. To make it more clearer, it will only change background color of a row only to one row NOT to multiple rows(that is being edited). -
How change row hight in a button binding LOV?
Can I change row hight in a button binding LOV?
And also the font, the size of LOV window, the location of LOV window.You may see the source for JClient as to howit installs an LovPanelInterface implementation with the button. You may create another custom implementation of this panel and then host it in it's own dialog (quite like oracle.jbo.uicli.controls.JULovDialog)
The relevant sources are in :
oracle.jbo.uicli.jui.JULovButtonBinding (look for MyLovPanel)
and
oracle.jbo.uicli.controls.JULovDialog
and the sources are in BC4J\src\bc4juisrc.zip -
In the final display list how can i change rows to columns and vice versa
in the final display list how can i change rows to columns and vice versa
It's Urgent
Thanks
BasuHai,
Check this following Threads,
converting rows to columns in internal tables
Re: logic- report to move columns to row in a list
Regards,
Padmam. -
Validation to restrict change in editing
Dear Expert,
Can anyone suggest me the validation , which gives error on any kind of change.
My scenarrio is as following.
1.I have uploaded Old WBS from existing SAP Database.
2.I want to put one validation which restict change in the details of these data.
3.I want to to restrict change as per project profile.
Kindly put some valuable words
RegardsHi,
If you can use separate project type for those project u can control field selection on OPUK having influencing field as project type.
Hope this would help bit
Regards,
SL -
How to create validation only for created rows in tabular form
Hi all,
I have a simple question. Is it possible to create a validation for tabular form which will be fired only for created?
There is a possibility in APEX 4.1 to choose two types of "*Execution scope*" first is "*For created and Modified Rows*" and second is "*All Submitted Rows*".
Thanks in advance!
Regards,
JiriHello Jiri,
>> Is it possible to create a validation for tabular form which will be fired only for created?
You can still use the scope of For created and Modified Rows and use a PL/SQL Expression condition of:
:APEX$ROW_STATUS = 'C'You also need to change Execute Condition to For Each Row .
Hope it helps,
Arie.
Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all. -
Adding Data through LOV when LOV validation fails to bring row
Question on Adding data to LOV:
Just like in form 5(Professional Forms), Is there a way to dynamically insert the row to add data if the data entered is not in the LOV? I have searched forum and looked at Dev Guide but didn't find any notes. One way is making "AutoValidation" false so LOV will not fire and validate, THEN upon SAVE just commit trx. Will this work? or Is there a better thought. ThanksSet the Disable Validation property of the LOV Item to "True"
Thanks,
Kumar
Maybe you are looking for
-
HP Laserjet 2420 sees jammed papers, but they are not.
I have a HP Laserjet 2420 printer, I use it with a LAN for work reasons. All the computers using this printer are Apple computer with different version of MacOS X (from 10.3 to 10.6). The printer started stopping randomly and quite often as like as s
-
I am having problems with my time capsule. It's not backing up... if I enter the time machine, all I see is a black page, any day I look, since the day I bought it. Was not like this before Oct 25... Any ideas on what's going on and what should I do
-
Aslam o Alikum (Hi) i am using Reports 6i. From Screen previewer when i click Generate to file -> pdf or other formats it show me error message "Unimplemented error". But report run well in previewer. solution urgently needed. Allah Hafiz
-
Macro not working in BEx Analyzer (Refresh selection Screen)
Hi All, We have migrated work book for 3.x to 7.x and work book having lot of macros calculated and using multiple quires in single work books for inpt selection screen written Macro same macro is not working after Migration to 7.x 7.X Macro code bel
-
this is query regarding Oracle VM manager and ORACLE VM server ( what do i need VM manager for??) do i need OS or not? I am confused as in what do install first and do i run both. Also is it essential to OVM or i can use my already existing VM which