Set and get values with vector
I have a class that that querys a db and sets a value of the result to a vector array. Is it possible to set and retrieve that vector array using the set and get methods?
ex:
my class:
sql = "Select ...";
Vector fName = new Vector();
rs = sqlStatement.executeQuery(sql);
if (rs != null) {
while (rs.next()) {
fName.add(rs.getString("fName") + "");
rs.close();
setFName(fName);
how would I set up the set and get methods???
thanks
I am unsure of what you are asking:
A Vector has set and get methods for it, you use indexes of the array to say what element you want to work with.
If you are asking how do you know what elements of the Vector contain which data columns, you have to remember how you put them in.
If you are asking if you can use set to load the Vector: then NO, you have to have elemenets already there to change, use the add method.
If you are asking how to access the elements of the Vector you use an Enumeration:
for(java.util.Enumeration e = v.elements(); e.hasMoreElements();){
s = (java.lang.String) e.nextElement();
vl.add(s.substring(0, 12));
If you are asking something else: please elaborate what you want--my brain may not be very functional this morning.
Similar Messages
-
Setting and getting values to the viewcontroller from component controller
Hi,
I'm having a model node in the controller and the value node int he view which are binded to the UI elements.
How to set the values in the model nodes to the value nodes in the view through setter method and get the values from the view using getter???
Could you help me in, how to call a viewController's value node in componenet controller, and set and get the values to it.
Thanks & Regards,
SureshThanks Murtuza..
i have one more question regarding checkbox by group.
I have binded the texxt property of the checkbox by group to a context contribute and its type property is selected from a simple type.
In the view layout on NWDS its showing the label names which i hav given in the simple type. but when i deploy it and run it in browser its just showing only one check box. its not showing the label names.
how to get the label names, using simple types. i,m able to get it using code.
how to get it by simpletype???
thanks, suresh -
Japanese Data Set and Get Problem with SQL
Hi,
I am not able to retrieve or set data contain Japanese characters.
Formerly our set up was running just fine. But on doing installation on a new machine, things have gone all haywire.
I installed Win NT 4.0 Japnese version and SQL 7.0 and later Win 2000 Server Japanese version with same SQL 7.0, but on both get and set I get SQL Exceptions:
Query 1:
SELECT DISTINCT MAKER_CD FROM T_MAKER WHERE MAKER_NAME = '�a�l�v�A���s�i' Exception:
[Microsoft][ODBC SQL Server Driver][SQL Server]Unclosed quotation mark before the character string '�a�l�v�A��'.
Query 2:
Insert into Car (intCarID, nvchCustomerID, nvchCarMaker, nvchCarModel,nvchCarDescription, nvchCarCode, nvchCarColor, tintRegistrationCalendar,tintRegistrationMonth, intRegistrationYear,nvchAnnualMileage, nvchPurpose, intNoOfKms,intAirBag, btEcologicalCar, btAntilockBreakSystem,btAntiskid, btSafetyBody, btAntitheft, btFourWheelDrive,btCarModification, nvchLicensePlateArea, intLicensePlateType,nvchLicensePlateHiragana, tintLicensePlateNumber,nvchCarManufacturingNumber, nvchCarOwner, btCurrentlyInsured)Values( 1, 'NI200205040001','','', '', 'HA11S', '���I����������',2,1, 11 ,'5000', '�����E���W���[',0,2,0,0,0,0,0,0,0,'',0,'null', '0' ,'', '�_�������{�l' , 0)
Exception:
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'null'.
I do not wish to Prepared Statements. I will need to update all my JDBC calls this way.
Would be grateful if any solutions to this problem could be provided.
Tahanks and RegardsIf you are using the JDBC-ODBC bridge, then add the 'charset' property (with the name of the japanese charset as value, or whichever you are using) to the Properties instance you pass on to getConnection().
Alin. -
Problem in set and get values in h:selectBooleanCheckbox with h:datatabel
hello friends,
Please help me any one...i need urgent.........................
My jsf page:
<h:panelGroup>
<h:panelGrid columns="6">
<h:dataTable border="2" value="#{planGroup.screenFlowValues}" var="result" bgcolor="#F1F1F1" cellpadding="2" cellspacing="1">
<h:column id="col1">
<f:facet name="header">
<h:outputLabel id="lblchange" value="Select" />
</f:facet>
<h:selectBooleanCheckbox id="chkid" value="#{planGroup.chkValue}">
</h:selectBooleanCheckbox>
</h:column>
<h:column id="column1">
<f:facet name="header">
<h:outputText value="Plan Group ID"></h:outputText>
</f:facet>
<h:outputText value="#{result.planGroupId}"></h:outputText>
<h:inputHidden id="planGroupList" value="#{result.planGroupId}" />
</h:column>
<h:column id="column2">
<f:facet name="header">
<h:outputText value="Plan ID"></h:outputText>
</f:facet>
<h:outputText value="#{result.planId}" converter="plantext"></h:outputText>
</h:column>
<h:column id="column3">
<f:facet name="header">
<h:outputText value="Group Description"></h:outputText>
</f:facet>
<h:outputText value="#{result.groupDesc}"></h:outputText>
</h:column>
<h:column id="column4">
<f:facet name="header">
<h:outputText value="Row Status"></h:outputText>
</f:facet>
<h:outputText value="#{result.rowStatus}"></h:outputText>
</h:column>
<h:column id="column5">
<f:facet name="header">
<h:outputText value="Modifiy"></h:outputText>
</f:facet>
<h:commandLink id="link1" value="Edit" action="#{planGroup.ModifiyMemberrecord}" immediate="true"/>
</h:column>
</h:dataTable>
</h:panelGrid>
</h:panelGroup>
Here in this jsf page.......
1.value="#{planGroup.screenFlowValues}"--is Datamodel
2.For me page is displaying.How to set value to the check box and multiple selection of checkbox..when i click delete button ,
i have to delete selected rows from datamodel.how to do that what are all the changes i have to.Because boolean checkbox return only true false value.
3.by using h:datatabel i can do that ya..
My bean:
public class PlanGroupBean {
private String planGroupID;
private String planID;
private String groupDesc;
private String rowStatus;
private static Log log = LogFactory.getLog(PlanGroup.class);
private static DataModel screenFlowValues;
private String hideWindows;
private String hiddenValue;
private boolean chkValue;
public List getProdlis() {
return prodlis;
public void setProdlis(List prodlis) {
this.prodlis = prodlis;
public List getData() {
return data;
public void setData(List data) {
this.data = data;
public boolean isChkValue() {
//System.out.println("CHECKED--CHK-value:"+chkValue);
return chkValue;
public void setChkValue(boolean chkValue) {
this.chkValue = chkValue;
public void setPlanGroupID(String planGroupID) {
this.planGroupID = planGroupID;
public String getPlanGroupID() {
return this.planGroupID;
public void setPlanID(String planID) {
this.planID = planID;
public String getPlanID() {
return this.planID;
public void setGroupDesc(String groupDesc) {
this.groupDesc = groupDesc;
public String getGroupDesc() {
return this.groupDesc;
public void setRowStatus(String rowStatus) {
this.rowStatus = rowStatus;
public String getRowStatus() {
return this.rowStatus;
public String getHiddenValue() {
screenFlowValues = new ListDataModel(ServiceDao.execute().fetchPlanGroupDisp());
return hiddenValue;
public void setHiddenValue(String hiddenValue) {
this.hiddenValue = hiddenValue;
public void setHideWindows(String hideWindows) {
this.hideWindows = hideWindows;
public String getHideWindows() {
return this.hideWindows;
public DataModel getScreenFlowValues() {
return screenFlowValues;
public void setScreenFlowValues(DataModel screenFlowValues) {
PlanGroupBean.screenFlowValues = screenFlowValues;
public String deleteMemberrecord()
please help me how to set value to the check box and while clicking delete button i have to know what are all the checkbox selected..........
regards,
sivaAttach the boolean property to the row object. If it is true, then the row object was selected. You can also attach it to a Map<RowObjectId, Boolean> and then delete rows by RowObjectId which are true. You may find this article useful, it contains code examples: [http://balusc.blogspot.com/2006/06/using-datatables.html#SelectMultipleRows].
-
Abstract class with set and get methods
hi
how to write set and get methods(plain methods) in an abstartc class
ex: setUsername(String)
String getUsername()
and one class is extending this abstract class and same methods existing in that sub class also..... how to write......plz provide some ideas
am new to programming....
asap
thnx in advanceyes... as i told u.... i am new to coding......
and my problem is ..... i have 2 classes one is abstract class without abstract methods.. and another class is extending abstract class.....
in abstract class i have 2 methods...one is setusername(string) and getusername() ..... how to write these two methods.... in abstract class i have private variables username...... when user logins ..... i need to catch the user name and i need to validate with my oracle database and i need to identify the role of that user and based on role of that user i need to direct him to appropriate jsp page.......
for that now i am writing business process classes..... the above mentioned two classes are from business process.....
could u help me now
thnx in advance -
Hello,
I'm new to TestStand and just created my first sequences with TS and LV.
The program is running fine but now I need to implemented a dialog screen with some progress results for the user.
This dialog screen must stay open (unless closed by the user) and gets refreshed with the latest analysis results from TestStand.
Is there an example of something like that. (starting from a working example is always easier)
So I need a mechanism to give some results from TestStand to a custom made dialog screen in LabVIEW.
Any thoughts/examples/recommandations ???
Thanks!Hi noxus,
The basic design you are looking for is a daemon, This is basically a VI that runs in the background (your dialog VI for example). This VI is launched dynamicly when needed. And there should be a way of detecting if the deamon is running.
You can use various ways of communicating between VI's. The two most use full I find either Queues or TCP. The added bonus for TCP is that it also works over the Network, but could also be slower and blocked by Firewalls. Queues only work within the LabVIEW Process running on the Local machine and provide a nice way of detecting if the daemon VI is running.
Attached a example that show how you can implement something like this. The 'sent new value.vi' obtains a queue reference, we check if it has created a new queue or if it returned an existing queue reference. If the obtain queue created a new queue this means the daemon is not running and we launch the deamon.vi.
The daemon also connects to the same queue and maintains the reference. If the deamon is closed the referenced is closed as well and the queue is destroyed.
You can run the example VI. (in LabVIEW 8.2).
Hope this helps.
Thanks
Karsten
Attachments:
Daemon.zip 35 KB -
Send value to BAPI and and get value from BAPI on VB 6.0
Hi All,
I want to connect SAP and send some values and get some results from BAPI with Visual Basic 6.0
I connected SAP successfull But I didn't send value to BAPI.
I want to connect SAP with BAPI_MATERIAL_GET_ALL BAPI and I want to send u2018000000000000980010u2019 parameter. So I want get the result from BAPI.
Could anyone help me about send and get value BAPI with VB 6.0?
Thanks in advanced
captivator
Edited by: captivator on Dec 10, 2010 4:24 PMHi Dinesh,
My full code is below.
I'm getting error when "Set obj = ctlLogon.GetSAPObject("BAPI_MATERIAL_GET_ALL")" code line is working.
Error : Script error in module line 30:(10091) ActiveX Automation:no such property or method
Have you got any idea?
Thanks in advanced.
Esat
Set ctlLogon = CreateObject("SAP.LogonControl.1")
Set sapConnection = ctlLogon.NewConnection
sapConnection.User = "user"
sapConnection.Client = "120"
sapConnection.Password = "1q2w3e4r"
sapConnection.ApplicationServer = "xxxxxx"
sapConnection.Language = "EN"
sapConnection.SystemNumber = "00"
booReturn = sapConnection.Logon(0, True)
If booReturn <> True Then
gSAPConnect = False
Else
gSAPConnect = True
End If
If booReturn Then
'MsgBox "Logged On successfullyu2026"
Debug.Print"Logged On successfullyu2026"
End If
Dim obj As Object
Dim return As Object
Set obj = ctlLogon.GetSAPObject("BAPI_MATERIAL_GET_ALL")
Set return = ctlLogon.DimAs(obj, "000000000000980010", "RETURN") -
Hi,
I need to store one variable value and I need to retrieve the same variable value in same program. For this I have written set and get parameter ids in the same program. It is working fine but if I log off the system and if I logon the system it is not working I mean before log off the variable is showing some value if I log on again that variable is showing empty. But I want to capture the field values after log off and log on also. Is there any other option can I use table?
Please help me I will give points.
Thanks.Hi
SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens
SAP global memory retains field value through out session.
set parameter id 'MAT' field v_matnr.
get parameter id 'MAT' field v_matnr.
They are stored in table <b>TPARA</b>.
ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data
to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse.
ABAP memory is temporary and values are retained in same LUW.
export itab to memory id 'TEST'.
import itab from memory Id 'TEST'.
Here itab should be declared of same type and length.
http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
ABAP Memmory & SAP Memmory
http://www.sap-img.com/abap/difference-between-sap-and-abap-memory.htm
http://www.sap-img.com/abap/type-and-uses-of-lock-objects-in-sap.htm
Regards
Anji -
The report l runs very night and gets ended with error
Dear all,
I am facing a problem in solution manger. There is an report (Program/Command RDSMOPSOL_MONIREFRESH ) will runs very night and get ended with error and there is Run-time error "MESSAGE_TYPE_X".
Please suggest how to solve the problem.
Is this report is necessary for the system because it is not mention in the sap stand jobs.
SM37 log
Job started
Step 001 started (program RDSMOPSOL_MONIREFRESH, variant &0000000000875, user ID BASIS)
Opening and closing session started. Session SM2000000000065
Opening and closing the session was successful. Session: SM2000000000065
Opening and closing session started. Session SM2000000000005
ABAP/4 processor: MESSAGE_TYPE_X
Job cancelled
SM:CSA SESSION REFRESH
No. Program/Command Prog. type Spool list Parameter User Lang.
1 RDSMOPSOL_MONIREFRESH ABAP &0000000000876 BASIS EN
Sm21 log
00:00:50 DIA 00 000 SAPSYS EEA OPERATION MODES: Switch to operation mode Normal triggered
00:30:57 BTC 08 200 BASIS R68 Perform rollback
00:30:57 BTC 08 200 BASIS AB0 Run-time error "MESSAGE_TYPE_X" occurred
00:30:57 BTC 08 200 BASIS AB1 > Short dump "081112 003057 sapsm BASIS " generated
00:30:57 BTC 08 200 BASIS D01 Transaction Canceled 00 671 ( MESSAGE_TYPE_X 20081112003057sapsm BASIS 2001 )
00:30:57 BTC 08 200 BASIS R68 Perform rollback
00:30:57 BTC 08 200 BASIS AB0 Run-time error "MESSAGE_TYPE_X" occurred
Details
Recording at local and central time........................ 12.11.2008 00:30:57
Task................ 05312 . 08 B8 BTC background processor No. 08
User................ BASIS
Client.............. 200
Terminal............
Session............. 1
Transaction code....
Program name........
Problem class....... T Transaction Problem
Development class... SABP
Further details for this message type
Module name......... abdynpro
Line................ 1133
Error text.......... ab_jmess
Documentation for system log message AB 0 :
The specified runtime error has occurred in the system.
Parameter
a.. MESSAGE_TYPE_X
Technical details
File................ 000048
Position............ 0000253620
Entry type.......... l ( Error (Module, Row) )
Message ID.......... AB 0
Variable parts...... ab_jmess abdynpro1133
Time Ty. Nr Cl. User Tcod MNo Text Date : 12.11.08
00:30:57 BTC 08 200 BASIS AB1 > Short dump "081112 003057 sapsm BASIS " generated
etails
ecording at local and central time........................ 12.11.2008 00:30:57
ask................ 05312 . 08 B8 BTC background processor No. 08
ser................ BASIS
lient.............. 200
erminal............
ession............. 1
ransaction code....
rogram name........
roblem class....... K SAP Web AS Problem
evelopment class... SABP
BAP Mini dump
ate................ 20081112
ime................ 003057
ost................ sapsm
ser................ BASIS
ocumentation for system log message AB 1 :
A short dump was generated for the specified program termination.
You can analyze this short dump in the system log evaluation by
selecting this line or evaluating Table SNAP (Transaction ST22).
echnical details
ile................ 000048
osition............ 0000253800
ntry type.......... s ( ABAP Runtime Error )
essage ID.......... AB 1
ariable parts...... 081112003057sapsm BASIS
Time Ty. Nr Cl. User Tcod MNo Text Date : 12.11.08
00:30:57 BTC 08 200 BASIS D01 Transaction Canceled 00 671 ( MESSAGE_TYPE_X 20081112003057sapsm BASIS 2001 )
Details
Recording at local and central time........................ 12.11.2008 00:30:57
Task................ 05312 . 08 B8 BTC background processor No. 08
User................ BASIS
Client.............. 200
Terminal............
Session............. 1
Transaction code....
Program name........
Problem class....... K SAP Web AS Problem
Development class... SDYN
Module name.........
Location............
T100................ 00 671
Parameters..........
Documentation for system log message D0 1 :
The transaction has been terminated. This may be caused by a
termination message from the application (MESSAGE Axxx) or by an
error detected by the SAP System due to which it makes no sense to
proceed with the transaction. The actual reason for the termination
is indicated by the T100 message and the parameters.
Additional documentation for message 00 671
ABAP/4 processor: &
No documentation exists for message 00671
Parameter
a.. MESSAGE_TYPE_X
00:30:57 BTC 08 200 BASIS R68 Perform rollback
Details
Recording at local and central time........................ 12.11.2008 00:30:57
Task................ 05312 . 08 B8 BTC background processor No. 08
User................ BASIS
Client.............. 200
Terminal............
Session............. 1
Transaction code....
Program name........
Problem class....... W Warning
Development class... STSK
Further details for this message type
Module name......... thxxhead
Line................ 1240
Error text..........
Caller.............. ThIRoll
Reason/called....... roll ba
Documentation for system log message R6 8 :
An error has causes an SAP rollback. All database updates are reset.
Technical details
File................ 000048
Position............ 0000254520
Entry type.......... m ( Error (Function,Module,Row) )
Message ID.......... R6 8
Variable parts...... ThIRollroll bathxxhead1240
Regards,
ShivaHi karteek,
I have check there is Switch of operation mode but when I have checked the t-code sm63 there is no new mode are in normal mode.
There is one thing I want to ask dose this report (Program/Command RDSMOPSOL_MONIREFRESH ) run in your system or any one server because I have think there is some problem in job shued
and is also not mention in the sap stand jobs.
there is an error in sm21 in job.
BASIS SM36 EFK BP_CHECK_REPORT_VALUES: Invalid program values found. Reason:
BASIS SM36 EFC > Program RDSMOPSOL_MONIREFRESH has no variants, but a variant was specified
Is this SM37 log
Job started
Step 001 started (program RDSMOPSOL_MONIREFRESH, variant &0000000000875, user ID BASIS)
Opening and closing session started. Session SM2000000000065
Opening and closing the session was successful. Session: SM2000000000065
Opening and closing session started. Session SM2000000000005
ABAP/4 processor: MESSAGE_TYPE_X
Job cancelled
Sm21 log
SAPSYS EEA OPERATION MODES: Switch to operation mode Normal triggered
BASIS R68 Perform rollback
BASIS AB0 Run-time error "MESSAGE_TYPE_X" occurred
BASIS AB1 > Short dump "081111 003056 sapsm BASIS " generated
BASIS D01 Transaction Canceled 00 671 ( MESSAGE_TYPE_X 20081111003056sapsm BASIS 2001 )
BASIS R68 Perform rollback
BASIS R49 Communication error, CPIC return code 017, SAP return code 223
BASIS R64 > CPI-C function: CMINIT(SAP)
*BASIS SM36 EFK BP_CHECK_REPORT_VALUES: Invalid program values found. Reason:*
*BASIS SM36 EFC > Program RDSMOPSOL_MONIREFRESH has no variants, but a variant was*
specified
BASIS R68 Perform rollback
BASIS AB0 Run-time error "MESSAGE_TYPE_X" occurred
BASIS AB1 > Short dump "081111 220948 sapsm BASIS " generated
BASIS D01 Transaction Canceled 00 671 ( MESSAGE_TYPE_X 20081111220948sapsm BASIS 2001 )
Details Page 2 Line 6 System Log: Local Analysis of sapsm 1
Time Ty. Nr Cl. User Tcod MNo Text
00:00:51 DIA 00 000 SAPSYS EEA OPERATION MODES: Switch to operation mode Normal triggered
Details
Recording at local and central time........................ 13.11.2008 00:00:51
Task................ 04100 . 00 D0 Dialog work process No. 00
User................ SAPSYS
Client.............. 000
Terminal............
Session............. 1
Transaction code....
Program name........
Problem class....... S Operation Trace
Development class... SBTC
Sm63
Start/end time Name of the active operation mode
00.00 - 01.00 Normal
01.00 - 02.00 Normal
02.00 - 03.00 Normal
03.00 - 04.00 Normal
04.00 - 05.00 Normal
05.00 - 06.00 Normal
06.00 - 07.00 Normal
07.00 - 08.00 Normal
08.00 - 09.00 Normal
09.00 - 10.00 Normal
10.00 - 11.00 Normal
11.00 - 12.00 Normal
12.00 - 13.00 Normal
13.00 - 14.00 Normal
14.00 - 15.00 Normal
15.00 - 16.00 Normal
16.00 - 17.00 Normal
17.00 - 18.00 Normal
18.00 - 19.00 Normal
19.00 - 20.00 Normal
20.00 - 21.00 Normal
21.00 - 22.00 Normal
22.00 - 23.00 Normal
23.00 - 00.00 Normal
Regards, -
I have SSRS parametarized report in that one data set have repeated values with query parameter . but while am mapping that query
parameter to report parameter i need to pass distinct values. How can i resolve thisHi nancharaiah,
If I understand correctly, you want to pass distinct values to report parameter. In Reporting Service, there are only three methods for parameter's Available Values:
None
Specify values
Get values from a query
If we utilize the third option that get values from a dataset query, then the all available values are from the returns of the dataset. So if we want to pass distinct values from a dataset, we need to make the dataset returns distinct values. The following
sample is for your reference:
Select distinct field_name from table_name
If you have any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Accessing Custom Controller from setter and Getter methods
Hi Gurus
How can we access the custom controller from setter and getter methods,is there any way to do that.
Thanks & Regards
RajasekharHi Steve.
Thanks very much for valuable information, the main controller class is getting tracked in mo_owner which is declared as CL_BSP_WD_VIEW_CONTROLLER, and I'm getting the reference through
mo_owner ?= owner. (since mo_owner = owner is not getting converted of type mo_owner ). After doing this on whatever the contexnode class (say zl_xxxx_xxx_cnxx) the corressponding context node values are getting turned as <#ERROR IN METADATA.
I mean when I'm checking the configuration in bsp_wd_cmpwb configuration tab -> Available Fields->Enlarge the contex node->BTSTATUS (say for Example) there the values are showing as <#ERROR IN METADATA , After executing the above procedure
I cross checked several times before and after redefining the context node method IF_BSP_MODEL~INIT, before redefining this method UI is working fine, after redefintion UI is throwing below error .
Exception Details
CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference
Method: CL_BSP_MODEL=>IF_BSP_MODEL_BINDING~IS_ATTRIBUTE_VALID
Source Text Row: 13
Thanks & Regards
Rajasekhar -
Doubts in CMP Setter and Getter Methods
Hi. Just like to clarify something on CMP.
May I know if there are 6 fields in my database table and I declared only getter and setter methods for 5 of the fields only, will this post any problem in WL8.1?
Also, suppose I have 6 fields in my database table and I declared 6 setter and getter methods. Throughout my program I only trigger 2 setter methods, will the other 4 setter methods that I didnt trigger set a null or 0 to the fields (since I didn't set any value to them)?
Thanks and appreciate.Unset fields will usually be set to their default value, i.e. null for Objects. You don't have to define / execute setters for columns in the database unless they are non-nullable.
-- markus. -
Regarding setter and getter methods
Hi,
Can anybody tell me the use of setter and getter methods in webdynpro .
It is generated when we set the calculate property of value attribute to true .
Thanks a lot .Hi Jain
<b>setter</b> and <b>getter </b>functions will be created when you set the calculated propertyto true
Consider the following scenario where in you can get some basic idea
1) First insert a Child "Image" UI Element
2) Create a Context in a view in which you are using Image UI Element
3) Value Node
Name : Image
Cardidality : 1..1
4) create 2 Value Attributes
4)a ImageAlt (Calculate property - true) //this will create getter and setter methods
4)b ImageSrc (Calculate property - true) //this will create getter and setter methods
5)Bind the properties of Image
alt - Image.ImageAlt
source - Image.ImageSrc
6) in getImageSrc()
retrun "XX.gif"
7) in getImageAlt()
return "Image Not Available"
you can even achieve getter and setter methods by doing the following procedure
goto <b>implementation</b> tab-> rightclick -> <b>source</b> -> <b>generate Getter and Setter methods...</b>
Best Regards
Chaitanya.A -
From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?
Hi,
Use NVL or COALESCE:
NVL (col_a, col_b)
Returns col_a if col_a is not NULL; otherwise, it returns col_b.
Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Signing up and getting started with HP INSTANT INK
Signing up and getting started with HP Instant Ink
Note: your printer must be connected to the Internet through a wireless connection.
How does HP make sure you’ll always have ink? Your printer uses the Internet to let us know when to send more ink. Here’s how you can get all the ink you need, delivered to your door.
Purchase an eligible printer.
Enroll in a plan based on the number of pages you print.
Ink, shipping, and cartridge recycling are included.
No annual fee—Change or cancel your plan anytime.3
We’ll mail special HP Instant Ink cartridges to you.
Our cartridges have more ink than standard HP ink cartridges, so you’ll replace them less often.
Billing and service start after you insert your first HP Instant Ink cartridge.
Your printer will tell us when to send ink.
Your service is not based on how many cartridges you use, so print as many high quality photos as you like.
You’ll always have ink before you need it.
See below for details on How to enroll for HP Instant Ink......
Although I am an HP employee, I am speaking for myself and not for HP.
Twitter: @Ciara_B_HP
This question was solved.
View Solution.When you enroll in an HP Instant Ink plan, you pay a monthly fee to print a defined number of pages per month. The plans are based on the number of pages that you print, not on how many ink cartridges you use. Your monthly fee pays for ink, shipping, and recycling. If you do not print all of your plan pages in a month, you can roll over up to the number of pages per month in your plan. If you print more pages, there is an additional charge. Ink is included — the plans are based on your usage so you pay for the pages you print, not the ink cartridges HP sends you. A printed page counts the same whether it is black and white, a color document, or a photo. Shipping is included.
What are customers saying about HP Instant Ink?
I signed up for Instant Ink to save money, but now I think the best thing about it is the convenience!— Jack C.
HP Instant Ink is a great way to always have ink when I need it, and it is so convenient.— Rene D.
I’m so glad that someone came up with this brilliant idea of HP Instant Ink because it is just so convenient. I’m completely satisfied with this service.— Nellie O.
I wanted to save money, so I signed up for HP Instant Ink!— Benjamin S.
Although I am an HP employee, I am speaking for myself and not for HP.
Twitter: @Ciara_B_HP
Maybe you are looking for
-
Is it possible to copy a swf to a new location and still use debug
Hi, I'm developing a SWF using Flex. When I generate my SWF file I'd like to copy it to a new location (a folder under my website root folder) so that it runs in my local version of a website I'm working on. Before when working with a Flash movie, us
-
Trouble installing Photoshop CS2
My name is Michael and I work for the U.S. Navy on board the USS Emory S Land. My command bought my shop a new computer recently that is used strictly for desktop publishing and video editing projects. This means it has NO internet connectivity. I
-
How to configure dreamweaver for CodeIgniter Project ?
Hello , is it possible to configure DW in order to work with CodeIgniter ??? if yes , please did you know how to do that , I begin thanks
-
Hi gurus what is the difference between bapi and badi. Where do we use these two concepts. Thanks in advance
-
When I try to duplicate a project in iMovie 11, nothing hapens. I click on the project, then click on duplicate. Nothing happens. Help!