[AIR 3.0] New JSON functionality doesn't work in FlashPro: Error #1065: Variable JSON is not defined

After upgrading the AIR SDK to 3.0 in Flash Professional CS5.5 I've found some problems.
First, the JSON class in the as3corelib.swc library now throws a couple of compile errors:
1061: Call to a possibly undefined method decode through a reference with static type Class.
1172: Definition com.adobe.serialization.json:JSON could not be found.
At first I was completely puzzled, since I had the proper "import com.adobe.serialization.json.JSON;" reference,
and I had the "as3corelib.swc" referenced in my ActionScript Properties, so how could that not be found?
Then, I found out that's because it conflicts with the new internal JSON class included with AIR 3.0
(maybe it should have been called something else, to avoid conflicts with Adobe's own as3corelib library).
The new native JSON class doesn't have the decode() method. Now it's called parse()
Ok, so I've tried using the new JSON class, but after changing decode() with parse() and removing
the "import com.adobe.serialization.json.JSON;" reference, Flash tells me that "Variable JSON is not defined".
Really? The JSON class is showing in the Flash Builder code completion popup,
complete with its all-new parse() and stringify() methods! So why does it say it's not defined?
Also, my SWF file gets compiled with no errors at all, so that verifies that the new 3.0 libraries are in place.
I only get the "JSON is not defined" error at runtime in ADL, not at compile time. Why?
In order to upgrade to the AIR 3.0 SDK, I've followed this guide:
http://kb2.adobe.com/cps/908/cpsid_90810.html
I know that's about upgrading to AIR 2.7, but I suppose the steps to upgrade to AIR 3.0 would be very similar,
only with the AIR3.0 SDK package, instead of 2.7.
I also took care to type version="13" in all the XMLs, instead of version="12" as stated in that guide, which is meant for 2.7.
Also, I followed this advice about adding -swf-version=13 in the Project Properties window in Flash Builder:
http://blogs.adobe.com/cantrell/archives/2011/08/how-to-use-the-air-3-beta-sdk.html
But that doesn't seem to make a difference, since, even though I use Flash Builder for code editing (which is usually used for Flex),
my project is a Flash Professional project, not a Flex one, and when testing the project, Flash Builder runs Flash Professional
to compile and then runs adl.exe (it's the same as if you click the option "Control / Test movie / in AIR Debug Launcher (Mobile)" inside Flash Pro).
In the "ActionScript Settings" window in Flash Professional, I also have the proper airglobal.swc referenced (from the AIR 3.0 SDK),
and the same airglobal.swc is referenced in Flash Builder as well (in "Referenced Libraries"), to get proper code completion.
I've tried all sorts of things to try to get it to work, but no luck. Still get the "JSON is not defined" error at runtime.
I'm starting to get desperate about this. I'm going to have to revert back to AIR 2.7.1, to stop wasting time on this issue.
BTW, I'm also having another unrelated problem (though maybe it happens because of the same reason as the other problem).
Now Flash Builder underlines the getTime() method in my code, as if it no longer were a method of a Date class instance.
I have a line where I ask for the timestamp like this:
ts = new Date().getTime();
That has worked perfectly fine up until now with AIR 3.0.
Now, when hovering the mouse cursor over the orange "(?)" icon that appears at the left, Flash Builder tells me
"Access of undefined property getTime". Why?
The AS3 documentation doesn't say anything about getTime() getting deprecated of anything of the sort:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html
In fact, in the code completion popup that Flash Builder shows, now there isn't any mention
of get or set methods, as you can see here:
I suppose I can use the .time property instead of .getTime() but I don't know why I'm not getting all the methods I had available before.
Any ideas why all this is happenning? Specially the dreaded "JSON is not defined" error.

Well, after much tinkering, I think I've finally found a way to finally make it work!.
I've created some modified XML files with the profiles needed for AIR 3.0 and after a lot of tries, it finally works!
I've uploaded them here: http://www.mediafire.com/?d5e761frl5px4
These are the steps needed to get AIR 3.0 running properly:
Put all three files into the folder "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Players"
Then, make sure you've unzipped the AIR 3.0 SDK into the folder "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR3.0" Do not overwrite the contents of the "AIR2.6" folder, as suggested by the "Overlay AIR SDK" article (linked in the above post). It gave me problems. It's best to use a different separate folder. My XML files point to that new "AIR3.0" folder.
Inside the folder "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0" create a new folder named "AIR3.0". Inside that folder, copy the file "airglobal.swc" located at "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR3.0\frameworks\libs\air".
Finally, you will have to keep the file "descriptor-sample.xml" in the "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR2.6\samples" folder, but change the xmlns attribute to "http://ns.adobe.com/air/application/3.0"
Yes, you have to change that inside the AIR2.6 folder even if the SDK has been put into AIR3.0. That's because of how the publish settings work in Adobe Flash. It's hardcoded into a DLL, so that can't be changed. Not very intuitive.
I think AIR SDK installations should be a lot more straightforward than this! I know Adobe AIR is meant for developers, not for final users, but still, all these not very well documented upgrade procedures are a pain in the ***. I've wasted A LOT of hours in this (more than half a day), with what should have been a straightforward upgrade!
Adobe should make a SDK installer so we do not have to be tinkering with all these error-prone procedures each time a new update is released!
Well, I hope those XML files are useful to somebody and avoids further frustration.
Regards,
OMA2k
PD: BTW, I still have the .getTime() issue described in my above post, but it's not very important,
since I can still use the .time property. Still, it puzzles me why this is happening.

Similar Messages

  • Swf-version can be specified when using SDK 3.6? [ Error #1065: Variable JSON is not defined ]

    I've been using playerglobal.swc of flash player 11 and SDK 3.6.
    ReferenceError: Error #1065: Variable JSON is not defined
    can be solved by setting -swf-version to 13. (http://forums.adobe.com/message/3933620#3933620)
    However, swf-version is not available in SDK 3.6.
    Can native JSON be used?
    Otherwise, can com.adobe.serialization.json.JSON be used without name conflict?
    JSON (from ...\flex_sdk_3.6\frameworks\libs\player\11\playerglobal.swc(JSON))
    com.adobe.serialization.json:JSON (from ...\as3corelib.swc(com/adobe/serialization/json/JSON))

    anyone know the answer to this?
    how are we supposed to use the new player features with using the 3.x SDK?

  • Since I got my new fixed disk my scan function doesn't work (HP Photosmart Premium All-in-One-Drucker - C309g), what should I do

    since I got my new fixed disk my scan function doesn't work (HP Photosmart Premium All-in-One-Drucker - C309g), what should I do

    Check whether you have the latest driver:
    Printer and Scanner software available for download:
    http://support.apple.com/kb/HT3669?viewlocale=en_US

  • My new iPhone 4 doesn't work at all

    You are definitely not alone with your issues. I'm on my second iPhone 4 unit, and am still having the same problems. I've had proximity sensor insanity, battery draining after 8 hours of stand-by (NO USE, just sleeping) to the point that my phone goes into a coma and has to be plugged in to be revived, the grip of death dropping calls....
    But the single most irritating and infuriating problem is the signal strength/reception fluctuation. I share a house with two iPhone 3Gs users, and I had an original silverback iphone until July 2010. They all work fantastically well with no issues when I'm at home (where I am just about 24/7, since I work from home). *_My new iPhone 4 doesn't work at all.*_. Signal strength is all over the place. I did a test where I sat watching the bars showing signal strength for five minutes. In that time, I saw it switch from E (edge?) with full bars to 3G with full bars to 3G with 1 bar to 2 bars to 4 bars to 1 bar to "Searching." Then back to 3G, with degradation of bars from 3 to none, then E network appears again, this time with full strength. This all with the phone sitting on a table, not being touched by human hands.
    It seems that my iPhone is constantly switching actual physical networks, and as a result signal strength is all over the place from one 30 second period of time to the next. This drains the battery like crazy, and means that all incoming calls go to voicemail--usually without my phone ever ringing.
    The 3G phones in my house work great. The 1st G iPhone I have had since the week it came out worked great (though its battery doesn't hold much of a charge anymore, after three years). On my new IP4, games are awesome. The videos and photos are amazingly clear and high quality, and editing on the phone is out of sight. iPhone Apps rule. MobileMe syncs my contacts quickly and easy. The only thing I love more than the iP4 features is my iPad--it rocks.
    Everything works on my IP4 at home BUT THE ACTUAL TELEPHONE FUNCTIONS. This is unacceptable. In late August, after two weeks in which I had 4 minutes of phone use, the nice folks at the Apple store switched me to a new phone, no questions asked. The phone worked so much better, I could send texts and place calls most of the time (this was now the first part of September)...except that now that I was using my IP4 to make phone calls, I started having a problem with the proximity sensor during those calls. I'd be talking and my cheek would mute the phone, turn on speaker, open contacts and edit info (with gobbledygook), and of course, hang up on people.
    So around Sept. 18 I was told by Apple phone support to update to iOS 4.2, restore as new, and do two complete power up and drain down cycles. This would fix the proximity sensor and any other issues.
    Well, I would love to see if iOS 4.2 actually did fix the PS, but I can't get the signal strength to stabilize long enough to have an actual phone conversation. I'm back to watching the signal strength go up and down at random (with me touching/holding it carefully to avoid grip of death, and also when I leave phone on the table with screen lock off --no touching). It is back to switching between E network and 3G and varying strengths of wi-fi from my home network. This eats up battery from 100% to low enough to turn off in under 10 hours of standby (usually 6-7). Essentially, my IP4 is back to being unusable as a phone.
    So I did another long, involved call to Apple tech support on 9/18. They tell me that I have to turn off wi-fi, turn off 3G, turn off push/fetch and notifications, shut all apps (no multi-tasking) and do everything but switch my phone to airplane mode--and see if the battery holds up for 24 hours in standby. If that didn't work, I should restore from new, but not load any contacts or network or data or anything--just leave it as it would be out of the box new.
    As a test, I turned everything off as advised: 3G, wi-fi, push, etc. Now my battery life is back to normal, where I can have the IP4 on stand-by for up to two full days before needing a recharge. Fabulous. BUT IT'S NOT A SMART PHONE if I have to turn off 3G, turn off wireless, and not use email push and so forth.
    I'm so frustrated I could scream. I'm quickly coming to the conclusion that there is a significant flaw in the new iPhone. Or perhaps it is just an issue for iPhone 4 users in areas where the signal strength is marginal, or where there are two types of overlapping network coverage (E and 3G in my case). I know that the networks themselves are in good condition--though I'm in a semi-rural area, the state capital is 4 miles away, and I know they have a new tower and good coverage for the politicians and power brokers around town. The phone coverage area I live in has Edge network in the south part of the network area and 3G in the north part, which is the state capital. I'm right in between. Could this be the problem? AT&T says no, it's Apple's fault.
    Message was edited by: HighSierra

    So what to do besides complain? Troubleshoot?
    I just wonder if all of us who have had chronic signal strength and "Searching for network" issues that totally drain the battery might have something in common, despite being all over the world? I'm using wi-fi 95% of the time, and live in a semi-rural area with overlapping networks run by same carrier. Apple folks hinted that maybe in my area the network usage is nearing capacity (resulting in getting kicked off of 3G and down to E as new calls are placed that strain capacity). They also hinted there could be interference from mountains or other objects. But here's the thing--3G phones work fine, and my IP4 works fine when I'm away from home, usually in the capital city on strong 3G network. (When I say "works fine I mean the signal is good and calls go through, I haven't tested battery drain away from home yet).
    I have to conclude that the problem is the IP4 itself--something about the hardware or the software (namely, the way it connects to the phone network) is horribly wrong. Other folks who live in urban areas or with strong networks that (likely) aren't over-utilized don't seem to have this issue. After reading through these pages, it also seems the wi-fi may be a major culprit in draining the battery and in varying signal strength (this is from Apple phone support, which said that varying signal strength and the constant pinging off the home wi-fi is creating a "power struggle" and keeping the phone constantly looking for the best connection option). Mind you, 3G iphones on the same home network have no problems whatsoever.
    So while I'm not a technical expert, it seems like the problem HAS to lie in the differences in the way the IP4 connects to the cellular and/or wi-fi network. And since the connection/signal strength problem was "resolved" on my replacement phone, but then "broken" again by the software update of iOS 4.2, I'm leaning toward this being a software issue. I've offered to help Apple troubleshoot, and I'm trying to be patient--because the IP4 is a work of art and I've never had an issue with an Apple product before. But all they want me to do is restore, restore, reload, restore, and then drive 1 hour to the nearest Apple store (in Reno, NV) and get a new phone...and start the whole process over again. I don't have time for this, I need my phone back.
    I'm this close to trading in my beautiful but flawed IP4 for a 3G. Maybe I should just get a new battery for my original iPhone from 2007?
    I understand that Apple can't test for every possible variable of use all over the world, but they don't even seem to acknowledge that they have a problem with the IP4 that will not be resolved by replacing it with a new unit. They want me to believe it's a fluke, or it's just me...but I've been combing these threads and see a lot of people reporting the same issues I am--battery drain and wildly fluctuating signal strength issues, wi-fi problems, and dropped calls. Can't someone get on this? Because otherwise Apple is going to have to admit that their IP4 is not a good solution for people who live in areas of less than perfect signal strength or use wifi or whatever demonic combo I have in my home/work setting.
    Or people will have to do what I have done--if you who want the cool IP4 non-phone features, you will have to dumb down your IP4 in order to have it be even moderately useful as *a phone.* For $599 I expected better.
    My (temporary) workaround?
    To spare the battery:
    *Turn off wi-fi (which *****, because now I have to burn minutes when I'm at work using the email, downloads, safari, etc--and it's E network, so it's SLLOOOOOOOW)
    *turn off push and fetch, have mail get new messages manually
    *turn off data roaming
    To keep the signal somewhat stable (making it easier to complete calls and spare battery)
    *Turn off 3G (this leaves me on E network--fabulous, I had that with my 3 year old iPhone)
    *grip IP4 between two fingers placed at the top of the phone, away from death zone. Tough for us lefty phone users.
    *pray the free bumper will a) come soon and b) help. I'm not optimistic.
    To keep proximity sensor from going nuts and dropping calls, muting, turning on speaker etc:
    *use headset or bluetooth (unless you are also having one of the known bluetooth issues!)
    *keep phone pressed to one ear and don't move it a millimeter. Don't shift sides, don't hold phone with your shoulder, just keep it to one ear and talk fast).
    I'm about out of patience. I understand that lots of folks have and love their IP4s. I'd love to be one of those people. I'm open to suggestions and have spent many hours on phone with tech support, restoring my phone, reloading data and apps--there has to be a better way.
    Sorry for the thread-jacking, but someone from Apple has got to be following these threads--help us!
    null

  • Preview function doesn't work in Cap2

    I just installed Captivate2. In the project I'm working on,
    the Preview function doesn't work. Or rather, it works
    sporadically... sometimes it does, and --- much more often -- it
    does not. What happens instead is, the "generating slides" message
    appears, and the progress-bar begins, but then suddenly the
    message/progress window disappears, WITHOUT generating the swf file
    and without doing any kind of preview. It happens on all the
    various options of the Preview function.
    It does work about one time in every ten attempts.
    This surely isn't acceptable... Anyone else encountering
    this???

    Hi UncleErnie
    By chance have you fiddled with the slide properties of any
    of the slides? One of the new options available in version 2 is to
    apply navigation options that cause slides to behave certain ways.
    So it stands to reason that if a slide was configured to jump to
    the end of the movie and the end of the movie option was to close
    the movie... Well, hopefully you see what I mean.
    Another question I would have is where are you editing your
    project? Are you possibly saving it to the company LAN and editing
    it using Captivate to make edits while in that location? If so,
    this is normally bad practice. Try moving the project locally and
    see if the issue resolves.
    Cheers... Rick

  • The to_date function doesn't work ?

    Hello
    I don't know why my to_date function doesn't work on my pc.
    my statement is pretty complex so i just tried simple one
    select to_date('10-Jan-2006','dd-mon-yyyy') from dual;
    but even this one doesn't work it says it is invalid month
    howcome?
    is it because my Windows XP (not english version) doesn't recognise month Jan?
    i tried it another place it worked
    so is there any language pack / patch i need to install? ?
    so does OS matters?
    or how to fix this..please help me

    By default SQL Developer picks up it's language settings up from (on Windows) the Regional and Language Options. You can see what it has set by querying the NLS_SESSION_PARAMETERS view.
    Assuming you don't want to change to using DD-MM-YYYY formats for your months or change your regional settings on your PC, you need to tell SQL Developer which language you want, which you can do by adding the following lines to the file sqldeveloper\jdev\bin\sqldeveloper.conf:
    AddVMOption -Duser.language=en
    AddVMOption -Duser.country=US

  • I changed the password to one of my gmail accounts. My MacBook Air accepts the new password and shows me email, my iPhone 5s tells me it's not a valid password. In settings, I change the password and pw is accepted. How can I get 5s to accept new pw?

    I changed the password to one of my gmail accounts. My MacBook Air accepts the new password and shows me email, my iPhone 5s tells me it's not a valid password and does not show me email. In settings, I change the password and pw is accepted. How can I get 5s to accept new pw?

    CORRECTION! GMAIL accepts new pw and shows me email. Mail on MacBook Air and iPhone 5s do not accept new gmail pw. What can I do to get my apple products to accept my new gmail pw?

  • Cannot print with a Samsung ML2160 printer (mono laser) and Pages. Print function doesn't work, only drag and drop in printer's queue

    Hello,
    I just purchased a Samsung ML2160 printer and it doesn't work with nor my Pages program, nor the Preview (to print PDF). No matter the way I tried, the Print function doesn't work and I cannot neither print or even enter the printer preferrences menu! My MacBook Pro has worked before with other printers, but now with the Samsung it doesn't work at all... Though, if I drag and drop a document, jpg, pdf in the printer queue, it prints just fine, but that method gives me absolutely no freedom to the printing... Could it be something from the Computer -> Machintosh HD -> Library -> Printers? Because a friend of mine was recently trying to save me some disk space, and therefore erasing part of the HP printer (to remove the previous printer I owned)...
    If anyone has any idea, that would be much appreciated
    Thank you in advance

    Do the sensible thing, as you say neither Preview nor Pages print, try other programs eg TextEdit. If none of them print then it is a System problem and very likely the printer drivers are AWOL or were never installed.
    Go to Samsung's website and download their software for the Mac:
    http://www.samsung.com/uk/consumer/print-solutions/print-solutions/mono-printers /ML-2160/XEU-support
    http://www.samsung.com/uk/support/model/ML-2160/XEU-downloads
    Peter

  • I upgraded my 3 yr old iMac to Snow Leopard and now my HP C4150 Scanning function doesn't work (not recognized).  I downloaded updated Drivers from the HP site, but still no joy.  Any suggestions?

    I upgraded my 3 yr old iMac to Snow Leopard (OS X 10.6) and now my HP C4150 Scanning function doesn't work (not recognized).  I downloaded updated Drivers from the HP site and installed them, but still no joy.  Any suggestions?

    aspaceman,
    Perhaps I owe you an apology.   Having re-read that downloading from HP was unsuccessful I feel uncomfortable.  Can I suggest you update your 10.6 system (as noted in your profile) to 10.6.8 (if it is not already there) by using the
    Mac OS X 10.6.8 Update Combo v1.1 combo update plus any software updates that then apply.  

  • I have an iPhone and when I got it, I had a Toshiba laptop.  Now I have a MacBook Pro, but when I try to wi-fi sync my iphone and new computer, it doesn't work because on my iphone it is still trying to sync with my old computer.  How I can fix this?

    I have an iPhone and when I got it, I had a Toshiba laptop.  Now I have a MacBook Pro, but when I try to wi-fi sync my iphone and new computer, it doesn't work because on my iphone it is still trying to sync with my old computer.  How I can fix this?

    Move the content from the old computer to the new computer.
    Sync the iPhone via cable to the new computer and enable Wi-Fi syncing.
    It should now be possible to sync via Wi-Fi to the new computer.

  • Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr. Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and theref

    Lightroom 5.7.1, Yosemite OS X - Synchronise Folder function doesn't work in Lr.
    Is there a compatibility issue? I can see the folders/images in Finder but when trying to synchronise folders in Lr it does not recognise that there are any images and therefore unable to import to catalogue. Anyone has any idea how to make it work. Thanks a lot.

    Hi Elba,
    Thank you very much for your reply. Not sure, however, that we are talking about the same problem.
    I am trying to perform the same function in Lr that I have been doing for many years in the past and has only been a problem in the last few days (possibly coinciding with upgrading to Yosemite, trying to find out whether that is the problem)
    I am not intending to sync any files with Creative Cloud but only trying to use 'Synchronize Folder' function in Lr. Normally, I would right click on a particular folder in Lr catalogue and click on that function to check that the Lr Catalogue is perfectly matching my drives where the original photos are actually stored.
    The problem that I only started to encounter is that I can see the files on the actual drives but they do not appear in my Lr Catalogue and they are completely invisible to Lr. I simply can not get Lr to recognise them and then import them to catalogue.
    If for example, I export images to Ps and then save and close them, they do appear on my drive but are invisible to Lr and I can't get them imported into the catalogue. Import to folder also not producing any results as they are still invisible to Lr.
    Completely baffled by it. Any idea what could be the reason?
    Kind regards,
    Nik

  • Explicit assignment to the ref parameter in member function doesn't work

    I've created new member procedure in a simple DB schema (Profesor-Asignatura-Departamento). In this procedure I'd like to change explicitly the value of departamento parameter which stores references to departamento objects.
    So what I'm doing is:
    select ref(d) into ref_departamento from departamento d where d.codigo=n_departamento; -- retrieve reference to the departament which has a code=n_departamento
    then I'd just like to assign the result to objects attribute like this:
    self.departamento:=ref_departamento;
    and here it doesn't work and I'm wondering why; I haven't found explaination in web. No error is displayed, simply it doesn't change the previous value of the parameter.
    Maybe there are some restrictions. I've managed to find another solution here with UPDATE statement but I'm curious why the simple assignment doesn't work.
    Thanks in advance,
    Wojtek

    OK, I'm not spanish however I like my code to be kept that way because I'm still learning :)
    Most important classess are these (then tables are created for them):
    create or replace type ot_departamento as object
    codigo number,
    nombre varchar2(32),
    telefono vt_telefono, -- vector type of size 3
    profesores tt_departamento_profesores, -- table type of references to ot_profesor objects
    asignaturas tt_departamento_asignaturas -- table type of references to ot_asignatura objects
    create or replace type ot_profesor as object
    codigo number,
    nombre varchar2(32),
    direccion ot_direccion, --object type with street, city, etc.
    telefono vt_telefono,
    departamento ref ot_departamento, -- reference to ot_departamento
    docencia tt_profesor_docencia, -- table type of objects which attributes are (reference to ot_asignatura, credits for a subject)
    create or replace type ot_asignatura as object
    codigo number,
    nombre varchar2(32),
    departamento ref ot_departamento, -- reference to ot_departamento
    docencia tt_asignatura_docencia, -- table type of objects which attributes are (reference to ot_profesor, credits for a subject)
    member procedure cambio_departamento(n_departamento number) *<- That's the procedure, where I had this issue* its task is to change current department,it takes as an argument code of new department which needs to be assigned
    So now the code for my procedure is:
    create or replace
    type body ot_asignatura as
    member procedure cambio_departamento(n_departamento number) is
    asig_count number:=self.docencia.count;
    no_cambio exception;
    docencias_adscritas exception;
    ref_departamento ref ot_departamento;
    begin
    --first check if a department of given code (n_departamento) exists at all, if not then raise NO_DATA_FOUND exception
    select ref(d) into ref_departamento from departamento d where d.codigo=n_departamento;
    --check if the given department is not the same as asignatura has already assigned, if so then raise NO_CAMBIO (NO_CHANGE) exception
    if ref_departamento=self.departamento then
    raise no_cambio;
    end if;
    --if there are any docencias (subject is declared with professor who's teaching and credits) already assigned to current department then department can't be changed
    if asig_count>0 then
    raise docencias_adscritas;
    end if;
    --first delete our assignatura from list of assignaturas already assigned to current department in the corresponding ot_department
    delete from the (select d.asignaturas from departamento d where ref(d)=self.departamento) a
    where a.COLUMN_VALUE.codigo=self.codigo;
    --now assing (update) to current assignatura reference to the new department
    --self.departamento:=ref_departamento; <- THIS IS NOT WORKING HERE*, so the workaround is given below by using explicit UPDATE on the whole table
    update asignatura a set a.departamento=(select ref(d) from departamento d where d.codigo=n_departamento)
    where a.codigo=self.codigo;
    --what's left is to add current assignatura to the list of assignatures for new ot_departamento
    insert into the (select d.asignaturas from departamento d where d.codigo=n_departamento)
    select ref(a) from asignatura a where a.codigo=self.codigo;
    exception
    when no_data_found then
    raise_application_error(-20003,'No hay este departamaneto');
    when no_cambio then
    raise_application_error(-20002,'Asignatura ya adscrita a este departamento');
    when docencias_adscritas then
    raise_application_error(-20001,'Asignatura tiene docencias adscritas !!!');
    end cambio_departamento;
    end;
    I hope it's quite clear here. I'm still curious, why it's not working.
    Thanks,
    Wojtek

  • Sort function doesn't work E12

    the sort function doesn't work half the time on Elements 12 organizer.

    What about FUNCTION CLOCK_INFormula
    RETURN NUMBER
    IS
        l_hours_worked  NUMBER;
        l_to_return     NUMBER;
    BEGIN
        l_hours_worked := TO_NUMBER(NVL(:ATX_CLOCK_IN,'0'));
        IF (MOD((l_hours_worked - 0.02),0.25) = 0) THEN
            l_to_return := TRUNC((l_hours_worked - 0.02) * 4) / 4;
        ELSE
            l_to_return := TRUNC((l_hours_worked + 0.23) * 4) / 4;
        END IF;
        RETURN (l_to_return);
    EXCEPTION  
        WHEN VALUE_ERROR THEN
            RAISE_APPLICATION_ERROR ( -20100
            ,   'ERROR, Cannot represent '
            ||  :ATX_CLOCK_IN
            ||  ' as a number.');
    END CLOCK_INFormula;?
    This function assumes :ATX_CLOCK_IN is always positive.
    T.

  • Tap function doesn't work, recovered files in bin etc

    Hi
    I'm using Mac Book Pro 13' - Mac OS 10.6.8
    1) Every time, I switched on my laptop, the one finger (tap to click) function doesn't work (although I have set it up).
    I have to go to 'systems preferences' to set it up again.
    2) Why is there 'Recovered files' in the trash bin each I switched on my laptop? How to get rid of it?
    3) Sometimes when I work using Word 2011, it takes a long time to save (the little icon will be swirling and swirling) and then I had to force quit and lose unsaved info. Why does this happen and how to avoid it from happening?
    Pls help me. I'm in the middle of my thesis submission and urgently need solutions to my Mac problems. Thanks!

    Reinstall Photoshop. That often fixes the issue.

  • 'open new tab' function has stopped working, even after reinstall

    The 'open new tab' function has stopped working. I even uninstalled Firefox and reinstalled and no help.

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> go to Help Menu -> select '''Restart with Add-ons Disabled'''
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update Firefox to the latest version by going to Help Menu -> About Firefox -> click '''Check for Updates''' -> if an updated version is found then download the latest version and install it. After that follow these steps:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Toolbars -> unselect All Unwanted/Incompatible Toolbars
    -> go to Tools Menu -> Clear Recent History -> '''Time range to clear: select "EVERYTHING"''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache''' -> click '''Clear Now'''
    -> go to Tools Menu -> Options -> General -> in Startup section click '''Reset to Default''' button
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> go to Tools Menu -> Options -> Advanced -> Network -> Offline Storage (Cache): click '''Clear Now''' button
    -> Click OK on Options window
    -> click the Favicon on SearchBar -> click '''Manage Search Engines''' -> select all Unwanted Search Engines and click '''Remove''' -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious/Incompatible Extensions (Add-ons) -> Restart Firefox
    -> go to Tools Menu -> Add-ons -> Appearance section -> REMOVE All Unwanted/Suspicious/Incompatible Themes (Persona) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons and Themes later. Check and tell if its working.

