Inconsistent behaviour of [inspectable] tags
I am attempting a platform conversion of a large product from
AS2 to AS3. The problem is that the original code for our
components used [inspectable] tags to expose getters and setters
for private variables. In ActionScript 3, [inspectable] tags only
seem to work if you use a public variable with no getter or setter
functions.
This is a problem, since I have about 15K lines of code, and
it refers to the getter and setter properties of these components
all over the place.
Am I missing something? Is there some documentation that
shows different ways of using [inspectable] tags to expose
parameters with AS3 components? An someone tell me about a
workaround for this?
Any help would be appreciated.
It turns out that getters/setters may not have anything to do
with this at all. Some components are simply not seeing the values
in the parameter box at all, and are defaulting to, well, whatever
we set as the default.
I doubt this is related, but another problem I'm encountering
is that when I compile components, the live preview gets clobbered,
so when the component appears on the stage, the live preview is
drawn in a 2x2 pixel area,(even though the bounding box shows the
original component size). This happens with about 5 out of 6
compiles. What's the deal?
Similar Messages
-
ECC 6.0 VERSION UPGRADE - INCONSISTENCY BEHAVIOUR -MM - Reg
Hai,
We are in the process of ECC 6.O upgrade from ECC 5.0,
we started the CT1/ CT2 testing and found the following error.
While inwarding Material against Subcontracting purchase order / S.L.Agreement ,
The system shows the error message of CHALLEN MATERIAL IS DIFFRENT FROM MATERIAL DOCUMENT , during GR
note :- for the same material , same p.o , some times systems allows for GR & some times gives above error message.
if i try with some other login , the behaviourseems to be same as my login
Can anyone tell this why this inconsistency behaviour of system during GR for sub contracting item..
Regards,
Suresh.Pgo to SE38, here type the program RM07CUFA,
click on execute... type ur mov type 541... here make the purchase order field from display to optional..
this will effected for new subcontracting scenerio.... -
Inspectable tag - strange behavior
I have multiple inspectable tags in a component class
(subclass of UIComponent).
The color property (in the attached code) ignores the color
parameter set in the parameters pane unless the bright property (in
the attached code) is set to true. With bright set to false, the
color will always be black (0).
I am accessing the parameters in the "override protected
function draw" method.
Help!Got it...
Looks like none of the setters are called unless something is
not equal to the default. -
Inconsistent Behaviour on executing Xquery on the container....
I need some of the suggestions on the following BDB issue. Here I written the code to create the container, load the .xml file in to it with doc_id and opens the allready existing container. Here I am seeing inconsistent behaviour.
Following are the Steps I followed...
1. Created DbEnv class object .
2. Opened the DbEnv using open methode with flags "DB_CREATE | DB_INIT_MPOOL".
3. Created XmlManager class object with the flags "DBXML_ADOPT_DBENV | DBXML_ALLOW_AUTO_OPEN".
Rest of the steps are mentioned in the code fragment..
Class Definition is as follows...
#include <dbxml/DbXml.hpp>
using namespace DbXml;
using namespace std;
class BDBObject // Singleton class
public:
static BDBObject* instance();
bool open_xml();
bool close_xml();
bool execute_xquery(const string & exp, string & response);
~BDBObject();
private:
BDBObject();
static BDBObject* m_singletonObject;
XmlManager *m_xmlManager;
DbEnv *m_bdbEnv;
XmlUpdateContext m_xmlUpdateContext;
XmlQueryContext m_xmlQcontext;
XmlContainer m_necbContainer;
XmlContainer m_necbXmlContainer;
bool BDBObject::open(bool flagEnabled)
-------------- < code fragment for first 3 steps mentioned above> -----------------
try{
string containerName = "container1.dbxml";
if(m_xmlManager -> existsContainer(containerName))
[b]m_necbContainer = m_xmlManager -> openContainer(containerName); // Opening allready existing container
else
return false;
if(flagEnabled)
XmlUpdateContext updateContext = m_xmlManager -> createUpdateContext();
m_necbXmlContainer = m_xmlManager -> createContainer("container2.dbxml");
XmlInputStream *fileStream = m_xmlManager -> createLocalFileInputStream(filePath);
m_necbXmlContainer.putDocument(fileDocId, fileStream, updateContext, 0);
}// End of Try block...
catch (XmlException &xe)
cout<<"XmlException: "<<xe.what()<<endl;
return false;
return true;
}// End of function
bool BDBObject::execute_Xquery(const string & sExp, string & response);
if(NULL == m_xmlManager)
return false;
XmlContainer *bdbContainer = NULL;
if(flagEnabled)
bdbContainer = &m_necbXmlContainer;
else
bdbContainer = &m_necbContainer;
if(bdbContainer == NULL)
return false;
try{
XmlQueryContext xmlQcontext = m_xmlManager->createQueryContext();
string containerName = bdbContainer -> getName();
m_xmlQcontext.setDefaultCollection(containerName);
XmlQueryExpression xmlQExp;
if(flagEnabled)
xmlQExp = m_xmlManager -> prepare(sExp, xmlQcontext);
XmlResults bdbResult = xmlQExp.execute(xmlQcontext);
XmlValue bdbValue;
while(bdbResult.next(bdbValue))
response = response + bdbValue.asString();
}// End of Try block..
catch (XmlException &xe)
cout<<" XML Exception: "<<xe.what()<<endl;
return false;
return true;
}// End of function
<---------------- Application ----------------->
main()
cout<< "In Application "<<endl;
bool flagEnabled = false;
BDBObject *obj = BDBObject::instance(); // Singleton Object Creation
obj -> open(false);
string xquery("");
if(flagEnabled)
xquery = "declare namespace HHP=\"HHP\";
let $n := doc('container1.dbxml/<corressponding docId>')//HHP:hapCageTable
return ($n);"
else
xquery = "declare namespace HHP=\"HHP\";
let $n := doc('container2.dbxml/<corressponding docId>')//HHP:hapCageTable
return ($n);"
string response;
obj -> execute_xquery(xquery, response);
---------- END -------
Here when I make flagEnabled as false in the application & then compiled.. After execution of the application, I had got expected output.
Use cases which i tested the application in sequence are...
1. I make flagEnabled as false in the application & then compiled.. After execution of the application, I had got expected output.
2. I make flagEnabled as true in the application & then compiled... After execution of the application, I had got expected output.
3. I make flagEnabled as false in the application & then compiled... After execution of the application, I had got exception in the BDBObject::execute_xquery() function at the line "xmlQExp = m_xmlManager -> prepare(sExp, xmlQcontext);" and shows the exception as "Error: No such file or directory".
4. If I execute once again the previous use case, then it works.
5. Now I re-executed the use case 2, I had got expected output.
6. Now I re-executed the use case 1, Here I am able to see the execption in BDBObject::open function at line "m_necbContainer = m_xmlManager -> openContainer(containerName);" and shows the exception as "Error: container1.dbxml: container file not found, or not a container".
Please let me know some suggestions to proceed further on this issue..
Thanks in Advance,
Regards,
Sravan.Sorry let me explain it clearly.....
Input plain xml file:
<bookstore>
<book>
<title>ALSB</tile>
<price>100</price>
</book>
</bookstore>
As we know $body points to root element of above input xml file
1) My xpath/Xquery condition is --> data($body/book/price)>30 than I validated and tested with above xml input it returns true to me so I saved and activated my proxy.
2) Now next step let me test proxy from proxy test screen for above input xml file, I clicked on test icon and inputted above xml file. But myxpath/Xquery condition in proxy fails and it goes to else condition.
The strange part is, if I change my input file to
<book>
<title>ALSB</tile>
<price>100</price>
</book>
Than above condition return true, why this is behaving like this
Edited by prabhu_biradar at 11/18/2007 8:26 PM
Edited by prabhu_biradar at 11/19/2007 6:10 AM -
Can't get the [Inspectable] tag to work
Hello there. I'm having a nightmare trying to get metadata
tags to do what I expect them to. I've used the following code to
define a variable in a custom MXML component, (in the proper place
in the script tag of course)
quote:
[Inspectable(name="Test Value",defaultValue="false")]
public var myValue:Boolean;
Correct me if I'm wrong, but I'd expect to see an entry named
"Test Value" in the flex builder property inspector with a default
value of "false". This is not what I'm getting. On adding the
custom component to my application the variable in question is
listed as "myVar" in the property inspector and there is no value
assigned to it at all.
I'm having this problem even when cutting and pasting the
example code for metatag usage from the help docs. I've tried
downloading program updates with no luck. Am I missunderstanding
what's happening here? Does the component need to be pre-compiled
in some way before the metatags take effect? If so can you point me
in the right direction in the documentation so I can do this?
Any help would be greatly appreciated. This is one of those
silly littly problems that's driving me round the bend.Password for what?
-
STANDARD BEHAVIOUR OF INSPECTION TYPE 03
Hi All,
I am implementing Inprocess Inspection Points for a Material.
1) I have enabled QM view of MM with Inspection Type 03.
2) I have created Routing and assigned Inspection Characteristics for operations.
When I release the Production order, I have Lot created in Quality Inspection.I now do a operation confirmation at the last operation in the routing.
I do a Result recording but I dont do a UD. I now do GR for the Production Order.
It moves the stock to Unrestricted from Quality while I still have Inspection Lot in QA32 without UD done.
Q1. Is this a standard SAP behaviour or I am missing out something. If this is a standard behaviour why will any body clear Inspection Lot created under this inspection Type. It is after all not stalling the process.
Q2. I learn that Inspection type 03 is not relevant for Stock. What does this mean ?
Any important pointers will be appreciated.
I am confused. Please help.
Thanks,
Rahul.Dear Rahul
You have understood it correctly
2) Let me answer your second question first - 03 inspection is not stock specific. this is because you dont have a stock posting tab (unrestricte, block etc) in this inspection tab as you have in 01 or 04 inspection. here you do only confirmation of quantity. Hope you understood
1) 03 inspection is to assisst people in recording result for during process. It is doesnt hold any stock.It gives you a control over operation confirmation where you can practise Rework order , calculation of First pass yield etc. It also helps in some processing companies if they need to do result recording after every 1 hour or after some fixed quantities have been made.
But 03 inspection can be made effective if you have follow the below.
1) All Operation confirmation are mandatory for doing the GR of the order
2) Operation sequencing should be mandatory so that people dont skip QM operation and confirm operation next to QM Operation.
3) also there can be link made between 04 inspection and 03 inspection so that to give UD for 04 inspection you have to mandatorily give UD for 03 inspection
Hope this throws some light.
please let me know your feedback
Regards
gajesh -
Point4D.Multiply inconsistent behaviour with NaN values
I've noticed some peculiar behaviour with System.Windows.Media.Media3D.Point4d.Mutiply when used with NaN values.
The following assumes that I expect that 0 * NaN should result in 0. There is an argument against that logic, but that is not the point here.
I have a 4x4 matrix defined, in the case that it is an Identity matrix and there is a NaN component in the vector, I would like to get some defined vector output where it is possible to calculate the component.
E.g. (1,2,NaN,4) * (Identity Matrix) = (1,2,NaN,4).
I was caught out for a while:
By stepping through using the debugger gives the output I want (1,2,NaN,4).
But allowing the debug code to run through uninterrupted gives the result (NaN, NaN, Nan, Nan).
There is a slightly surprising workaround: - using Matrix.IsIdentity seems to trigger the result I want
If I use the default Matrix constructor instead of a manually created one (normally created elsewhere in code), there is no problem.
Can anyone explain this inconsistency?
Simple C# console demo:
using System;
using System.Windows.Media.Media3D;
namespace TestNan
class Program
static void Main(string[] args)
Point4D testPoint = new Point4D(1.0, 2.0, Double.NaN, 4.0);
Matrix3D testMatrix = new Matrix3D(1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 0.0, 0.0, 1.0);
var testResult1 = Point4D.Multiply(testPoint, testMatrix);
Console.WriteLine(testResult1.ToString());// NaN,NaN,NaN,NaN
var b = testMatrix.IsIdentity;
var testResult2 = Point4D.Multiply(testPoint, testMatrix);
Console.WriteLine(testResult2.ToString());// 1, 2, NaN, 4
Console.ReadKey();>>Can anyone explain this inconsistency?
The Matrix3D class has an internal boolean flag that it uses to determine if the matrix is actually an identity matrix and this flag is not set when you create a Matrix3D object using the constructor that takes the 16 double values despite the fact that
you are actually creating an identity matrix (the flag is then eventually set when you access the IsIdentity property).
If you use the Matrix3D.Identity static property, the flag will get set to the correct value immediately and the results will be the expected:
static void Main(string[] args)
Point4D testPoint = new Point4D(1.0, 2.0, Double.NaN, 4.0);
Matrix3D testMatrix = Matrix3D.Identity;
var testResult1 = Point4D.Multiply(testPoint, testMatrix);
Console.WriteLine(testResult1.ToString());
var b = testMatrix.IsIdentity;
var testResult2 = Point4D.Multiply(testPoint, testMatrix);
Console.WriteLine(testResult2.ToString());// 1, 2, NaN, 4
Console.ReadKey();
Hope that helps.
Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't post several questions in the same thread. -
SSRS PDF report inconsistent behaviour
Hi,
We are using SSRS reports in out project. In one of the reports we are facing a weird behaviour of PDF report. The report has few legends at the start and then the table containing the data starts.
If the report has 25-28 records then the table starts from Page 2 instead of Page1. The corresponding HTML report is working fine.
If the report has less then 25 records, table starts correctly from Page 1.
If the reports has more than 30 records, then also the table starts correctly from Page1 and remaining records at Page2.
Does anybody has idea why PDF reports starts displaying the table from Page 2?PDF reports in SSRS are generated with physical dimensions of the page and HTML are generated as logical. So if any of the rows in your first page or header is wider than a A4 size paper then part of the row will be moved to the next page. Keeping
this in mind can you recheck the issue. The fact about 30 rows being on one page and 25-30 rows being moved to another might just be a conincidence. Maybe one of the records in the 25-30 set is wider than the other records. Could you please recheck and confirm? -
Inconsistent behaviour in Java 1.2 and 1.3 version
Hi Where can I find the complete list of methods and classes which are not depricated but have different behaviour in Java1.2 and 1.3 version, like one method is nextToken(String) of StringTokenizer class.
Thing like this are likely to be found in the release notes for each version. The release notes of 1.3 are @ http://java.sun.com/j2se/1.3/relnotes.html
-
DBMS_RANDOM inconsistent behaviour ?
Hi:
I have an issue with DBMS_RANDOM on 9.2.0.6
#### TEST CASE #####
create table t1 (col1 number);
insert into t1 values ('1');
insert into t1 values ('2');
insert into t1 values ('3');
-- ## QUERY1
select rnd1, rnd1, col1 from (select * from (select dbms_random.string('U',5)
rnd1,col1 from t1));
RND1 RND1 COL1
<font color="#cc0000">EVJMP CZGSY</font> 1 <- the two occurrences of RND are different
WHZTP TEJBP 2
HOMYO DQVKG 3
-- ## QUERY2
select rnd1, rnd1, col1 from (select * from (select dbms_random.string('U',5)
rnd1,col1 from t1 where rownum < 99));
RND1 RND1 COL1
<font color="#0000cc">DGMSG DGMSG</font> 1 <- the two occurrences of RND are equal
MUEFU MUEFU 2
UAKLH UAKLH 3
##########<br>
I believe that query1 behaves wrong, I cannot reference the random value... while I believe query2 is correct.<br>
My goal is to have multiple occurrences of rnd1 field share the same value, without applying filtering with rownum.<br>
Is this the intended behaviour?<br>
Any idea on how to make query1 behave as query2?Very odd this is what you select returns on 9.2.0.6
SQL> select * from (select * from (select dbms_random.string('U',5)
2 rnd1,dbms_random.string('U',5)rnd2, col1 from t1 where rownum < 99))
3 /
RND1 RND2 COL1
AOPLL DHRHE 1
XPACR ADOUK 2
YIKOZ SERFB 3
And when I use
SQL> select rnd1, rnd1, col1
2 from (select rownum as Rnum,dbms_random.string('U',5) rnd1, col1 from t1)
3 /
RND1 RND1 COL1
CGXNN CGXNN 1
IYWMM IYWMM 2
GDTCT GDTCT 3
GJPLM GJPLM 4
JHXCO JHXCO 5
null -
Inconsistent behaviour of Sybase SQL anywhere update column trigger
Hi, all
I am not sure where to post this issue, since I could not find a forum for Sybase SQL anywhere.
The problem is as follows:
The definition of the update column trigger in help is this:
UPDATE OF column-list
Invokes the trigger whenever a row of the associated table is updated such
that a column in the column-list is
modified.
However, there are cases when the triggers are launched even when the columns are not modified (ie the same exact value is in the both OLD and NEW row)
This happens on BEFORE triggers, never saw it happening on AFTER.
Ways to replicate the problem:
1. Define a before trigger, which fires on update of a specific column in any table.
2. Run an sql which says "update table1 set column1 = column1 where ... "
3. You will see that trigger fires, even though it is not supposed to.
Is this an expected behaviour on "BEFORE" triggers?
ArcadyIf this were a sql server question, then I could tell you that this is by design. A trigger will be executed regardless of the number of rows affected (including zero) and regardless of whether any column in any of the affected rows was changed. I will also point out that PB was designed to work within this design by the inclusion of the [where clause for update/delete] option in the update properties of the datawindow. The idea is that you avoid actual row updates (in the table) where nothing has actually changed (and it also supports collision avoidance).
Based on the history, I would assume that Sybase works exactly the same. -
SAP Screen Personas 3.0 - Inconsistent behaviours and features after installation
Hi,
Our company installed SAP Screen Presonas 3.0. We followed up Personas installation OSS notes and instalaltion check list.
The Personas Health Check displays no issue (see below).
However, we do get inconsistent behaviors from Personas 3.0:
- Assign background button, Stretch button, Upload button don't work
- Unassign image isn't possible
- Fill color button and Bold icon don't work with a theme assigned to the transaction
- Images and buttons aren't aligned when a flavor is displayed (compared to when a flavor is edited)
- the link to personas via Chrome through https doens't work any more (after update of kernel at patch 22).
Do you have any idea ?
Thanks,
Christophe
Service Status
personas
ICF Name
PERSONAS
personas
Compression
ON
personas
Active
YES
personas
Path
/default_host/sap/bc/personas
personas
Text
SAP Screen Personas 3.0
Preconfigured SAP GUI for HTML with SAP Screen Personas 3.
personas3
ICF Name
PERSONAS3
personas3
Compression
ON
personas3
Active
YES
personas3
Path
/default_host/sap/bc/personas3
personas3
Text
/PERSONAS/CL_MIME_ZIP_HANDLER
webgui
ICF Name
WEBGUI
webgui
Compression
ON
webgui
Active
YES
webgui
Path
/default_host/sap/bc/gui/sap/its/webgui
webgui
Text
SAP GUI for HTML
System Status
em/global_area_MB
Current Value
410
Global Memory (em/global_area_MB) Left
Current Value
151.70
zcsa/second_language
Current Value
E
ztta/diag_area
Current Value
250000
Personas3
Version
Version: 3.0-SNAPSHOT Build time: 2014-09-15 22:31:08
PERSONAS
Level
0
PERSONAS
Package
Kernel
kernel release
742
Kernel
kernel patch level
22Some of those, particularly the image issues, are familiar. Others not - I've never had issues with Chrome, for example. Does https work in other browsers? That would be very strange. Not working in all browsers sounds like a kernel installation issue.
There's a newer kernel now - pl24 was released just a day or two ago. There should be a new Personas client note tomorrow. I suggest applying both of those to see if any of your issues go away. If not, ask here again, but also create OSS messages for them to make sure they don't get lost.
Steve. -
Inconsistent behaviour of the response
Hi Everyone,
We have a very weird problem here. Our application is a servlet based app using iPlanet Enterprise 4.0 application server. The servlet response acts very inconsistent when we try to change the response type from text/html to something else in the application(to res.setContentType("application/vnd.ms-excel") for example). Sometimes it works but most of the time instead of opening results in MS Excel, output is being rendered as an HTML.
Does anyone have any suggestions?
Any help will be greatly appreciated.
Thanks,
YMFirst of all I am setting the response type by
calling
res.setResponseType("application/vnd.ms-excel");Then I call some classes to query the database and
return the ResultSet, which I then pass to the
formatting classes to create an HTML page and write
the ResultSet in the form of an HTML table inside the
page. After that's been done, I get PrintWriter out
of the response and writing the page by calling
PrintWriter out = res.getWriter();
out.print(formatted_HTML_page);
Sorry, I meant res.setContentType -
Storage Standby Inconsistent Behaviour (hdparm -S)
Well hi folks, I have a bunch of ata/sata drives.
-M acoustic = not supported
-B APM_level = not supported
-k DIO_GET_KEEPSETTINGS failed: Inappropriate ioctl for device
If i apply -S 60 (5 min) it works out very well.
But any value higher than 120 won't spin down the drives at all.
Apparently i'd like to set 240 (20 min). 60 is too low.
I've tried hdparm -K 1 as well as smartctl -s off --offlineaouto=off --saveauto=on
With mounted partitions or not. With systemd oneshot unit or
the udev rule mentioned in the wiki. Fstab commit=600 or 1200.
Or should i apply these commands in any specific order?
On top of that, i have a feeling they used to work with -S 120.
But on a random basis. Totally arbitrary behaviour.
I use hddtemp /dev/sd? to check the state.
Still i can't pin point the reason why. At this point it seems incomprehensible to me.
Where should i look next?
Last edited by Xelvet (2014-05-16 12:46:37)Now there's been some development. If i leave the freshly booted sys alone,
standby performs as expected, apparently.
I have some reasons to beleive all this mess caused by that mf Wine.
winecfg alone wakes up all standby storages immediately for no f reason.
i do use wine all the time for my charting platform.
but this doesn't explain why the hdd standby is being prevented.
Last edited by Xelvet (2014-06-05 19:52:03) -
Annoying inconsistent behaviour
On many edit pages, there is a Apply Changes button and Next (>) and Previous (<) buttons
On some pages, the next/previous buttons apply changes to the current page and then go the next/previous page.
On some pages, clicking the next/previous button pops up a Javascript box 'Are you sure you want to lose your changes?' without giving me an option to Save and continue.
On some pages, it silently discards my changes and moves to the next/previous page!
Can this please be fixed so the behaviour is intuitive and consistent?
Thanks1. The Process edit page (4000:4312). If I make changes to my process code and click the 'Next' button, it silently discards my changes
2. Item edit page (4000:4311) This has a good interface. The next/previous buttons apply changes and then go to the next/previous page
3. I cant remember now which page pops up the Javascript box. But there is definitely a page in the App Builder which does this.
Thanks
Maybe you are looking for
-
sorry cant think what details you may require, the problem is simply that I had bookmarks and when I upgraded to the latest edition of Firefox they were gone. I understand this is a common prob. and if i only knew what the devl I was doing i'm sure i
-
Windows recognizes iPod but it doesn&#146;t charge
Hi, can anyone help me? When I connect the iPod the PC recognizes it and starts to synchronize with iTunes, but the charging icon appears full with a lighting bolt and it is not animated. After a while the when the battery is low, the iPod turns off
-
Javax.mail.MessagingException
HI all, i am new to this area and currently i am working on email messaging application. in here i have set up an SMTP server and every thing, but finally it gives following exception javax.mail.SendFailedException: Sending failed; nested exception i
-
Why does my USB headset stop working after an hour?
I've tried both a standard headset with USB adapter AND a USB headset directly in both a Intel iMac and a PowerMac G5 and every occasion after approxiamtely one hour the mic feature begins to fail. The headphones seem unaffected. Any clues?
-
Pen tool selection acting strange
So, lately Photoshop has been getting into the habbit of erasing my tool's settings. The latest in such events is the Pen Tool. After I trace a path around an image like the one below, I right click and choose "Make Selection". To my horror, I fin