Responsive object test not working

I am working on a tutorial found in the AS Bible for flash 8
which is suposed to create a square which responds to your mouse
movement by dragging part of the square to change it's shape.
The script works partially, but not all the way. When loading
initially the square is already altered and doesn't respond to the
mouse to change it's shape.
There is also a portion of the script which changes the color
of the square when you mouse over a menu on the left hand side and
this works fine.
Here is my code:
import DrawingUtilities;
var aColors:Array = [0xFEEFD6, 0xEDFED6, 0xDED7FD,
0xFED6ED, 0xFFD5D5];
var nSelectedColor:Number = aColors[0];
var oSides
bject = new Object();
var oColors
bject = new Object();
var mCurrent:MovieClip;
var nInterval:Number;
oSides.mRight = {y:0, x:110, rotation:90};
oSides.mBotom = {y:100, x:0, rotation:0};
oSides.mLeft = {y:0, x:0, rotation:90};
oSides.mTop = {y:-10, x:0, rotation:0};
makeColorOptions(aColors);
makeBoxAndSides(aSides);
drawSquare();
function makeBoxAndSides():Void{
this.createEmptyMovieClip("mShape",
this.getNextHighestDepth());
mShape.createEmptyMovieClip("mBox",
mShape.getNextHighestDepth());
var mSide:MovieClip;
var duDrawer: DrawingUtilities;
for (var sSide:String in oSides) {
mSide = mShape.createEmptyMovieClip(sSide,
mShape.getNextHighestDepth());
duDrawer = new DrawingUtilities(mSide);
duDrawer.lineStyle (0,0,0);
duDrawer.beginFill(0,0);
duDrawer.drawRectangle(100, 10, 50, 5);
mSide.useHandCursor = false;
mSide.onRollover = function():Void {
if(mCurrent == this) {
return;
resetSide(mCurrent);
mCurrent = this;
this.startDrag(true);
nInterval = setInterval(drawSquare, 10);
resetSide(mSide);
addBoxMethod();
drawsquare();
mShape._x = Stage.width/2 -mShape._width/2;
mShape._y = Stage.width/2 -mShape._height/2;
function resetSide(mSide:MovieClip):Void {
mSide._y = oSides[mSide._name].y;
mSide._x = oSides[mSide._name].x;
mSide._rotation = oSides[mSide._name].rotation;
mSide.stopDrag();
clearInterval (nInterval);
function makeColorOptions (aColors:Array) :Void {
for (var i:Number = 0; i < aColors.length; i++) {
mSwatch = this.createEmptyMovieClip(
"mColorSwatch" + i, this.getNextHighestDepth());
oColors[mSwatch._name] = aColors
duDrawer = new DrawingUtilities(mSwatch);
duDrawer.beginFill(aColors, 100);
duDrawer.drawRectangle(15, 15, 7.5, 7.5);
duDrawer.endFill();
mSwatch._x = 30;
mSwatch._y = 20 * i + 30;
mSwatch.onRelease = function():Void {
nSelectedColor = oColors[this._name];
drawSquare();
function drawSquare():Void {
var oRight
bject = {x:mShape.mRight._x - 10,
y: mShape.mRight._y};
var oBottom
bject = {x:mShape.mBottom._x,
y: mShape.mBottom._y};
var oleft
bject = {x: mShape.mLeft._x, y: mShape.mLeft._y};
var oTop
bject = {x: mShape.mTop._x, y: mShape.mTop._y + 10};
var nMx:Number = mShape.mBox._xmouse;
var nMy:Number = mShape.mBox._ymouse;
switch (mCurrent._name) {
case "mRight":
if(nMx > 110) {
resetSide(mCurrent);
mCurrent = null;
if(nMx < 25) {
nMx = 25;
else if(nMx > 100) {
nMx = 100;
if (nMy < 25) {
nMy = 25;
else if(nMy > 75) {
nMy = 75;
oRight.x = 2*nMx - 100;
oRight.y = 2*nMy - 50;
break;
case "mBottom":
if(nMy > 110) {
resetSide(mCurrent) ;
mCurrent = null;
if(nMx < 25) {
nMx = 25;
else if(nMx > 75) {
nMx = 75;
if(nMy < 25) {
nMy = 25;
else if(nMy > 100) {
nMy= 100;
oBottom.x = 2*nMx - 50;
oBottm.y = 2*nMy - 100;
break;
case "mLeft":
if(nMx < -10) {
resetSide (mCurrent);
mCurrent = null;
if(nMx < 0) {
nMx = 0;
else if(nMx > 75) {
nMx = 75;
if(nMy < 25) {
nMy = 25;
oLeft.x = 2*nMx;
oLeft.y = 2*nMy - (.5 * 100);
break;
case "mTop":
if(nMy < -10) {
resetSide(mCurrent);
mCurrent = null;
if (nMx < 25) {
nMx = 25;
else if (nMx > 75) {
NMx = 75;
if(nMy < 0) {
nMy = 75;
oTop.x = 2*nMx - (.5 * 100);
oTop.y = 2*nMy;
break;
mShape.mBox.clear();
mShape.mBox.lineStyle(0, 0, 100);
mShape.mBox.beginFill (nSelectedColor, 100);
mShape.mBox.curveTo(oTop.x, oTop.y, 100, 0);
mShape.mBox.curveTo(oRight.x, oRight.y, 100, 100);
mShape.mBox.curveTo(oBottom.x, oBottom.y, 0, 100);
mShape.mBox.curveTo(oLeft.x, oLeft.y, 0, 0);
mShape.mBox.endFill();
updateAfterEvent();
I was hoping someone could see what is going wrong
here.

Look in Edit > Preferences.  One of the screens there has a check box for Export Audio and that may be unchecked.

Similar Messages

  • Authorization Object is not working when report is modified.

    Hi BW Guru's
    We have Company Code as Authorization Object .and we have 3 company Codes (xxxx,yyyy,zzzz).where the users under Company code xxxx are not supposed to view company code yyyy,zzzz data etc.
    I modified an existing Report and transported to production.But the Authorization Object is not working for that report.The Report is defaultly displaying all the company codes data(xxxx,yyyy) for all the users.But for the other reports its(company code ) is working fine.
    What could be the problem?Is theproblem in transporting the objects.But i transported all the objects inluding auhorization object.
    Please send me the solution as it is very much urgent.
    The solution will be def. awarded with full points.
    Regards
    Sanjay

    hi Sanjay,
    please don't post the same question again, check and response back from your previous thread
    Re: Authorization Object is not working when report is Modified.
    hope this helps.
    would be nice if you reward for helpful answers to all of your previous postings, e.g
    docs related to RRI

  • Calling test sequence from CVI DLL that use ATL COM object does not work

    I am trying to call some DLL function writen in CVI from teststand. The CVI DLL is using ATL COM object(Written by me).
    The ATL COM object making instance of several ATL COM object inside it (including two controls that contains dialog). If I use a client writen in VC++ 6 and use the ATL COM (writen by me) works perfectly. But if I try to use it from CVI DLL it does not work any more.
    What is wrong? The client is passing an IUnknow interface to my component. Can anybody explain me what is wrong?

    It is not clear from your question as to what is specifically failing. If possible, one option would be to remove TestStand from the picture and see if the problem still occurs using a CVI EXE that invokes the CVI DLL.
    Scott Richardson - NI
    Scott Richardson
    National Instruments

  • Automated Composite build/test not work with non-default version

    Hello,
    I have a BPEL composite and I am trying to setup maven and soapUI to build, deploy, test, and upon successful test, set it as the default version. The difficulty I am having is testing the composite before it becomes the default version. I am able to hit the endpoint using the full URL with the randomly generated ID in it using soapUI (see below), but not by using the shortened URL.
    Full URL: http://soabpm-vm:8001/soa-infra/services/default/Project1!0.0.12-SNAPSHOT*soa_13954572-b91f-480d-88d2-037e92083d72/bpelprocess1_client_ep
    Shortened URL: http://soabpm-vm:8001/soa-infra/services/default/Project1!0.0.12-SNAPSHOT/bpelprocess1_client_ep
    I tried hitting the shortened URL outside of the maven build, just using soapUI, and the response is empty. However, if I then mark this new version as default (through EM), and then mark a previous version as default (let's say 0.0.11), then the shortened URL for 0.0.12 can be successfully hit.
    It seems to me then that before the shortened URL above can be used, that specific version must have been set as the default version at some point. This would make an automated maven/soapUI test of new version (but not default) quite difficult, as it would have to somehow retrieve the full URL.
    Is this a bug or can it be fixed with a config setting change?
    Here are the steps in the process, maven build (using the Oracle provided ant sca files):
    1. Compile
    2. Package
    3. Deploy, not as default
    4. Test the new version (using soapUI plugin)
    5. If successful tests, mark new version as default
    The problem is with step 4, can't determine what the full URL is and the shortened URL does not work.
    Thanks
    Ben

    I found a similar issue in Oracle's support site, Patch 13774839 (based on bug 13569816). I will try that out and post the results here.

  • Hyperlink to open a business object is not working in archived printlist

    Hi
    I have archived a print list in my custom http content repository.
    Generated the indexed print list by running program OACONTA4.
    Archived data file has following lines
       \PCOL5H\PHYP<<BUS2012   \PCOL0H \PHYP>>   \PCOL2HPurchase Order                         
    IDARC1<OBJTYPE>BUS2012<OBJKEY>4500000001<METHOD>DISPLAY \PCOL0H  \PCOL4H4500000001                                       
    \PCOL0H  \PCOL2HZODTIF    \PCOL0H    \PCOL2HTest Image Documents               
    \PCOL0H  \PCOL5H\PHYP<<ZW            DE0978D42F2FA9F1AEDE0019B934DDB9       \PHYP>>
    IDARC1<OBJTYPE>IMAGE<OBJKEY>ZWDE0978D42F2FA9F1AEDE0019B934DDB9<METHOD>DISPLAY                                                                            
    \PCOL0H  \PCOL2H23.02.2009\PCOL0H    \PCOL2H         
    I am able to open archived print list using OADR.
    The hyperlinks in archived file are highlighted with different color  and cusror change when moved to "BUS2012" or "ZW            DE0978D42F2FA9F1AEDE0019B934DDB9       "
    Here "DE0978D42F2FA9F1AEDE0019B934DDB9" is archived document Id
    "4500000001" is purchase order number
    "ZW" is content repository
    "ZODTIF" is document type.
    But when I try to open the business object or the document, nothing happens.
    Then I changed the DARC line in the data file in repository to
    IDARC0ZW        DE0978D42F2FA9F1AEDE0019B934DDB9       
    After this I was able to open the document from link.
    Can anybody help on this? Why hyperlink is not working to open a business object
    Version details :
    SAP ERP ECC 6.0
    SAP NW 7.0
    References :
    http://help.sap.com/saphelp_40b/helpdata/pt/4f/9938ff446d11d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/4f/9938ff446d11d189700000e8322d00/frameset.htm
    Thanks in advance !
    Ruhi

    Uninstall the ASK toolbar from addons and problem ll be solved.
    Tools>> addons >> uninstall ASK /Foxit toolbar >> Problem solved

  • Flash Object is not working in Mozilla firefox 3.6 and safari

    Hi All ,
    I am facing issue in Flash , my Flash application functionality is working fine in IE all versions and Chorme , but it is not
    working properly in mozilla Firefox and safari as well .
    The Problem is when i am using mousewheel scroll at the centre of the mouse to scroll down to the bottom of the page and again revisit some
    portion of flash the mouseOver functionality is getting lost and it is expecting a click to gain the focus .
    Can any body help me on this .
    please provide some suggestions on what need to be done to solve this issue
    regards,

    Hi, I don't know about the mouse issue, but go here and test :
    http://www.adobe.com/products/flash/about  Use your Firefox browser when you test, perhaps you need the plug-in. Whatever the
    test tells you to do, do it. Then check your websites and see if that works.
    Thanks,
    eidnolb

  • Macbook dies after 2008-005 security update: even hardware test not working

    My Macbook no longer boots after installing security update 2008-005. Behaves as if HD is dead, AND as if boots from SuperDrive are broken too.
    Sequence of events:
    1. 10.5.4, Software Update notifies me of update.
    2. I permit it. Immediately requires a reboot.
    3. Go away for several hours.
    4. Upon return, I notice the Leopard outer-space background.
    5. Spinning beachball when I move the mouse.
    6. Go away for several minutes.
    7. Return. No change. Power down computer.
    OK ... by now, you may be saying that it might still have been updating and I shouldn't have interrupted it.
    But since then, the machine behaves not only like the disk is dead, but I can't even get a hardware test to run from DVD.
    So, to continue.
    8. Start machine again. Apple boot sound. Nothing on screen.
    9. After a while, flashing "folder" icon with question mark.
    Since then I've attempted to boot in safe mode, verbose mode, FireWire target disk mode (against a 10.4.x box), boot from original install disk, boot into hardware test mode from original install disk. None of these things worked. I've reset the PRAM.
    The only diagnostic activity of all of these that has produced any different feedback is the PRAM reset (which sounded the Apple boot sound a second time). Everything else does not work. If the HD was dead, I could understand that none of the attempts to boot into FireWire target disk mode, or to boot from DVD and then expect to see the HD mount in some way, would work. But since it doesn't even boot the hardware test from the DVD, I'm really baffled. Any ideas? Thanks.

    Well, my solution was to buy DiskWarrior and copy what I could (which was a lot, thankfully) to a FireWire external disk, then reinstall. DiskWarrior reports S.M.A.R.T. status OK, so I've gone with a fresh partition in Disk Utility and successfully installed 10.4 from the original DVDs.
    Have also run Apple Hardware Test and had no problems, so I've decided to trust the drive in the short term.
    Unfortunately, now, 10.5 upgrade disks won't finish and guess what ... a partial install of 10.5 breaks the 10.4! So, the machine has a recognizable startup disk but justs sits in a loop rebooting itself, presumably as it hits some inter-10.4/10.5 state and gives up.
    Next up I tried to restore my 10.5 from a wired ethernet connection to my Time Capsule. Having never once been able to browse my backups in Time Machine under 10.5, I was somewhat surprised to find that the 10.5 Installer was happy to let me try a restore from the Time Capsule. It crunched away until it was happy that I had enough space on my new partition, and then did what seemed a pretty instantaneous restore. The Macbook reboots and ... can't see the startup disk.
    Maybe my disk really is on the way out.

  • Pdf object postMessage not working in FF 22

    Hi,
    After updating my FF to 22, i seen pdf object postMessage function does not working. We used adbove livecycle intraactive pdf forms to collect the data from the user.
    When user click the save button from the pdf, postMessage function called, but after update this not getting execute.
    For your reference i include the URL which also had the same problem. I also tried without addons.
    Refer: http://www.windjack.com/WindJack/Browser2PDF/brwsr2acroJS.htm
    HTML to PDF => works
    PDF to HTML => not working (in earlier versions it worked)
    Thanks n Regards
    Mathan

    This is likely the fault of Livecycle Interactive. Most likely, Adobe has not yet provided an update for supporting Firefox 22. I would recommend informing adobe support about it.

  • Manual Authorisation Objects is not working

    Hi Experts
    I have created a manual object in that i have added 2 fields
    VKBUR
    VKGRP
    ACTVT
    The same i have added in su24 also and marked yes for checking also.
    But when i making the transaction it's not working. i need your suggestion how to control the transactions thru manual objects.
    Thanks in advance
    Regards
    Venkat

    Hi,
    Maintaing SU24 does not insert the required auth check code in the program behind a transaction, it mainly controls the objects and default values that appear in the authorisations tab when assigning transactions to roles. Although it is possibe to deactivate a check from SU24 as well.
    Speak to your developers about introducing the neceesary auth checks for your required object, that is the only way that it would work.
    If you search the forum you will find quite a few posts around the maintenance and use of SU24.
    Regards

  • Client Link Test Not Working

    I can not get the link test to work with any of my clients.  I am using WCS 6.0.170.0,
    the WISM is my DHCP server and we requires all users to use WPA 2 to connect.
    For some reason I am not able to ping any of the clients or run a link test.  I have not be able to figure out why.  Can someone provide me with some insite?
    Thanks
    Mike

    Hi Mike,
    I posted this on my site about client link. Take a gander... Your clients need to be CCX v4 or newer
    http://www.my80211.com/home/2009/11/15/cisco-wlc-linktest-how-well-does-the-ap-hear-your-client.html
    If you find this helpful kindly rate the post ...

  • Align to pixel grid for new object does not work

    I have set my document to align new objects (shapes) to pixel grid under the advanced settings
    I have gone into the options on the transform panel and set the check box to say all new objects should also align to pixel grid
    But when I create a shape it doesn't work, I end up with shapes with 3 digit decimal sub pixel sizes. eg. 34.536px
    If I want an object to align to pixel grid I'm having to set it individually for each object.
    Is this a bug that will get fixed or is there some work around, it's frustrating to have to set the feature for every single object I create

    Align new Objects to pixel grid setting works perfectly for all tools in Adobe Illustrator CC (17). In Illustrator 2014 CC (18) the rectangle and rounded rectangle tool do not automatically align to pixel.
    This thread says it's because of the new Live Rectangle tool objects are exempt from the Align to Pixel grid until you release them by expanding them.
    Bug? Illustrator CC 2014 and Pixel Grid settings not working.
    I'll be using the old version until Adobe 'fixes' this.

  • Object state not working on android

    Hope someone can help.
    We use a + sign to indicate there is more information, using object states to move between these 2 elements, however whilst these work fine on iOS devices, when the same files are built for Android these states do not work.
    Press one of the + signs and it just vanishes, without going to the new content.
    Any clues, please.

    Are you using the legacy AIR viewer or the native Android viewer? Try the new native Android viewer instead. https://helpx.adobe.com/digital-publishing-suite/help/building-android-apps.html
    Neil

  • HELP URGENT - Entity Object Substitution not working as advertised!!!!!

    Hi All,
    I have done an entity Object substitution and in order to rule out any coding errors on my part I have generated a fresh EO with no code changes in it and uploaded the files to java top and updated the MDS with the substitution.
    The substitution is successful but I get the following error related to my substituted file:
    oracle.apps.fnd.framework.OAException: oracle.jbo.AttrValException: JBO-27019: Get method for attribute "ItemNumber" in XxEgoMtlSystemItemsVLEOEx could not be resolved. at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169) at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3241) at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3036)
    ## Detail 0 ## java.lang.ClassCastException: oracle.jbo.server.EntityDefImpl incompatible with oracle.apps.fnd.framework.server.OAEntityDefImpl at oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEOImpl.getDefinitionObject(EgoMtlSystemItemsVLEOImpl.java:562) at oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEOImpl.getItemNumber(EgoMtlSystemItemsVLEOImpl.java:11324) at oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEOImpl.getAttrInvokeAccessor(EgoMtlSystemItemsVLEOImpl.java:6888)
    I think the real error is Detail 0 line but I haven't seen this before. Could this be the wrong version of JDeveloper that I have used????? About this page showed 12.1.2 and I have downloaded the JDev for 12.1.2???????
    Please help I need to sort this ASAP.
    Thanks all

    I have covered everything in the above threads and followed the EO substitution scenario exactly as per area51.
    I am now getting a different error on the EO substitution, when the page loads that creates a row in the EO the following error is displayed:
    Error
    1. Attribute set for InventoryItemId in view object EgoMtlSystemItemsVO failed
    2. Attribute set for InventoryItemId in view object EgoMtlSystemItemsVO failed
    3. Attribute set for InventoryItemId in view object EgoMtlSystemItemsVO failed
    4. Attribute set for InventoryItemId in view object EgoMtlSystemItemsVO failed
    This is a caught error and thrown to the top of the page as opposed to a complete stack error which is what I was getting before? At first I thought this was due to the VO substitution I had done earlier as a test but I have deleted the substitution document for the VO sub and if I remove my EO substitution the page works fine so my EO substitution is causing the problem.
    EO substitution was as follows:
    <Substitutes>
    <Substitute OldName ="oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEO" NewName ="xxsdg.oracle.apps.ego.item.eu.server.XxEgoMtlSystemItemsVLEOEx" />
    </Substitutes>
    Beginning of EO Code is as follows:
    package xxsdg.oracle.apps.ego.item.eu.server;
    import oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEOImpl;
    import oracle.apps.fnd.framework.server.OAEntityDefImpl;
    import oracle.jbo.AttributeList;
    import oracle.jbo.domain.Date;
    import oracle.jbo.domain.Number;
    import oracle.jbo.domain.RowID;
    import oracle.jbo.server.AttributeDefImpl;
    import oracle.jbo.server.EntityDefImpl;
    // --- File generated by Oracle ADF Business Components Design Time.
    // --- Custom code may be added to this class.
    // --- Warning: Do not modify method signatures of generated methods.
    public class XxEgoMtlSystemItemsVLEOExImpl extends EgoMtlSystemItemsVLEOImpl {
    public static final int MAXATTRCONST = EntityDefImpl.getMaxAttrConst("oracle.apps.ego.item.eu.server.EgoMtlSystemItemsVLEO");
    public static final int GLOBALATTRIBUTE11 = MAXATTRCONST;
    public static final int GLOBALATTRIBUTE12 = MAXATTRCONST + 1;
    public static final int GLOBALATTRIBUTE13 = MAXATTRCONST + 2;
    public static final int GLOBALATTRIBUTE14 = MAXATTRCONST + 3;
    public static final int GLOBALATTRIBUTE15 = MAXATTRCONST + 4;
    public static final int GLOBALATTRIBUTE16 = MAXATTRCONST + 5;
    public static final int GLOBALATTRIBUTE17 = MAXATTRCONST + 6;
    public static final int GLOBALATTRIBUTE18 = MAXATTRCONST + 7;
    public static final int GLOBALATTRIBUTE19 = MAXATTRCONST + 8;
    public static final int GLOBALATTRIBUTE20 = MAXATTRCONST + 9;
    public static final int ROWID = MAXATTRCONST + 10;
    private static OAEntityDefImpl mDefinitionObject;
    /**This is the default constructor (do not remove)
    public XxEgoMtlSystemItemsVLEOExImpl() {
    /**Retrieves the definition object for this instance class.
    public static synchronized EntityDefImpl getDefinitionObject() {
    if (mDefinitionObject == null) {
    mDefinitionObject =
    (OAEntityDefImpl)EntityDefImpl.findDefObject("xxsdg.oracle.apps.ego.item.eu.server.XxEgoMtlSystemItemsVLEOEx");
    return mDefinitionObject;
    /**Add attribute defaulting logic in this method.
    public void create(AttributeList attributeList) {
    super.create(attributeList);
    ....

  • Why is my test not working?

    Hello All,
    I have a Arraylist whuch when printed out looks like this:
    [id, firstname, middlename, , LlastName]
    and I have a if statement like so
    if (Arraylist.contains(" ")){
    System.out.println("it works");
    }why does this not print out the line I want when there is a blank space in my Arraylist?
    Thanks
    Boggis

    The method you are invoking checks if the Object specified as parameter is one of the elements inside the ArrayList.
    e.g.:
    String s1 = "hello world";
    String s2 = "foo.com";
    String s3 = "testing";
    String s4 = "do not add this string to an ArrayList!";
    ArrayList list = new ArrayList();
    list.add(s1);
    list.add(s2);
    list.add(s3);
    if(list.contains(s1)) {
       System.out.println("list contains s1");
    else {
       System.out.println("list doesn't contain s1");
    if(list.contains(s4)) {
       System.out.println("list contains s4");
    else {
       System.out.println("list doesn't contain s4");
    }this example code will result the following outputs:
    list contains s1
    list doesn't contain s4The method is not used to check if an element of the ArrayList contains a special String!
    To check this you might use some code like this:
    ArrayList list = new ArrayList();
    // populate the ArrayList ...
    for(int i=0; i<list.size(); i++) {
       String test = list.get(i).toString(); // list.get(i) will return an Object
       if(test.indexOf(" ") == -1) {
          System.out.println("list element at index " + i + " doesn't contain \" \"");
       else {
          System.out.println("list element at index " + i + " contains \" \"");
    }

  • Agentry reload object collection not working properly

    Hello Experts.
    I am quite new to Agentry Development and is really struggling with refreshing a local collection on the client used for a list display.
    I am using a version 6.0.14 Agentry Server (stand-alone) and a version 6.0.38 ATE for testing the client.
    I have created an item collection in the main object.
    In a detail screen I have 2 fields for searching out the item values to be displayed.
    When clicking an action button, an action is executed which deletes the content of the collection and afterwards filling the collection with proper values (from a complex table).
    The filling part work perfectly and the first time it is called the collection is populated correctly and displayed in a listview control on a subsequent detail screen.
    If I close the screen (and return to the search screen) and execute the action again the delete loop seems very unstable.
    The delete loop is a subaction step which loops over the collection and calls a delete transaction for each record.
    I have set the flag for 'Discarding pending transactions' meaning that added transactions will be removed from the transaction queue if a delete is subsequently issued for the same key.
    I have tried:
    - Looping over the collection (unconditionally) and then deleting every record.
       This turned out to only delete every second record from the collection, which caused an error in the loading step because now some of the records already existed.
    - Then I have tried to make a loop while 'a condition is true'. Here I check that the collection is non-empty in which case I delete the first record.
       This actually seems to delete the entire collection (inspected in ATE). However when reloading the collection errors are issued stating that some objects are actually present. Sometimes a few objects seem to get stuck in the transaction queue with an empty key value on the header level, and these are also treated as existing in the collection.
    - I have added the EmptySteplet in the update step of the transactions, with a 'Delete from client'. This means that when I do a transmit the entire transaction queue, for this object, is emptied.
      This is however not feasible, because I then need to make a transmit everytime, the user want to make a new search.
    I am really stuck and unable to find a proper solution for this problem.
    To me it looks really simple: I have a collection that I want to delete and reload with new values.
    It should not be that complicated.
    I hope someone has a suggestion for me.
    Thank you and best regards,
    Søren Hansen, Dong Energy, Denmark

    Soren,
    The ATE (Agentry Test Environment) is buggy at best.  Unfortunately this is the client that receives the least attention from the Agentry developers, even though it is the most important to those creating mobile applications with the platform.  The Edit to clear an empty collection should work fine, and probably does on normal clients.  Here is a solution to your last point about taking a while to send up the transactions.  To avoid the transaction queue filling up, there is another safe way to delete objects from a collection, just not as simple:
    Create a sub-action step of type: Execute while rule is true
    In your execute rule, check to make sure there is at least one object in the collection.  Use the TYPE function which acts as a boolean WHERE EXISTS check:
    TYPE
         MyCollection -> First Object
    The above will return Boolean "True" if there is at least one record in the collection, or "False" if not.
    Then for the Action target, use: MyCollection -> First Object.
    This will pass the first object in the collection to the action.
    The tied-in action should run a delete transaction against whatever type of object resides in MyCollection.
    Finish with a single Apply to commit the deletes in the parent action.
    This will safely keep deleting objects until the rule returns false.  This is an alternative to looping over the collection as you tried previously.  That doesn't work as you found.  Trying to delete things out of the collection the outer loop is using causes problems.
    Jason Latko - Senior Product Developer at SAP

Maybe you are looking for

  • Is there any way to create custom views, like in Thunderbird & Evolution?

    Hi Folks, I have recently switched to Mac. Before this I was using Linux. For mail I used Thunderbird (TB) for many years, and then eventually switched to Evolution Mail (EM) for its smoother integration into Linux. On both TB and EM I revolved my wo

  • ITunes helper and qttask do not appear in my startup files menu

    Troubleshooting iTunes not recognizing my iPhone anymore (always worked in the past), after downloading the new iTunes and new iPhone software. Have uninstalled and reinstalled iTunes twice and followed as much of the online troubleshooting as I coul

  • Expense charge account not defaulting

    Hi All, One of the user getting the following error, Row 1 Charge Account - Charge account is invalid. (Program error: An error has occurred while looking up a flexfield segment combination. Please inform your support representative that: The FND_FLE

  • Price changes of a material

    Hi all, I need to list the whole price changes of a material that we purchased from suplliers. How can i get these data, ie from which tables? Thanks in advance. deniz.

  • Reverse Engineering from .fmx file?

    Is it possible to recover a corrupt .fmb file from the .fmx file? Somehow, my .fmb file got corrupted and I can no longer access it; however, the .fmx file seems to be OK. Is there any way I can get that .fmb file back? Thanks for your help.