Cast test apparently switches types.
I'm having a strange casting problem when using livecycle and flex client classes.
My setup is something like this:
at the server side:
<destination id="service">
<properties>
<server>
<actionscript-class>ServiceImpl</actionscript-class>
</server>
</properties>
</destination>
at the client side:
public interface IService {
function get name () : String;
function set name (name : String) : void;
[Managed]
[RemoteClass]
public class ServiceImpl implements IService {
public var serviceName : String;
public function get name () : String {
return name;
public function set name (name : String) : void {
this.serviceName = name;
<mx:ComboBox id="serviceComboBox" dataProvider="{services}" labelField="name" enabled="false"/>
Now I would expect the returned object to be of class ServiceImpl. But apparently the labelField here doesn't exist on the object. The object is also show in the debugger as Object@... so I guess it's a dynamic object. First I thought this was an error on the display of the debugger but it's getting a little bit weird. With serviceName as labelField this does work and when I put a cast test on ServiceImpl the labelField name suddenly does exist on the object. Anyone any idea why this behaviour occurs?
see http://forums.adobe.com/thread/535422 for what I think is the real cause of this problem.
Similar Messages
-
Difference between core switch types WS-C3750X-12S-S and N3K-C3524P-10G?
Hello All,
I am new to this domain and yet have to look after the setup of our datacenter for a new branch. Could any one of you provide difference between core switch types WS-C3750X-12S-S and N3K-C3524P-10G!
Thanks in advance!!N3K-C3524P-10G
24 fixed 1/10-Gbps SFP+ ports; upgradeable to 48 with a valid license
Line-rate Layer 2 and Layer 3 throughput of up to 480 Gbps
Compact 1RU form factor
Dual redundant color-coded power supplies
Four redundant color-coded fans -
Hi all,
I have the following code:
Dim oProdOrders As SAPbobsCOM.Documents
oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
after the second line I get a system exception: {"Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbobsCOM.Documents'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A6DA575B-E105-4585-9F4B-50CC4044EEDD}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."}
If I change document to eg oQuotations it proceeds normally.
Any Idea?
Thanks in advance,
Vangelistry it as
Dim oProdOrders As SAPbobsCOM.ProductionOrders
oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders) -
Test Note (Documentation Type) when creating Test Plan
Hi Gurus.
After we upgraded our SolMan 7.0 system from Support Pack (ST component ) level 19 to level 25, I noticed this new field "Test Note" (Dcoumentation Type) when creating a Test Plan in transaction STWB_2.
Initially, when I haven't chosen any project yet, this field has a list-of-values (i.e. Test Case Note, iTutor Document) but when I choose a project, the list-of-values only showing "ST". I also tried choosing another project and there is no value in the list.
Does anyone know where this list is coming from or how I can configure this?
It looks like project-related and but I couldn't find any settings for this.
Can this field be turned off so it will not show in the screen?
Thanks,
TessHi Tess,
The documentation type ST is the standard documentation type for test notes.
Test notes are needed by testers to document results in detail during/after testing a test case.
In SOLAR_PROJECT_ADMIN there is the text menu 'GOTO - Project Template - Implementation Projects'
and then there to the tap 'Documentation Types' to do the default settings for 'ST' for all implementation projects.
Otherwise you'll have to change settings in the administration for each project!
There you can assign your own documentation template for ST in the central settings.
If you are using other project types for testing you'll have to do the same for each project type.
Regards,
Adelbert -
An Exception thrown "Unable to cast transparent proxy to type " when running on Azure emulator
Hello, When i run my solution on azure emulator this exception thrown:
System.InvalidCastException was unhandled
HResult=-2147467262
Message=Unable to cast transparent proxy to type 'Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge'.
Source=WaWorkerHost
StackTrace:
at Microsoft.WindowsAzure.Hosts.Worker.Loader.CreateConsoleRole(Parameters parameters)
at Microsoft.WindowsAzure.Hosts.Worker.Loader.Main(String[] args)
InnerException:
Any help?We are having the same issue - our worker role just recycles with this "Unable to cast transparent proxy to type 'Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge'." error.
We can't really put a breakpoint in CreateConsoleRole and Main - that's Microsoft code from the Azure SDK.
Not sure why this was marked as answered. -
Switch Switch1(config)#switching-type
Does anyone know how to configure-retreive these settings for a 3560 POE switch?
I would like to be able to configure individual ports to cut-through, fragment-free etc...
Switch1(config)#switching-type ?
fragment-free Fragment Free mode
store-and-forward Store-and-Forward mode
Switch1(config)#switching-type store-and-forwardHi,
This is a global configuration for the switch and it effects the whole switch. This cannot be done on per port basis.
HTH, Please rate if it does.
-amit singh -
Switch Sign For Flow and Switch Type for Flow
Hi Can any one Please make me clear at least with 3 examples how to understand Switch Sign for Flow and Switch Type for Flow
and also the good example with Balance Recurring Account TypesHi Chennai,
Consider an account "Fixed-Assets" supported by movement analysis in Custom1, as follows:
ClosingBalance
OpeningBalance
Additions
Disposals
If you mark the Custom1 member Disposals as SwitchSignForFlow, you will enter positive values in Disposals but HFM will subtract from the other two members to calculate the Closing Balance. You may use this functionality if your client prefers to see all values as positive on the reports.
Using the same example, you might recognize that while Closing and Opening balances are of balance type (they provide a snapshot of the account at a specific instant meaning that you see the same number whether you view the YTD or Periodic values of the account), Additions and Disposals are movements, which means that they accumulate during the same year starting from a zero balance on 1/1/201X and therefore you will see different numbers depending on viewing the YTD or Periodic values of the account. In order to provide with this behavior you have to mark both Additions and Disposals with SwitchTypeForFlow. If you don't they will behave as the underlying account (the Fixed-Assets account) and like the other two Custom1 members, Opening and Closing balance members.
As for the BalanceReccuring, an account of this type behaves like a normal Balance account, but once you input a number in an intermediate period (say June), the same number will be copied to all following periods (July-December) until you override the numbers by explicitly inputting new values. With a normal balance account, all following periods will be empty.
--Kostas -
How create a test account of type business
I am not able to create "Create new app",I got below Error.Any One explain here Stay by stap to create new app. EROOR:Please create a test account of type business in order to proceed with app creation
Hallo Jitender,
Read <a href="http://help.sap.com/saphelp_nw04/helpdata/en/12/47b0617750c84bb3c98ec5da8b49ee/frameset.htm">this (SAP Online Help - Quiz Tutorial)</a>
Regards, Bertram -
TRY CAST and setting the type according to destination column
Hi,
I am loading data from different sources. I have to do data quality checks for data I am loading into destination. For Decimal Values I have destination data types Decimal(28,2) and Decimal(28,6)
I would like to check the source data and covert the type according to destination column. How can I use the try cast in this scenario?
SELECT TRY_CAST(REPLACE('100,500.000',',','') AS DECIMAL(28,2))
this statement will convert every thing to two decimal places. but if destination column is decimal(28,6) i would like to convert it to 100500.657899
What is the best way of doing it?
MHHi MH,
According to your description, you need to CAST and setting the type according to destination column which data types is Decimal(28,2) and Decimal(28,6), right?
"this statement will convert every thing to two decimal places. but if destination column is decimal(28,6) i would like to convert it to 100500.657899" If in this case, then there are different data types on the same column which is not
supported in current version. So as per my understanding, there is no such a functionality to achieve your requirement. What we can do is convert to corresponding datatype (Decimal(28,2) or Decimal(28,6)), and then convert it to nvarchar datatype.
CREATE TABLE #TEMP(A NVARCHAR(50))
INSERT INTO #TEMP VALUES('1538.21'),('1635.326541'),('136.235')
SELECT
A,
CASE
WHEN (LEN(RIGHT(A,LEN(A)-PATINDEX('%.%',A))))>2
THEN
CAST(A AS DECIMAL(28,6))
WHEN (LEN(RIGHT(A,LEN(A)-PATINDEX('%.%',A))))<=2
THEN
CAST(A AS DECIMAL(28,2))
END AS B,
CASE
WHEN (LEN(RIGHT(A,LEN(A)-PATINDEX('%.%',A))))>2
THEN
CAST(CAST(A AS DECIMAL(28,6)) AS VARCHAR(99))
WHEN (LEN(RIGHT(A,LEN(A)-PATINDEX('%.%',A))))<=2
THEN
CAST(CAST(A AS DECIMAL(28,2)) AS VARCHAR(99) )
END AS B2
FROM #TEMP
DROP TABLE #TEMP
Regards,
Charlie Liao
If you have any feedback on our support, please click
here.
Charlie Liao
TechNet Community Support -
In the current version (2.1.0.63) I can perform only unit test for packages, function and procedures. But we use a lot of object types in the database and would like to test them. Is there any support for object types scheduled?
You can also use the original UT PLSQL package from sourceforge.
I have used this in the past for testing with file comparisons, table object output from procedures, etc.
We've also used the same setup for Oracle Forms code testing.
Dennis -
Testing IDOC basic type DELVRY03
Hi,
Can anyone tell me how can i test DELVRY03 idoc for ASN. The Idoc is not being triggered from any document as the data is coming from external system to the Ztable and I don't know how IDOC should be triggered.
Function module is Z_ZZ_IDOC_OUTPUT_DELVRY.
Message Type DESADV.
Can anyone tell me in this scenario until the desicion is made for triggering option, can i test the IDOC somehow.
Regards
RinkuHi Rinku,
Could you please clear about your requirement?
If you want to re-test a idoc, use tcode WE19. Input idoc number and execute. Then in the next screen click on the "inbound function module" button, enter the inbound function module and select the radio button process in foreground.
Thnaks & Regards
Vijayanand -
Dump while testing Function- Dynamic type conflict when assigning reference
Hi Gurus,
I have the following checked and activated-
- Function with 1 Ruleset
- The Ruleset containing couple of DBlookup expressions
- Value range
- Decision Table
- Decision tree,
- Procedure call
After I give test data while Simulating the function, I get this dump-
Short text
Dynamic type conflict when assigning references
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_FDT_DB_LOOKUP==============CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
Have I missed something? We are on SAPKA70207.Hi Carsten,
I couldn't find an OSS note featuring-
"MOVE_CAST_ERROR" "CX_SY_MOVE_CAST_ERROR"
"CL_FDT_DB_LOOKUP==============CP" or "CL_FDT_DB_LOOKUP==============CM01K"
"BUILD_WHERE_CLAUSE_LIMIT"
Raised OSS note. -
Test Outbound Idoc type DELVRY01
Hi all,
We've a client who is presently using idoc type DESADV/DELVRY01 for sending Orders outbound. They want to modify the existing output data, which I've deduced I can do by using an existing user exit (.
But when I use WE19 to test the outbound process, ALE is not stopping at my break-point. Can any tell if I'm doing anything wrong with my testing process? How can I get the outbound idoc to stop?
Points rewarded for useful answers.
Cheers,
SteveHello Stephen,
WE19 is for testing for Inbound IDOC..
If you want to test Outbound IDOC ,you need to create delivery or change the delivery in VL01N or VL02N Transaction.
Here you need to give correct output type like Delivery transaction output would be LD00 -> you can find out Delivery Output type in NACE Transaction.
GOTO NACE -> select V2 Application -> Click on output type -> here you are able to see all output types
if you don't find output type then contact Functional guy.
once you create delivery it will create IDOC ,you can IDOC Status in WE02 Transaction.
if you want to debug IDOC then follow below Steps :
goto delivery transaction -> when you create delivery ,please modify output type -> extras -> header -> output type
here see the further data -> select peridocally scheduling.
now come to RSNAST00 Program
enter delivery number as object number
Application -> V2
Output type -> enter delivery output type
Medium - A (ALE) ,6(EDI)
Now you are able to work on debugging
Thanks
Seshu -
I need to test NI-Switch card and Scope Card
I have a PXI-2509 NI-Switch Card and PXI-5112 Scope card,i want to test both the cards.
Hi Murali
The easiest way to test your boards without programming, is to use the Soft Front Panels. The SFP is installed with the driver. You have one for Switches and one for the Digitizer. You can find them in MAX (Tools>>Soft Front Panels) or under Start>>National Instruments>>NI-DMM or NI-Switch
Hope this helps.
Luca
Regards,
Luca -
Warning when casting object into generic type at run time.
I am getting this message when casting an object at run time:
Type safety: The cast from Object to Tree<V> is actually checking against the erased type TreeI'm overloading an equals(Object o) method in my class.
Is there a way to get rid of the warning (besides turning the warning off :))I'm overloading an equals(Object o) method in my
class.
Is there a way to get rid of the warning (besides
turning the warning off :))No. The best you can do is what is demonstrated in the previous link.
Maybe you are looking for
-
Please help me on this issue. I have the latest full size ipad with retina display and want to replace my old hp laptop with it. I currently run an iPod classic and nano from the iTunes on it, but i want to run them off my ipad. Is this possible.
-
I am typing this from my tower and not my laptop. I cannot keep my laptop connected long enough to do anything on the internet since downloading Firefox on it. I am NOT a happy camper. I went directly to the Mozilla web address, and downloaded and in
-
Mac mini thunderbolt port stop working
Good night. First, I apologize for my English. I have a mac mini (2011 model). Two days ago there was a power outage and the mac shut down. After turning it on, it failed to recognize my TV connected through the Thunderbolt port (with a adapter THUND
-
Problems with Whitespace using nested tables from eclipse dtp oracle plugin
Hi, sending from eclipse to oracle xe fails if whitespace is used: Example1: Nested table in nested table adress_table_typ has another nested table in it that works CREATE TABLE x ( i INTEGER PRIMARY KEY, adressen adress_table_typ ) NESTED TABLE adre
-
Drop Undo Tablespace taking more than 1 hr
Hi, To give you background, I had given an "insert into .. select" command which was inserting 3 millions of rows of rowidth approx 5000 bytes. The window on which it was given, was closed by mistake. After sometime when I checked the size of undo_ta