Maybe you are looking for

  • Ipod not showing up in itunes or on computer

    after updating to itunes 9.1 my ipod will not show up anywhere on my computer. It doesn't even do anything when i plug it in. Although everytime since then a message comes up after logging into my computer about the applesync notifier had some sort o

  • Do I need a blu ray burner to burn HD using Final Cut Express?

    I just wanted to ask a question. I am new to burning after editing is complete. I am using Final Cut Express and have recorded my footage in HD. After trying to burn a disc using IDVD I realized it does not burn HD. So to be clear, in order for me to

  • Office 2010 unstable

    L.S.  I've recently acquired an Acer laptop running Windows 8.1. I installed Office 2010 (as I already had a license for it). At first. Word, PowerPoint and Excel would continuously lock up after only the slightest of work performed. I killed an Acer

  • WLC 5508 and 802.11n

    We are currently deploying multiple 3502 AP's and a WLC5508. Is it recommended to put the access points that are one the same site as the controller on H-REAP or put them on local mode. The WLC5508 has a max uplink of 8 Gb can that be a limitation wh

  • Partial dlvery

    Hello SAP Prof, 1.A customer has 2 materials . one is third party mat(TAS),Second one is normal mat(TAN).. These both items entered in one sales order and his requirement is he wanted in single invoice with out splitting? How can we do . 2.What is th