How to Set column value in SO matrix , if the column is not visible.
Hi,
We are trying to set value in to a column from sales order matrix with the below mentioned code
((SAPbouiCOM.EditText)oMat.Columns.Item("U_TWBS_AC_BaseEntry").Cells.Item(pVal.Row).Specific).String
it will throw an u201CForm Item is not editable u201C error if the column ("U_TWBS_AC_BaseEntry") visible is set to false through form settings.
how can we solve the issue,can we use any DI object in order to reset the form settings.
Thanks & Regards
Hi
Try and make the column visible then set the value and make it invisible then
Hope this helps
Regards
Vivek
Similar Messages
-
How to set alarm and trigger it even if the application is not running ?
I am developing an alarm clock application in air... how to set alarm using setAlarm method in qnx api and run it in back ground so that even if application is closed the alarm triggers at set time
The OP asked again in this Tablet OS SDK for Adobe AIR forum thread.
Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery! -
How do I "eject" camera from iPhoto app when the icon is not visible in the left-hand column?
The "eject" icon is not visible so I'm concerned about just unplugging my camera from the USB portal. I think it could wipe out the existing files on the card.
If your camera mounts to the desktop uyou can dismount it from the finder
LN -
How to set default value in OAMessageLovInputBean?
Hi,
How to set default value in OAMessageLovInputBean while loading the page?
I have tried the following code but its not working.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
String delToLoc = (String)pageContext.getSessionValue("deliverTOLoc");
Number delToLocId = (Number)pageContext.getSessionValue("deliverToLocId");
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject poHeadervo =
(OAViewObject)am.findViewObject("PoHeaderMergeVO");
PoHeaderMergeVORowImpl poHeaderVoRow =
(PoHeaderMergeVORowImpl)poHeadervo.getCurrentRow();
if (delToLoc != null && !"".equals(delToLoc)) {
// poHeaderVoRow.setShipToLocation(delToLoc);
OAMessageLovInputBean msb = (OAMessageLovInputBean)webBean.findIndexedChildRecursive("DefaultShipToLocation");
msb.setValue(pageContext,delToLoc );
Please suggest me how to resolve this issue.
Thanks & Regards,
SunitaHi Cristoph,
We tried all the way but could not able assign characteristics value before saving the document. it means we can only see the assigned value using transaction CV02N. but our requirement is to check if the user fills any value into characteristics it should check with default value which we would like to assign whenever we create a new part of the document which we are not able to achieve.we tried a lot but could not succeed.
Nay idea if we can achieve this....
Regards
Bhuwan Tiwari -
How to set default values in matrix combo
hai everybody.
i want to set default values in a matrix combo box. how to do that
pls.......Hi Priya,
Public Sub comboload1()
Try
ds = oform.DataSources.DBDataSources.Add("OUSR")
oitem = oform.Items.Item("pm7")
omatrix = oitem.Specific
ocolumns = omatrix.Columns
ocolumn = ocolumns.Item("V_2")
ocombo = ocolumn.Cells.Item(r).Specific (r = row number)
LoadEroToCombo1(ocombo)
Catch ex As Exception
oapp.MessageBox(ex.Message)
End Try
End Sub
load to combo function is below
Public Sub LoadEroToCombo1(ByRef ocombo As SAPbouiCOM.ComboBox)
Dim rset As SAPbobsCOM.Recordset
Dim querystring As String
Dim rcount As Long
Dim rindex As Long
Try
rset = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
querystring = "SELECT T0.U_NAME FROM OUSR T0"
rset.DoQuery(querystring)
rcount = rset.RecordCount
rset.MoveFirst()
ocombo.ValidValues.Add("0", "Select")
For rindex = 0 To rcount - 1
ocombo.ValidValues.Add(rset.Fields.Item(0).Value, rindex)
rset.MoveNext()
Next rindex
ocombo.Select("0")
rset = Nothing
System.GC.Collect()
Catch ex As Exception
oapp.MessageBox(ex.Message)
End Try
End Sub
try this code if it helps please reward points
Regards
Cool Ice
Edited by: Cool Ice on Jul 28, 2008 1:43 PM -
How to set default values for boolean columns
I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
I've tried to set default value at column level:
<Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
<Default>TRUE</Default>
</Field>
and at content type level:
<FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
But in any case, when i create a new item with this content type, default value is applied.
Can anyone tell how to set default values for boolean columns?
Thanks in advance,
Regards,
SergioIn the field definition you can set
<Default>1</Default>
or
<Default>0</Default>
How to set the default value Null? -
How to get fourthly row (row4) first column value (col1) in matrix
Hi to all,
In FMS, how to get fourthly row (row4) first column value (col1) in matrix in document.
select $[$38.1.4]
But it display the first row
Please give me hint.
Thank youHi Eric,
FMS may only apply to current row. There is no way to get any other fixed row.
Thanks,
Gordon -
SSRS - Expression to color column value dynamically in Matrix
Hi ,
I have a matrix which looks like :
The <<Expr>> value can be 1 /0 /"-" .
The Expr value is being calculated dynamically.
The data set query I am using has a column called due_days.
In the color expression of the <<Exp>> box I am using the expression as :
=IIf(Fields!Due_Days.Value>14 and Fields!Notes_Count.Value>0,"Blue",(Iif(Sum(Fields!Notes_Count.Value)=0 ,"Red","Black")))
My requirement is if the Due_Days column value is >14 then I need to highlight the value as blue else black and if value is 0 then red. When I use the above query it is just highlighting the color blue for 1st column only. Eg: 4th row . Due days for month
of Oct and Nov is > 14 but it shows blue only for month of oct.
How can i resolve the issue?In select query i have 5 columns:
Due days(Which is difference between 2 dates) ,
Notes count (Which is just a count of notes entered or not having value 0/1 and value '-' if another column CRD is greater than the matrix month and year.)Eg: below date 11/12/2014 is greater than Oct 2014 hence Oct 2014 should have "-"
Month Name , Year , Month Nbr (last 6 months which I cross joined with the table to get counts for each month)
The matrix has year and last 6 month as column groups
Color coding should be if notes count is 0 then red ,if notes count is 1 and due_days> 14 then blue else black . When i try to use expression for color as i mentioned above, it colors only 1st colum.eg: 2nd row
Nov 2014 is blue but for jan 2014 also it should show blue as due days>14 .
Is there any way i can do that ??
Eg: data set returns value as :
Due Days CRD Month
Month_Nbr Year Notes _Count
5 2014-11-28 00:00:00.000 December 12 2014
0
5 2014-11-28 00:00:00.000 February 2 2015
0
5 2014-11-28 00:00:00.000 January 1 2015
0
5 2014-11-28 00:00:00.000 November 11 2014 1
5 2014-11-28 00:00:00.000 October 10 2014 0
5 2014-11-28 00:00:00.000 September 9 2014 0
Matrix is of the form :
YEAR
MONTH
CRD Notes_count -
How to set cookie value in one page and retrieve in another page using setA
How to set cookie value in one page and retrieve in another page using setActionListener?
I have tried with following code srcpage.jspx->destpage.jspx
srcpage.jspx
<af:table value="#{bindings.DepartmentsView1.collectionModel}"
var="emp" rows="#{bindings.EMPView1.rangeSize}"
first="#{bindings.EMPView1.rangeStart}"
emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
<af:column sortProperty="EmployeeName" sortable="false"
headerText="Cookie Testing">
<af:commandLink text="#{emp.EmployeeName}" action="success">
<af:setActionListener from="#{emp.EmployeeName}"
to="#{cookie}"/>
</af:commandLink>
</af:column>
</af:table>
espage.jspx
<af:outputText value="Test Cookie Value: #{cookie}"/>
,Here Test Cookie Value prints the following instead of its original String value
{JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
Thanks in advance
KaleeHi,
"cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
#{cookie.cookieName}
Note that #{cookie} writes to and returns a map
check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
Frank -
How to set a value on a hidden required input field.
I have a form that I need to set a value that is stored within the session onto it. I would like the input field to be hidden when a new row is created and just set the value with a value that I have stored with sessionScope.
Is this possible?
Any help would be appreciated.Frank,
I sure can access the session attribute. I just wasn't sure how to set it. Here is a snippet of my jsp
<af:inputText value="#{bindings.Createdby.inputValue}"
binding="#{backing_Project.inputText3}"
id="inputText3">
If I set the value="" attribute to be say value="#{sessionScope.userInfo.userId}" then how does ADF know to update the CreatedBy column? This is where I got confused. I figured the value="#{bindings.Createdby.inputValue}" had to stay that way in order for the column to be updated correctly.
Basically what I am wanting is to programatically set the userId of the person who is creating the row into the CreatedBy column and then show the user's readonly name when a user edits an existing row.
Any help would be greatly appeciated.
Marty -
How to set fixed value in doDML
Hi,
My application is ADFBC.
i am getting fixed value in backing_bean.this value is not coming form VO.how to set this value in doDML.because i want to save this fixed value(this value changing in backing_bean from UIpage) into database.
actually i am using fixed list box values(these are not from VO) in UIPage and after submitting i am getting this vaue in backing_bean and some updatable table is displaying in UIpage.after filling some values in the updatable table and i am pressing commit button then i have to set this value into one table in databse.
all updated values are saving because i am using ADF table.now i have to save this list value also in one of the column in this table.
How to set this value into doDML?
please help me.
Thanks,Have you thought of creating a "transient" attribute in your EO or VO, that stores the fixed list box value? Then in the doDML method you could grab this attribute's value and update the other EO attribute you're interested in.
Alternatively in the transient attributes setter in the EO, you could write the code to update the other EO attribute.
Hope this helps.
Regards,
CM. -
In flex, How to set a value to one parameter, the parameter
defined in a cffunction in a cfc file, In the cffunction there are
much cfargument, I want set a value to one of them, such as the
cfc:
<cffunction access="remote" name="myShow" output="false"
returntype="struct">
<cfargument name="ID" type="numeric" default=0>
<cfargument name="GoodsID" type="string" default="">
<cfargument name="DestTime" type="string" default="">
<cfargument name="DestCount" type="numeric" default=1>
How I set a value to only parameter one of them , such as set
GoodsID when use mx:remoteObject.
Thanks for your helpGot maybe a solution for you, I have just tested it.
So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
select #Var1+#Var2 from dual
This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
Hope it helps.
Shamil -
How to set variables values via VBA.
Anybody please help.
How to set variables values via VBA in workbook. SAP Netweaver 2004s.Pass variable values with VBA and BI 7.0 funtions to Query
At first a remark u2013 Iu2019ve read a lot of threads saying that passing values to a query can be done by using VBA code only. Iu2019ve tested it but Iu2019m not sufficient with the new BEX 7.0 API and therefore I use a mixture of BEX 7.0 funtionality and VBA. I create a BEX 7.0 design item button passing the values to a query u2013 I hide this button somewhere on the sheet or on a hidden sheet and I then raise the event to click the button from VBA code. Works fine and the maintenance is easier if something changes in the API in the future again.
How to start:
Switch to design mode in BEX Analyzer:
Implement a BEX 7.0 design item u201Cbuttonu201D
Click on the button to implement the properties
Make the input for the commands
data_provider = dataprovider_1
cmd = process_variables
subcmd = var_submit
No comes the part with the variables u2013 Letu2019s assume a query has 4 variables but you only want to change 1 with the button u2013 an organizational unit for instance.
Make a range somewhere in the excel with the following structure:
Name Index Value
VAR_NAME_1 1 Variablename
VAR_VALUE_EXT_1 1 variablevalue
Value should contain the name of your variable of course and u201Cvalueu201D the value of your variable
Set a name for this range with EXCEL functionality but without the header:
Back to the properties of the button: Insert the name of the range with the variables in the field Command Range:
If you have more variables to process you can of course enhance your Filterrange!
In the left upper Corner you have a name for your button:
Now you can raise the button-click in vba like this:
Application.Run "'" & ThisWorkbook.Name & "'!Sheet2.BUTTON_35_Click"
regards, Lars -
How to set default values in initialization event for select option
Abapers,
I have 3 GL account like 0024831231,0024831238,0024831245.
Please help me how to set default values in select-options ( s_hkont ) in INTIALIZATION event
ThanksSelect option is table <Structure> with fields, low, high, sign & option
you need to append the value into the select option, with appropriate value in low or
example:
S_HKONT-low = <value>
S_HKONT-SIGN = 'I'
S_hkont-OPTION = 'EQ'
append s_hkont.
Default value for select-option also can be added directly in select-option statement.
Regards,
Mahesh -
How to set default values in dialog programming
hi gurus
can anyone suggest me
how to set default values in dialog programming
thanks®ards
kals.it's a bit dirty but I usually just place it in the PBO with a flag for control. It's simple and not too costly i think.
MODULE preRender OUTPUT.
DATA first_time TYPE flag VALUE 'X'.
IF first_time EQ 'X'.
* put your initialization code here
CLEAR first_time.
ENDIF.
ENDMODULE.
-MiR
Maybe you are looking for
-
OIM 9.1.0.1 in oracle database 11g release 2
I am installing IOM 9.1.0.1, using Oracle Database 11g release 2 but I have the following errors Failed to load XML. Unable to find record in UPA where USR_KEY = 1 Failed to load XML. Unable to find record in GPA where UGP_KEY = 1 I'm doing in Red Ha
-
After upgrading to the latest version of FF, I can no longer access any webpages. The IE browser does work though. == This happened == Every time Firefox opened == i upgraded FF software == == User Agent == Mozilla/4.0 (compatible; MSIE 8.0; Windows
-
Eyedropper sampling from Brush
Working on a Macbook. PS CS5. When I am painting using the brush tool I press the option key to switch to the eyedropper temporarily to sample a color. It samples the color but makes it the background color. I have to go swap colors to paint in the c
-
Add new field (Check number) in Txn FBL1N
Hi SAP, Is there any way or configuration i need to do so that i can add new field (Check number) in vendor line item (Txn FBL1N)? Here the details of the field (Check number): Field name: CHECT Table name: PAYR Program name: SAPMFCHK Appreciate your
-
Have only played maybe 5 movies with this laptop system and than it stopped working all together. Have asked for support while under warranty with no success. Don't understand why the unit is still fairly new but will not play any cd's or dvd movies.