Global TOp for all the methods
HI all,
I am creating a class, And creating 10 methods inside that class.
i want to use a single TOP program for data declearation which shud applicable in whole class, so that automatically it eccepts all the methods.
any idea HOW to create that global data declearation for all methods.
thanks,
jo
Hello Jo,
In OO-Concept the class variables (Instance or Static) are always visible to the methods.
If you are different classes, and you want to share variables between them, I would recommend you to use a super class or an interface for the sharing functionalities. Of course these concepts are not exactly for sharing variables. But nevertheless it might help you to solve your problem.
P.S. I just wanted to simplify the context a little. Naimesh Patel deserves the credit, since he has given the right answer
Greetz
G.Fendoglu
Similar Messages
-
How to create a global property for all the reports in Oracle BIP
Hi,
I am a new guy to Oracle BIP. I have a set of reports which is running perfectly. But now, I have to create a property something like this:
If(bproperty)
else
I do not want to have a property for each of the reports but this should be a global one for all the reports.
Please help. Your help is greatly appreciated :)
Thanks,
KarthikHi,
I am a new guy to Oracle BIP. I have a set of reports which is running perfectly. But now, I have to create a property something like this:
If(bproperty)
else
I do not want to have a property for each of the reports but this should be a global one for all the reports.
Please help. Your help is greatly appreciated :)
Thanks,
Karthik -
How define a global variable in a class that all the methods will recognize
hi friends,
i need to define a global variable in a class that all the methods will recognize it.
any suggestions?
thanks,
dana.Dera Dana,
In se24, create your own "Z" class.
Open the Attributes tab.
Insert your variable in the declaration part.
EQ:
Attribute Level Visibility Typing Associated Type Description
ITAB Instance Attribute Public Type Structure name Description
In the Layout of View page,
<phtmlb:formLayoutDropDownListBox id = "Dropdown"
label = "Drop Down"
table = "<%= controller->Itab %>"
nameOfKeyColumn = "CODE"
nameOfValueColumn = "VALUE"
selection = "<%= controller->feild to be selected %>"
/>
Hope this will be helpful
Regards,
Gokul.N -
USELESS ONLINE HELP FACILITIES
For all the amazing productivity aids that APPLE offers the world I have to report that their online support service is worse than useless and has recently been the source of immense time wasting and irritation.
Incident 1. Since many months attempts to download new and updated APPs produced a response – Apple ID Disabled. I had no time to consult an APPLE Store due to work in distant lands. When I finally visited yesterday I was told that as my IPAD has been reported as stolen, and APPLE in its wisdom had blocked its usage! I am not sure how they became so misinformed and nobody every advised me while with a few swift moves APPLE could have located me by email address or SKYPE.
Incident 2. Once the above anomaly had been fixed I tried to down load a newspaper and diligently input my address, credit card number and personal data. Repeatedly I was advised that my Credit Card was invalid and my postal code was incorrect! Really!
I was left to guess that having moved from UK to the US I should have advised APPLE! Not being told of this requirement brought about a second visit to APPLE Store in the same day to waste both mine and their time with a routine anomaly. How parochial in the context of a globalized world!
In each case I tried to resolve the issues using online access to a help line and by calling by phone at the numbers on the APPLE Website. In each of four separate occasions I diligently went through the routine and ended up with a message that thanked me for contacting Apple followed by a polite ‘Good Bye’!
In desperation I went to an Apple Store for the second time in a day as it is close to where I live when I am not working. On both occasions I was courteously attended to by Apple Staff.
However, my work is usually far away from the US and it is generally many thousands of miles to the nearest Apple Store therefore online help is viewed as imperative if one is to resolve issues away from home.
Why can Apple not provide a clearly marked EMAIL address and Telephone number at a Help Desk with real people to respond to requests for help? It would cost nothing in relative terms and might restore my high level of anti-APPLE sentiment that these two recent events have provoked.
Peter Hanney
Miami, Fl.Why can Apple not provide a clearly marked EMAIL address and Telephone number at a Help Desk with real people to respond to requests for help?
If that is your question, the answer is at the bottom right of this web page. It is clearly marked "Contact Us" and is the best way, really the only way, to contact Apple.
If there were a publicly posted email address for concerns such as yours, it would be quickly filled with spam in about three minutes, thereby becoming instantly useless to you and everyone else. Apple would need to change it hourly, if not more often. That is also the reason you ought not to post your name, location, and what appears to be your iPad's serial number on this publicly viewable website.
Apple does not respond here and I can find no other questions for your fellow Apple users to answer. -
Infotype screen headers needs to be changed for all the infotypes
Hi Guys,
This would be for a global implementation question.
For the US for a particular region, the screen header needs to be changed for all the infotypes.
The existing field (in the infotype header) is Employee Group which needs to be replaced with employment status.
The know how to change the headers but my question is STAT2 exists in IT 0000 but does not exist in 0001, 0002 0007.........etc
When i go to Table T588J to add an entry , Screen Header 42......,
I get an error " No Field STAT2 exists for infotype 0001"
No field STAT2 exists for infotype 0001.
Message no. PG811
Diagnosis
No STAT2 field exists for infotype 0001.
Procedure
Please contact your system administrator.
Procedure for System Administration
In Customizing, determine the incorrect entry in Personnel
Administration in the Header structure per infotype view, step " Determine infotype header and correct it
I would like to have some inputs from you guys ..... Any Suggessions...
Thanks,
AasthaHi Aastha,
Correct me if I am wrong.
First you need to maintain the header in T588J.
Screen header of an infotype is defined in view V_582A_B. We can define one screen header for employee and another for applicant in view V_T588I. The header modifier selected from view V_T588I has a definition in table T588J, which finally gets shown on the screen.
Depending on the transaction class (A = Personnel Administration, B = Recruitment) and the country grouping, a header modifier is assigned to the infotype header in the u201CHeader Modificationu201D view V_T588I.
For example like
Screen Header / Tr. Class / Header modifier
00 / A / 60
In the view u201CHeader Structure per Infotypeu201D (V_582A_B), a header has been assigned to every infotype. It also determines whether the data is valid from the system date or the start date of the infotype record
Hope this is useful.
Regards
RK -
to reply to you all - but thanks for all the help - nothing has worked so far
You're welcome.
When you're signed in Your Stuff > Discussions towards the top right of the display gives you a similar list of the threads you've participated in. I save my bookmark with the name Active Threads.
tt2 -
How to find all the methods in oops
Hi all,
is there any way to find all the methods of all class in a single screen j(ust like using t.code se37 we can find all the fm created)
sathishHi,
1.Go to the class builder(SE24).
2.Type the class name[eg..cl_gui_alv_grid]
3.You will see a tab called methods.Click that.In that,you can view all the methods.Place the cursor in a method and click parameter tab.You can find the parameters for the method.
Kindly reward points by clicking the star on the left of reply,if it helps. -
DCIteratorBinding setting the same value for all the rows.
Hi all,
I have table with on of the column as id. I have made the id column as the hyper link , that takes me to the next page. I am trying to pass the id to the next page. I am using the managed bean for the same. The below code is used to create the link on the column. It sets the action to the function in the bean that sets the id as of the current row.
<tr:column sortProperty="id" sortable="false"
headerText="#{bindings.notification.hints.id.label}"
id="c4">
<tr:commandLink action="choice" text="#{row.bindings.id.inputValue}"
id="cl1" actionListener="#{IdBean.extractID}">
</tr:commandLink>
</tr:column>
below is the IdBean.extratctID()
public void extractID(ActionEvent actionEvent){
BindingContext bindingContext = BindingContext.getCurrent();
BindingContainer bindings;
bindings = bindingContext.getCurrentBindingsEntry();
DCIteratorBinding iter;
iter = (DCIteratorBinding) bindings.get("notificationIterator");
Row rw;
rw = iter.getCurrentRow();
String id;
id = (String) rw.getAttribute("id");
this.setId2(id);
I am printing the id value on to the next page. But its just returning the vslue of the id for the first row for all the rows of the table.
Any inputs as in do i need to refresh the iterator or something like that.
Reagrds
SishantHi,
Following is the code i have added in my bean
ValueExpression expression = getFacesContext().getApplication().getExpressionFactory().createValueExpression(getFacesContext().getELContext(), "#{pageFlowScope.emp1}", Object.class);
Object id = expression.getValue(getFacesContext().getELContext());
public FacesContext getFacesContext() {
return FacesContext.getCurrentInstance();
JSPX Code -
<af:commandImageLink id="DuncanAngove"
icon="/john.gif" partialSubmit="true"
actionListener="#{Tweets.setEmployeeId}">
<af:setActionListener from="Duncan Angove" to="#{pageFlowScope.emp1}" />
But i am getting NullPointerException. I have tried it with application and request scope as well.
javax.servlet.ServletException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: java.lang.NullPointerException
at org.apache.myfaces.trinidad.component.UIXComponentBase.getValueExpression(UIXComponentBase.java:231)
at project1.Tweets.setEmployeeId(Tweets.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 35 more
Thanks
Sishant -
Determining Capture to Dequeue Latency for all the Events
Is there a way to determine the capture to dequeue latency for all the events. I was able to
determine the capture and propagation latency for the last captured event dequeued by an apply process. Is there any way to capture all the events from first till last
the query which i used to get that was
SELECT (DEQUEUE_TIME-DEQUEUED_MESSAGE_CREATE_TIME)*86400 LATENCY,
TO_CHAR(DEQUEUED_MESSAGE_CREATE_TIME,'HH24:MI:SS MM/DD/YY') CREATION,
TO_CHAR(DEQUEUE_TIME,'HH24:MI:SS MM/DD/YY') LAST_DEQUEUE,
DEQUEUED_MESSAGE_NUMBER
FROM V$STREAMS_APPLY_READER
WHERE APPLY_NAME = 'APPLY_SITE1';You can simply write a unique class as an ActionListener and in its actionPerformed method you do the following:
Object source = e.getSource(); // e is our event
if (source == component1) {
} else if (source == component2) {
..Hope this helps -
I don't understand why they ask for payment for all the applications labelled free. Regards
I don't understand why they ask for payment for all the applications labelled free. Regards
How to Get Apps From the App Store Without a Credit Card
http://ipadhelp.com/ipad-help/how-to-get-free-apps-from-the-app-store-without-a- credit-card/
Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
http://support.apple.com/kb/ht2534
Why can’t I select None when I edit my payment information?
http://support.apple.com/kb/ts5366
If None is not available - On your computer launch iTunes and click “iTunes Store” in the left navigation pane. Click the “down arrow” next to your name at the top right side of the page and click “Account.” Enter your username and password and click “View Account” to log into your account information. Next to your Payment Type, click “Edit.” Select the “None” button and click “Done.” Confirm that your card has been removed by returning to the Apple account information screen. Under Payment Type, it should say that there is no credit card on file.
iTunes Store: Changing your payment information
http://support.apple.com/kb/HT1918
iTunes Store Accepted Forms of Payment
http://support.apple.com/kb/HT5552
Cheers, Tom -
In new iphone 5 very first call getting busy tone for all the numbers
in new iphone 5 very first call getting busy tone for all the numbers.
my son had this problem. I went to the apple store and they wiped out and restored the phone.. They said that was all they could do but that I should call our phone carrier and ask them. I did. They asked if in the top left side, next to battery power there was a icon of a half moon. There was. They said to go in to settings and go to "Do not Disturb" and turn it off. I did.....problem solved!!! Somehow "do not disturb" was turned on and that is what happens if it is!!
I hope this helps. -
Mp3 play for all the navigation on the other pages
Hello to everybody, my problem is this, exist a method
Hello
there is a way to embed a music mp3 of background to all pages?
be opened at the beginning and continue to play for all the navigation on the other pages
thanks?
thank u!Now that I've got my page-flip done, I too want to figure out how to play continuous music from the time the Home page opens to whatever other page is looked at on my website. Has anyone tried adding this iFrame code and does it work?
<iframe width="990" height=”XXX” SCROLLING=No frameborder="0" src="http://web.me.com/MobileMeAccount_Name/Demo4/Page-1.html" allowTransparency="true" more attributes> Alternative Content for Browsers Which Do Not Support iFrame </iframe> -
I purchased a student subscription to Creative Cloud. I got the confirming email. When I attempted to install the aps, kept getting a 30-day trial for all the aps. In the case of Photoshop, it was expired. How do I activate my Creative Cloud?
ChristinaW1111 for information on how to resolve the connection error preventing the active membership from authorizing then please see Sign in, activation, or connection errors | CS5.5 and later. If you have any questions regarding the steps listed within the document you are welcome to update this discussion.
-
Query For Finding Yearly Opening and Closing Balance for All the Items
Hi Experts,
I am working on Query Based Report for finding the Yearly Opening and Closing Stock for all the Items
i will give yearwise selection and I want opening and closing stock in between that years
Warm Regards,
Sandip Kokate
Edited by: Sandipk on May 20, 2011 1:58 PMHi,
Declare @SDate DateTime
Declare @EDate DateTime
Declare @Whse nvarchar(10)
Set @SDate= (SELECT min(F_RefDate) FROM OFPR T1 where T1.[Name] ='[1%]' )
Set @EDate= (SELECT max(T_RefDate) FROM OFPR T1 where T1.[Name] ='[%1]' )
Set @Whse=(Select Max(s2.Warehouse) from OINM S2 Where S2.Warehouse = '[%2]')
BEGIN
Select @Whse as 'Warehouse', a.Itemcode, max(a.Dscription) as ItemName,
sum(a.OpeningBalance) as OpeningBalance, sum(a.INq) as 'IN', sum(a.OUT) as OUT,
((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing ,
(Select i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM
from( Select N1.Warehouse, N1.Itemcode, N1.Dscription, (sum(N1.inqty)-sum(n1.outqty))
as OpeningBalance, 0 as INq, 0 as OUT From dbo.OINM N1
Where N1.DocDate < @SDate and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,
N1.Dscription Union All select N1.Warehouse, N1.Itemcode, N1.Dscription, 0 as OpeningBalance,
sum(N1.inqty) , 0 as OUT From dbo.OINM N1 Where N1.DocDate >= @SDate and N1.DocDate <= @EDate
and N1.Inqty >0 and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription
Union All select N1.Warehouse, N1.Itemcode, N1.Dscription, 0 as OpeningBalance, 0 , sum(N1.outqty) as OUT
From dbo.OINM N1 Where N1.DocDate >= @SDate and N1.DocDate <=@EDate and N1.OutQty > 0
and N1.Warehouse = @Whse Group By N1.Warehouse,N1.ItemCode,N1.Dscription) a, dbo.OITM I1
where a.ItemCode=I1.ItemCode
Group By a.Itemcode Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0 Order By a.Itemcode
END
I hope this will work for you.
In above query you can also user OFPR.Code, OFPR, Category OFPR.Indicator instead of OFPR.Name.
Regards
Vaibhav Anharwadkar
Edited by: Vaibhav Ancharwadkar on May 24, 2011 9:23 AM -
How to update the condition price in the sales order for all the items
Hi,
How to update the condition price for all the itmes in the sales order to carry out the new price automatically through a stand alone program, for all the orders in the billing due list table?
Thanks,
BalaramHi,
There is a change in the requirement.
Scenario:
I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
Thanks.
Balaram
Maybe you are looking for
-
My ipod touch 4g wont let me sync apps.
I want to sync apps to my ipod but it won't let me!! I have successfully synced apps before but just recently, i thought something was wrong because the app store dissappeared from my ipod home pages and it wouldn't let me delete apps (by holding on
-
Start up showing a folder with a ? in the middle
Just switched on my iMac and all I get is a grey screen with a folder icon in the middle with a ? In it. I'm assuming this is not good but is there anything I should try? Thanks David
-
Saving a PowerPoint Presentation as a pdf from With Outlook Code
I'm trying to write a macro in Outlook that will open a Powerpoint Presentation (that part works) then save it as a pdf. The code I've seen does not seem to work when running the code from Outlook. Here's what I've got so far, all the commented lin
-
Dear Experts, Employees performance appraisals cannot be viewed in ESS, instead I can see the appraisal documents in employees MSS. No customization done, its the same standard ESS/MSS deployed . I have tried removing the worklfows (thinking some err
-
Function SET_AQ_PROPAGATIONWALLET does not exist ???
Hello, I have a question regardint the httpS propgation, in the document Oracle® Streams Advanced Queuing User's Guide and Reference Release 10.1 Part Number B10785-01, it is refenreces EXECUTE DBMS_AQADM.SET_AQ_PROPAGATIONWALLET('/home/myuid/cwallet