"Call to method "setTextFormat" cannot be defined" in Air App (help needed)
Hello,
I'm following a tutorial to begin with ActionScript 3 and Adobe Flash. I'm willing to create an Air app, but I stumbled upon an issue. The tutorial is for Flash Player, so I wonder if it also work for Air apps (sorry, I don't quite grasp the differences yet).
So here is a screenshot of the issue :
The error reads : Call to method "setTextFormat" cannot be defined, via reference of type static fl.controls:TextArea
(sorry if it's badly translated :/)
What I have below is a TextArea (taken from the User Interface Components) and a button (same). I noted their instance name that you can find back in the AS block.
So since it's the exact same code as in the tutorial (in which it work), why do I get this error ? I tried lot of things to get rid of it, but I'm out of options now, so I ask you for help.
Regards.
Thank you very much for you answer Ned. It's clearer now. I just would like to create the textField WYSIWYGly, but I can't find it inside the component Library. Only TextArea's and TextInput's are there. Do you have any idea where I could find this component to add it visually to my project ? Or must I create it with AS?
I use Flash CS5.5 by the way.
EDIT: striked out non relevant portion. I finally found out. Sorry it's been a while, but it was so obvious ^^
Similar Messages
-
Cannot install LCCS Navigator AIR app - "Sorry, an error has occurred"
I am unable to install the LCCS "SDK Navigator Application" from the LCCS Developer portal. When I try to run the AIR installer, I get the following error message:
Sorry, an error has occurred.
This application cannot be installed because this installer has been misconfigured. Please contact the application author for assistance.
/Library/Frameworks/Adobe AIR.framework/Versions/Current/Resources/Info.plist shows my AIR "CFBundleVersion" is "2.6.0.19140".Hi Brian,
I did try to install LCCS Navigator AIR app on the version of AIR runtime you specified, and did not hit any issues.
Can you give us more details such as OS version, are you updating or installing the app. Also can you try a clean install too.
Thanks
Arun -
Cannot Update My Billing Information- URGENT HELP NEEDED
My credit card expired and when i try to update my billing information the "save" button doesn't work. I tried it on Chrome, Firefox, Explorer...on a PC and a Mac.. clear cookies and history several times and nothing. I tried it for several days now. I Just dont got any message on the page. That "save" button doesent do any action.
If i go to the "Profile" tab and return to "Plan Information" tab then this message appers:
"We're sorry, something seems to be wrong on our end. Please try again later."
This new adobe site is horrible... so buggy!
Tried the online chat help and the guy could't do anything and sugested to do it by phone and the Adobe Portugal Custumer help number listed on the adobe DOSENT WORK!!!!!!
I have 2 creative cloud packs about to expired in the next days and my company cannot produce whithout creative cloud products
I NEED THIS FIXED ADOBE, ASAP!The number that appers on the Portuguese page is: 800-833-6687 ... it dosent work!!!!!!
What is this, an American number, British??? What????
Adobe site sucks whith lack of information and bad services.
I want to pay for my creative cloud packs and i can't for several days now.
Online chat is useless!
The page still not working today keeps showing the message "We're sorry, something seems to be wrong on our end. Please try again later." on the payment info tab. I have 2 days until i'm unable to get my packs to work.
I NEED THIS FIXED ADOBE! -
Hi,
I have a few problems with my z10 STL100-2:
1. I don't hear the sound of incoming calls. (other notifications I do hear)
2. When I connect the device to blackberry link I receive a message in the bl. link that I need to disconnect the device from the computer and complete the defenition process in the device, whereas in the device it says that the definition was completed. Therefore I cannot connect to the bl. link.
I'd appreciate any help.
Thank you!welcome to the club. lots of post for exactly the same thing pluss more.
while we wait for a solution also check your callender and see if your alarm on that only rings for 2 seconds. -
Hi,
I've had this problem for maybe a month or so.
It's not that I can't buy books off of the itunes store, however, whenever I try to search for a book by language it doesn't work anymore. It simply says ''cannot connect to the store''. I tried doing it on both my phone and ipad, but got the same answer. How can I fix this problem?I'm not sure if I'm understanding but if I am then I'm not sure why you are turning your Wi-Fi off and on. It should automatically connect and use your Wi-Fi when it is available and use your cellular data connection when Wi-Fi is not available. I haven't turned either off ever. However, more to the point of your current problem, the following has some troubleshooting steps that may help: http://support.apple.com/kb/TS1398
-
I updated to 4.3.3 - now i cannot open any of my apps help?
i updated my iphone4 to 4.3.3 and now none of my apps will launch, why is this and how can i fix it??
Download a new app to your iPhone. Click on AppStore Icon, find a free game to buy, buy the free App. When it is finished installing. Try your apps again.
-
Hi All,
During the Coexistence of Exchange 2007 to 2010 Migration..
I have create new Edge Scubscription in Edge Server 1 and Export the Edge Configuration File from Edge Server 1.
While trying to Import Edge configuration to Edge Server 2 in Exchange Management Shell, I am getting the below Error.
I have tried importing on both Exchange 2007 and 2010 Edge Servers, getting the same error.
"Importing Edge configuration information Failed.
Reason: You cannot call a method on a null-valued expression."
Please help in resolving this issue...Also found the CloneLogFile as below : I masked my domain name as xxx for security reason..
Get-TransportServer -Identity:xxx | Set-TransportServer -AntispamAgentsEnabled:$true -ConnectivityLogEnabled:$false -ConnectivityLogMaxAge '30.00:00:00' -ConnectivityLogMaxDirectorySize '250MB' -ConnectivityLogMaxFileSize '10MB' -ConnectivityLogPath 'C:\Program
Files\Microsoft\Exchange Server\TransportRoles\Logs\Connectivity' -DelayNotificationTimeout '04:00:00' -ExternalDelayDsnEnabled:$true -ExternalDNSAdapterEnabled:$true -ExternalDNSAdapterGuid '00000000-0000-0000-0000-000000000000' -ExternalDNSProtocolOption
'Any' -ExternalDNSServers:$null -ExternalIPAddress:$null -ExternalDsnDefaultLanguage 'en-US' -ExternalDsnLanguageDetectionEnabled:$true -ExternalDsnMaxMessageAttachSize '10MB' -ExternalDsnSendHtml:$true -InternalDelayDsnEnabled:$true -InternalDNSAdapterEnabled:$true
-InternalDNSAdapterGuid '00000000-0000-0000-0000-000000000000' -InternalDNSProtocolOption 'Any' -InternalDNSServers:$null -InternalDsnDefaultLanguage 'en-US' -InternalDsnLanguageDetectionEnabled:$true -InternalDsnMaxMessageAttachSize '10MB' -InternalDsnSendHtml:$true
-MaxConcurrentMailboxDeliveries '7' -MaxConcurrentMailboxSubmissions '20' -MaxConnectionRatePerMinute '1200' -MaxOutboundConnections '1000' -MaxPerDomainOutboundConnections '20' -MessageExpirationTimeout '2.00:00:00' -MessageRetryInterval '00:01:00' -MessageTrackingLogEnabled:$true
-MessageTrackingLogMaxAge '30.00:00:00' -MessageTrackingLogMaxDirectorySize '1GB' -MessageTrackingLogMaxFileSize '10MB' -MessageTrackingLogPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\MessageTracking' -MessageTrackingLogSubjectLoggingEnabled:$true
-OutboundConnectionFailureRetryInterval '00:30:00' -IntraOrgConnectorProtocolLoggingLevel 'None' -PickupDirectoryMaxHeaderSize '64KB' -PickupDirectoryMaxMessagesPerMinute '100' -PickupDirectoryMaxRecipientsPerMessage '100' -PickupDirectoryPath 'C:\Program
Files\Microsoft\Exchange Server\TransportRoles\Pickup' -PipelineTracingEnabled:$false -ContentConversionTracingEnabled:$false -PipelineTracingPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\PipelineTracing' -PipelineTracingSenderAddress:$null
-PoisonMessageDetectionEnabled:$true -PoisonThreshold '2' -QueueMaxIdleTime '00:03:00' -ReceiveProtocolLogMaxAge '30.00:00:00' -ReceiveProtocolLogMaxDirectorySize '250MB' -ReceiveProtocolLogMaxFileSize '10MB' -ReceiveProtocolLogPath 'C:\Program Files\Microsoft\Exchange
Server\TransportRoles\Logs\ProtocolLog\SmtpReceive' -RecipientValidationCacheEnabled:$true -ReplayDirectoryPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Replay' -RoutingTableLogMaxAge '7.00:00:00' -RoutingTableLogMaxDirectorySize '50MB' -RoutingTableLogPath
'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\Routing' -SendProtocolLogMaxAge '30.00:00:00' -SendProtocolLogMaxDirectorySize '250MB' -SendProtocolLogMaxFileSize '10MB' -SendProtocolLogPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\ProtocolLog\SmtpSend'
-TransientFailureRetryCount '6' -TransientFailureRetryInterval '00:10:00'
New-AcceptedDomain -DomainName 'xxx' -DomainType 'Authoritative' -Name 'xxx'
Set-AcceptedDomain -DomainType 'Authoritative' -AddressBookEnabled:$true -Name 'xxx'
Importing Edge configuration information Failed.
Reason: You cannot call a method on a null-valued expression. -
Generic approach to call a method for any business object
My requirement is to call the DISPLAY method of a business object when I have the objectType and objectId.
Say I have BUS2012 and Id 4500001111, now I want to call a method which invoke the DISPLAY method for this object with objectId (say ME_DISPLAY_PURCHASE_DOCUMENT for purchase order). I even have the key fields for the business object.
Is it possible ?
Thanks in advance !
Ruhi HiraHi Ruhi,
Yes you can call the method for display.Before we can do that we need to fix the procedure for the calling of the method.If you want to call it programitically or you want to call it in task builder or you want to use it as a activity in the work item.we can check for the BUSXXXXXX what ever number is there and we can also check for the activity type pre defined by SAP for it.If suppose you dont have the activity we can create the method for the BOR object type using SWO1.May be it helps your query.
Have a best day ahead. -
How to call a method by specific IP address(if the system has 2 IP address)
Hi All,
In my project I have two N220 systems, which has two IP addresses each. Server has the following IP addresses
172.31.128.93 This IP address connected thorugh HUB
3.3.3.1 This IP address connected through Crossover cable
Client has the following IP addresses
172.31.128.94 This IP address connected thorugh HUB
3.3.3.2 This IP address connected through Crossover cable
In server system I bind the RMI registry in the following way
Naming.rebind ("rmi://3.3.3.1/HeartBeat", this);
And in Client system I lookup in the following way
Naming.lookup("rmi://3.3.3.1:1099/HeartBeat");
Now the problem is, the method in RMI server is not called through Crossover link it is happening through TCP/IP link. Is there any way to call the method by only using Crossover link?
Please help me with this issue...
Thanks in advance.Hi all,
In solaris 220 machine i am facing the following problem While executing lookup method.
If the crossover cable is properly connected lookup method is working fine.
If the crossover cable is unplugged, lookup method is waiting indefinitely until the cable is plugged in. (Lookup method is not throwing any exception )
Is there any way to avoid this ?
Please help me with this issue..
Thanks in advance...
Message was edited by:
rmi_rajkumar -
Cannot open the adobe reader app
Cannot open the adobe reader app. Need help.
Restart the iPad and see if the app will open. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
If that doesn't work, reboot the iPaf and try again. Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
If that fails, Delete the app and reinstall it. Hold down on the app icon until it wiggles, then tap the X on the icon to delete the app. Tap the home button to stop the other app icons from wiggling. Then go back to the app store and download the app again. -
Abstract classes and constructors - cannot call abs. methods in CONSTRUCTOR
Let me explain the scenario:
I'm building a program in which I need to read a file (among other things) and I intend to use object orientation to it's fullest in doing so. I thought of creating an abstract FILE class which has the commonalities, and two subclasses SERVER_FILE and PC_FILE, which implement the abstract method GET_CONTENTS in different ways (OPEN DATASET / GUI_UPLOAD), same for the CHOOSE method which allows to select the file from it's corresponding source.
Initially I've used an interface but since another tasks like setting the file path are common for both, switched to an ABSTRACT class.
Now, the problem is, from the main code I intend to use a FILE reference to handle either type of file. At the instantiation moment I'd like the path attribute to be set; if it was not set by parameter, i'd like to call the CHOOSE method which is abstract for the superclass. Since this is common for either subclass, I need a way to code it once in the superclass. But I get an error because the CHOOSE method is abstract.
This is the problem code (extracts):
* CLASS lcl_file DEFINITION
CLASS lcl_file DEFINITION ABSTRACT.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING
i_path TYPE string OPTIONAL
EXCEPTIONS
no_path_chosen,
get_contents ABSTRACT
RETURNING
value(rt_contents) TYPE string_table
EXCEPTIONS
read_error.
PROTECTED SECTION.
DATA:
_v_path TYPE string.
METHODS:
choose ABSTRACT
EXCEPTIONS
no_path_chosen,
set_path
IMPORTING
i_path TYPE string.
ENDCLASS. "lcl_file DEFINITION
* CLASS lcl_file IMPLEMENTATION
CLASS lcl_file IMPLEMENTATION.
METHOD constructor.
IF i_path IS SUPPLIED.
CALL METHOD set_path
EXPORTING
i_path = i_path.
ELSE.
*---->>>> PROBLEM CALL - CAN'T BE DONE!!
CALL METHOD choose
EXCEPTIONS
no_path_chosen = 1.
IF sy-subrc = 1.
RAISE no_path_chosen.
ENDIF.
ENDIF.
ENDMETHOD. "constructor
METHOD set_path.
_v_path = i_path.
ENDMETHOD. "set_path
ENDCLASS. "lcl_file IMPLEMENTATION
* CLASS lcl_server_file DEFINITION
CLASS lcl_server_file DEFINITION
INHERITING FROM lcl_file.
PUBLIC SECTION.
METHODS:
get_contents REDEFINITION.
PROTECTED SECTION.
METHODS:
choose REDEFINITION.
ENDCLASS. "lcl_server_file DEFINITIO
* CLASS lcl_server_file IMPLEMENTATION
CLASS lcl_server_file IMPLEMENTATION.
METHOD choose.
DATA:
l_i_path TYPE dxfields-longpath,
l_o_path TYPE dxfields-longpath.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'A' " Application server
i_path = l_i_path
fileoperation = 'R' " Lectura
IMPORTING
o_path = l_o_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc = 0 AND l_o_path <> l_i_path.
MOVE l_o_path TO _v_path.
ELSE.
RAISE no_path_chosen.
ENDIF.
ENDMETHOD. "choose
METHOD get_contents.
DATA: l_line LIKE LINE OF rt_contents,
l_osmsg TYPE string.
CHECK NOT _v_path IS INITIAL.
OPEN DATASET _v_path FOR INPUT
IN TEXT MODE
MESSAGE l_osmsg.
IF sy-subrc <> 0.
MESSAGE e000(oo) WITH l_osmsg
RAISING read_error.
ELSE.
DO.
READ DATASET _v_path INTO l_line.
IF sy-subrc = 0.
APPEND l_line TO rt_contents.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET _v_path.
ENDIF.
ENDMETHOD. "get_contents
ENDCLASS. "lcl_server_file IMPLEMENTATION
* CLASS lcl_pc_file DEFINITION
CLASS lcl_pc_file DEFINITION
INHERITING FROM lcl_file.
PUBLIC SECTION.
METHODS:
get_contents REDEFINITION.
PROTECTED SECTION.
METHODS:
choose REDEFINITION.
ENDCLASS. "lcl_pc_file DEFINITIO
* CLASS lcl_pc_file IMPLEMENTATION
CLASS lcl_pc_file IMPLEMENTATION.
METHOD choose.
DATA:
l_i_path TYPE dxfields-longpath VALUE 'C:\',
l_o_path TYPE dxfields-longpath.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'P' " PC
i_path = l_i_path
fileoperation = 'R' " Lectura
IMPORTING
o_path = l_o_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc = 0 AND l_o_path <> l_i_path.
MOVE l_o_path TO _v_path.
ELSE.
RAISE no_path_chosen.
ENDIF.
ENDMETHOD. "choose
METHOD get_contents.
CHECK NOT _v_path IS INITIAL.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = _v_path
CHANGING
data_tab = rt_contents
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
RAISE read_error.
ENDIF.
ENDMETHOD. "get_contents
ENDCLASS. "lcl_pc_file IMPLEMENTATION
* Data
DATA: gr_file TYPE REF TO lcl_file.
* Main Program
START-OF-SELECTION.
* Get text lines from file
IF p_srv = abap_true.
CREATE OBJECT gr_file
TYPE
lcl_server_file
EXCEPTIONS
no_path_chosen = 1.
ELSE.
CREATE OBJECT gr_file
TYPE
lcl_pc_file
EXCEPTIONS
no_path_chosen = 1.
ENDIF.
On a 4.6c system this code gave me a dump, while on my NW7.0 SP it doesn't even activate with the following error:
You cannot call abstract methods in the "CONSTRUCTOR" method.
- Following some suggestions from Java forums i've tried to define the constructor in the base class as PROTECTED or PRIVATE instead, then calling super->constructor from the subclasses, but I get this error in german:
Sichtbarkeit des Konstruktors darf nicht spezieller als die Sichtbarkeit der Instanzerzeugung (CREATE-Zuzatz) sein.
which Altavista translates like:
Visibility of the constructor may not be more special than the
visibility of the instance production (CREATE Zuzatz).
- I've also thought of defining the CHOOSE method as a class (not instance) one, then calling it before creating the file object which maybe solves the problem, but I see that approach more "procedural oriented" which i'm trying to avoid.
- Of course I could define a constructor for each subclass, but both would have exactly the same code.
I'm really lost on how should I code this. My main focus is on avoiding code dupplication.
I hope someone with more OO experience can see what I'm trying to do and sheds some light.
Many thanks for reading all this!Dear Alejandro,
When i saw your code, you are trying to access an astract method CHOOSE(which is actually implemented in sub class) from the constructor of the base class which is not possible. By this time, we don't know which sub class it is refering to, so it gives an error. I see two solutions for this..
1. To define constructor in sub class and call the choose method from the consturctor of the sub class(which in this case is reputation of the same again for each sub class)
2. Remove the calling of choose method from the constructor of the main class and call it separately(after creating the object). By now we know which sub class we are refering to. I would have designed the program in the following way.
* CLASS lcl_file DEFINITION
CLASS lcl_file DEFINITION ABSTRACT.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING
i_path TYPE string OPTIONAL
EXCEPTIONS
no_path_chosen,
get_contents ABSTRACT
RETURNING
value(rt_contents) TYPE string_table
EXCEPTIONS
read_errorm,
set_path ABSTRACT
EXCEPTIONS
no_path_chosen.
PROTECTED SECTION.
DATA:
_v_path TYPE string.
* METHODS:
* choose ABSTRACT
* EXCEPTIONS
* no_path_chosen,
* set_path ABSTRACT
* IMPORTING
* i_path TYPE string.
ENDCLASS. "lcl_file DEFINITION
* CLASS lcl_file IMPLEMENTATION
CLASS lcl_file IMPLEMENTATION.
METHOD constructor.
IF i_path IS SUPPLIED.
_v_path = i_path.
* CALL METHOD set_path
* EXPORTING
* i_path = i_path.
* ELSE.
**---->>>> PROBLEM CALL - CAN'T BE DONE!!
* CALL METHOD choose
* EXCEPTIONS
* no_path_chosen = 1.
* IF sy-subrc = 1.
* RAISE no_path_chosen.
* ENDIF.
ENDIF.
ENDMETHOD. "constructor
* METHOD set_path.
* _v_path = i_path.
* ENDMETHOD. "set_path
ENDCLASS. "lcl_file IMPLEMENTATION
* CLASS lcl_server_file DEFINITION
CLASS lcl_server_file DEFINITION
INHERITING FROM lcl_file.
PUBLIC SECTION.
METHODS:
get_contents REDEFINITION,
set_path REDEFINITION.
* PROTECTED SECTION.
* METHODS:
* choose REDEFINITION.
ENDCLASS. "lcl_server_file DEFINITIO
* CLASS lcl_server_file IMPLEMENTATION
CLASS lcl_server_file IMPLEMENTATION.
METHOD set_path.
DATA:
l_i_path TYPE dxfields-longpath,
l_o_path TYPE dxfields-longpath.
CHECK _v_path IS INITIAL.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'A' " Application server
i_path = l_i_path
fileoperation = 'R' " Lectura
IMPORTING
o_path = l_o_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc = 0 AND l_o_path = l_i_path.
MOVE l_o_path TO _v_path.
ELSE.
RAISE no_path_chosen.
ENDIF.
ENDMETHOD. "set_path
METHOD get_contents.
DATA: l_line LIKE LINE OF rt_contents,
l_osmsg TYPE string.
CHECK NOT _v_path IS INITIAL.
* OPEN DATASET _v_path FOR INPUT
* IN TEXT MODE
* MESSAGE l_osmsg.
IF sy-subrc = 0.
* MESSAGE e000(oo) WITH l_osmsg
* RAISING read_error.
ELSE.
DO.
READ DATASET _v_path INTO l_line.
IF sy-subrc = 0.
APPEND l_line TO rt_contents.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET _v_path.
ENDIF.
ENDMETHOD. "get_contents
ENDCLASS. "lcl_server_file IMPLEMENTATION
* CLASS lcl_pc_file DEFINITION
CLASS lcl_pc_file DEFINITION
INHERITING FROM lcl_file.
PUBLIC SECTION.
METHODS:
get_contents REDEFINITION,
set_path REDEFINITION.
* PROTECTED SECTION.
* METHODS:
* choose REDEFINITION.
ENDCLASS. "lcl_pc_file DEFINITIO
* CLASS lcl_pc_file IMPLEMENTATION
CLASS lcl_pc_file IMPLEMENTATION.
METHOD set_path.
DATA:
l_i_path TYPE dxfields-longpath VALUE 'C:\',
l_o_path TYPE dxfields-longpath.
CHECK _v_path IS INITIAL.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'P' " PC
i_path = l_i_path
fileoperation = 'R' " Lectura
IMPORTING
o_path = l_o_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc = 0 AND l_o_path = l_i_path.
MOVE l_o_path TO _v_path.
ELSE.
RAISE no_path_chosen.
ENDIF.
ENDMETHOD. "set_path
METHOD get_contents.
CHECK NOT _v_path IS INITIAL.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = _v_path
CHANGING
data_tab = rt_contents
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc = 0.
* RAISE read_error.
ENDIF.
ENDMETHOD. "get_contents
ENDCLASS. "lcl_pc_file IMPLEMENTATION
* Data
DATA: gr_file TYPE REF TO lcl_file.
* Main Program
START-OF-SELECTION.
* Get text lines from file
IF abap_true = abap_true.
CREATE OBJECT gr_file
TYPE
lcl_server_file
EXCEPTIONS
no_path_chosen = 1.
ELSE.
CREATE OBJECT gr_file
TYPE
lcl_pc_file
EXCEPTIONS
no_path_chosen = 1.
ENDIF.
gr_file->set_path( ).
Regards
Kesava
Edited by: Kesava Chandra Rao on Mar 19, 2008 11:44 AM -
OVS: Methode SET_OUTPUT_TABLE Cannot Be Called
Dear All,
I am using the same OVS with different names in two views' which shares the same attribute.The views are changed with the help of VIewcontainerUIElement. The OVS workes when i call the first view and then the second but not when i call the second view dircetly and try to access OVS , it gives the error 'OVS: Methode SET_OUTPUT_TABLE Cannot Be Called '.
Please help me to fix this issue.
Thanks in advance.>
Naveen17 wrote:
> Dear Senthil,
>
> I am using different views which i change using ViewcontainerUI element .Here there are some input fields having OVS which are commmon in the views.OVS i created for the first view works but it wont work for other views which were copied from the first view.It gives a dump saying 'SET_OUTPUT_TABLE Cannot Be Called ' when i try to access the OVS.
>
> I want to know how can i use OVS common across all views which is created for an attributte whcih is common in all.This OVS is not created using Dictionary F4 help as it is from different tables.
>
>
> With thanks & regrads,
Hallo Naveen,
How many components are involved here. is the view 2 from a different component ?. If they are from different components , since you say that you have copied , have you checked that the component usage are same ?. You have to look in that direction. I suspect that the ovs component usage is not correct, check your event handler in view2 if the component usage is correct. -
How to call a method defined in AM when I select any value in LOV
Lets say there is a LOV. The scenario is as soon as I select any value in LOV, a method needs to be called which I have written in the AM. And the output of the method is displayed in a output text box.
I am not able to understand how to call a method when the user selects any value in LOV.
This is wht I did. I had created the binding for the method. Changed the autosubmit property of the LOV to True, and in the properties of the output box, in the partial submit trigger property, passed the ID of the LOV. But I didnt get any place where I need to call the method. I am also not able to drop an action listener on the LOVHi,
+"its showing an error(underlined in orange)."+
Any reason you don't share this error with us? Anyway, here is how it goes
1. LOV, set autosubmit="true" and configure a value change listener
2. Expose the AM method as a method binding in the PageDef file
3. In the value change listener:
BindingContext bctx = BindingContxt().getCurrent();
BindingContainer bindings = bctx.getCurrentBindingsEntry();
OperationBinding method = (OperationBinding) bindings.get("name of method binding in PageDef");
method.getParamsMap().put("argument name1", value1);
method.getParamsMap().put("argument name2", value2);
Object retVal = method.execute();
if(!method.getErrors().isEmpty()){
//handle errors
else{
//write retVal to the managed bean variable that is referenced by the outputText value property
//PPR output text component
ADFFacesContext.getCurrentInstance().addPartialTarget(outputTextRef);
}Note that you may have to set clientComponent = "true" on the output text component
Frank -
Issue with calling a method activity before page render
Hi All,
I am using Jdeveloper 11.1.1.7.
I am trying to achieve the approach defined in "1.b. Calling a Method in Backing Bean:" elaborated in the blog - https://blogs.oracle.com/adf/entry/an_epic_question_how_to
As illustrated, I defined a default method activity (binding to a method in managed bean) and a view activity activity in a bounded task flow.
When I launch the application (running the view activity), following error is encountered -
oracle.adf.controller.metadata.ParsingException: ADFC-02020: Cannot find default activity 'check' in task flow definition '/WEB-INF/task-flow-definition.xml#task-flow-definition'.
at oracle.adfinternal.controller.metadata.model.xml.XmlUtil.createAndLogParsingException(XmlUtil.java:474)
at oracle.adfinternal.controller.metadata.model.xml.MetadataResourceXmlImpl.parseTaskFlowDefinition(MetadataResourceXmlImpl.java:507)
at oracle.adfinternal.controller.metadata.model.xml.MetadataResourceXmlImpl.parse(MetadataResourceXmlImpl.java:361)
at oracle.adfinternal.controller.metadata.provider.mds.MdsMetadataResourceProvider.parseResource(MdsMetadataResourceProvider.java:748)
at oracle.adfinternal.controller.metadata.provider.mds.MdsMetadataResourceProvider.getMDSCachedResourceOrParse(MdsMetadataResourceProvider.java:732)
Please advise.
Best Regards,
Ankit GuptaHi Cvele, Timo,
Many thanks for the suggestions.
To avoid confusions, I have created a new application altogether. It seems that the method call is not being called when I run the page.
For your reference I have attached the task flow definition and method code below -
Task Flow Definition
<?xml version="1.0" encoding="windows-1252" ?>
<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
<task-flow-definition id="task-flow-definition">
<default-activity id="__1">methodCall1</default-activity>
<managed-bean id="__11">
<managed-bean-name id="__13">TestBean</managed-bean-name>
<managed-bean-class id="__10">TestBean</managed-bean-class>
<managed-bean-scope id="__12">request</managed-bean-scope>
</managed-bean>
<view id="view1">
<page>/view1.jspx</page>
</view>
<view id="exception">
<page>/exception.jspx</page>
</view>
<method-call id="methodCall1">
<method>#{requestScope.TestBean.checkURL}</method>
<return-value id="__15">#{TestBean.checkURL}</return-value>
<outcome id="__14">
<to-string/>
</outcome>
</method-call>
<control-flow-rule id="__2">
<from-activity-id id="__3">methodCall1</from-activity-id>
<control-flow-case id="__5">
<from-outcome id="__6">go</from-outcome>
<to-activity-id id="__4">view1</to-activity-id>
</control-flow-case>
<control-flow-case id="__8">
<from-outcome id="__9">error</from-outcome>
<to-activity-id id="__7">exception</to-activity-id>
</control-flow-case>
</control-flow-rule>
</task-flow-definition>
</adfc-config>
Method Code
public String checkURL() {
// Add event code here...
System.out.println("method activity called");
return "error";
Best Regards,
Ankit Gupta -
Calling a method from abstarct class
Hi Experts,
Am working on ABAP Objects.
I have created an Abstract class - with method m1.
I have implemented m1.
As we can not instantiate an abstract class, i tried to call the method m1 directly with class name.
But it it giving error.
Please find the code below.
CLASS c1 DEFINITION ABSTRACT.
PUBLIC SECTION.
DATA: v1 TYPE i.
METHODS: m1.
ENDCLASS. "c1 DEFINITION
CLASS c1 IMPLEMENTATION.
METHOD m1.
WRITE: 'You called method m1 in class c1'.
ENDMETHOD. "m1
ENDCLASS. "c1 IMPLEMENTATION
CALL METHOD c1=>m1.
Please tell me what is wrong and how to solve this problem.
Thanks in Advance.Micky is right, abstract means not to be instantiated. It is just a "template" which you can use for all subsequent classes. I.e you have general abstract class vehicle . For all vehicles you will have the same attributes like speed , engine type , strearing , gears etc and methods like start , move etc.
In all subsequent classes (which inherit from vehicle) you will have more specific attributes for each. But all of these classes have some common things (like the ones mentioned above), so they use abstract class to define these things for all of them.
Moreover there is no sense in creating instance (real object) of class vehicle . What kind of physical object would vehicle be? there is no such object in real world, right? For this we need to be more precise, so we create classes which use this "plan" for real vehicles. So the abstract class here is only to have this common properties and behaviour defined in one place for all objects which will have these. Abstract object however cannot be created per se. You can only create objects which are lower in hierarchy (which are specific like car , ship, bike etc).
Hope this claryfies what we need abstract classes for.
Regards
Marcin
Maybe you are looking for
-
External microphone and macbook pro
Hi, I've recently purchased a macbook pro and I would like to know if someone has tried to connect an external micophone. I've tried to connect a simple microphone to the line in port but it doesen't work. Do you think that is a problem on the line i
-
Cleaning the cd/dvd drives dust guard
The fabric/foam/plastic (whatever they are) flaps that protect the slot of the cd/dvd drive on my macbook pro 2012 have become stiff and will not let discs through with ease. I had a liquid (tea) spill the other day, so I have reason to believe that
-
Sync iCal with Touch 2.0
With Push turned on, new iCal events added to my computer are sent to my iPod Touch; iCal events added to my iPod do not show up on my computer. With Push turned off, iCal events added to my iPod are sent to my computer but iCal events added to the c
-
HT1349 Apple does not recognize my answers to security questions. Now what?
Apple does not recognize my answers to security questions. Now what?
-
VIA has released a combo audio drivers to support all these southbridges : VT8231 VT82C686A VT82C686B VT8233 VT8233A VT8233C VT8235 Here is the link : http://www.viaarena.com/?PageID=69 And here is the direct download : (Windows) http://downloads.via