All functions in FUNCLIB record can be moved to Application Class?

I am new comer for PeopleCode. I find many functions are put into a work record, like FUNCLIB. I want to know if some logics only are able to be coded in work record as function due to some restrictions or convenience. If yes, what are the restrictions and conveniences? If not, any one function in one record can be moved to Application Class? Please help to answer. Thanks in advance.

My two cents on this is that the FUNCLIB_ convention is a legacy convention, which was rolled out prior to the existence of application packages. As one can imagine, there is a large effort involved in pulling out FUNCLIB_ code and re-directing all of the calls to application classes.
I work with application classes where possible; there are nice OOP features and things are more tightly defined e.g. you can't just define a bunch of variables and have the '&randomstring is auto-defined' messages appear during PC validation in an App Class.
If you are writing something new, then I would encourage you to use application packages and classes. If you are thinking of re-writing code that exists in a FUNCLIB record event, then you will just need to ensure that you've identified all the calls and so on.
Hope this helps
John

Similar Messages

  • Re: Apex 3.0 Insert Function Works, but records can't be found

    i have an existing application that I created with Apex 3.0. It allows users to search for records using several different criteria and it allows them to update records.
    I added functionality that allows the user to insert a new record. The insert allows user to populate a dozen fields,. Behind the scenes it uses triggers to get the next value for the key and to set the update time stamp and user id. It also sets a flag that is used in the select query.
    The insert works fine. Whenever I add a record, I can view it using SQL developer.
    However if I try to search for a record that was inserted using the application, the application never finds the record.
    In SQL developer I run the same query that application runs. I always get the records that were added.
    If I compare records that were added by using the application with existing records on the table, the data looks similar.
    Any thoughts ?
    thanks
    Edited by: 975204 on Mar 29, 2013 1:22 PM
    Edited by: 975204 on Mar 29, 2013 1:23 PM

    yep
    I got it working that way
    The select query allows users to enter search criteria into text boxes. It also allows them to select a field from a list of values
    (lower(lastname) like '%' || lower(:P5_NAME) || '%')
    AND (lower(address) like '%' || lower(:P5_ADDRESS) || '%')
    AND (lower(title) like '%' || lower(:P5_TITLE) || '%')
    AND (lower(phone) like '%' || lower(:P5_PHONE) || '%')
    AND deptNo = decode(:P5_DEPT,'%null%',TRIM(lvl01),:P5_DEPT)
    I took these apart and tried the search criteria separately
    What I discovered was that for the list of values I had to add "or is Null"
    (lower(lastname) like '%' || lower(:P5_NAME) || '%')
    AND (lower(address) like '%' || lower(:P5_ADDRESS) || '%')
    AND (lower(title) like '%' || lower(:P5_TITLE) || '%')
    AND (lower(phone) like '%' || lower(:P5_PHONE) || '%')
    AND (deptNo = decode(:P5_DEPT,'%null%',TRIM(lvl01),:P5_DEPT)
    or deptNo is null)
    It works fine now, thanks

  • I want to take all the data stored on my mac and put it on an external hard drive, what all can be moved off the computer and still work and what can't?

    Im looking to get some external terabytes and move data or files from my internal drive to the external drive, i was wondering what has to stay on the computer to function still and what can me moved if not all of the files on the internal drive. i know i can move the videos and pictures, but what about program data or files or whatever may be nedded to run all of the apps and programs i have on my computer. if i could get some insight, it would be greatly appreciated.

    Freeing Up Space on The Hard Drive
      1. See Lion/Mountain Lion/Mavericks' Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.

  • How can I build an application that calls functions in a dll if the associated hardware is not present?

    I am trying to build an application that use the "Call Library Function" node to call functions in a dll.
    The dll was provided by a third-party and includes functions to drive an I2C communication board.
    The problem I have is that the dll does not not properly because the hardware is not present.
    Therefore when I load the VI a broken arrow is displayed and when I am not able to build the application.
    I will not be running the application on the PC where I build the application, therefore I want to be able to build the application on a remote PC that has not all the hardware installed. Once the application will be build it will be installed on the target PC that has all the hardware.
    How can I make the application builder to build the application event if the dll is not properly loaded? (the dll will be properly loaded on the target PC)
    I want to do this on LabView 5.1.1, any ideas?

    Some .dlls don't try to attach to the driver when loaded.
    I've worked with both and unfortuately, I've not figured out a way around this problem.
    You could possibly use the Conditional Disable structure around the dll calls so they would not be loaded unless you're in the runtime engine. But i've not tried this so I don't know for sure if it's possible.
    Anyone??
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • Can't use function in creating record group

    Gurus,
    This question is for developers. Is this true one can't use
    function in creating record group. I am using form5.
    thanks,
    ZW

    I figured out the issue... they changed the way Group Calls are limited.
    Here's a full explaination - and a suggestion for a behavior fix: http://community.skype.com/t5/Windows-desktop-client/Please-Fix-Group-Video-Voice-Calling-Limit-Beha...
    Long story short, you can't do a video calling at all if the group has more than 10 people in it total (including you).
    Also, you can't do voice calling in groups with more than 25 people.
    Text chats are limited to 300 people (or so I've been told by Skype employees). I've been in a chat with over 100 participants though so I know it goes that high at least.

  • HT1364 I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanen

    I have moved my library to an external hard drive and changed the location of the iTunes media folder in Preferences, but every time I close and re-open iTunes, I have to do it all over again.  How can I make the iTunes media folder change permanent?  I have an older machine with Windows XP.

    I don't believe mounting the hard drive should be necessary, unless you have several external drives and want your computer to recognise them as folders, rather than drives. I've never had to mount a hard drive, ever. If you don't know how to do it, then it shouldn't be necessary now.
    Try this:
    Prepare iTunes so that it can see the external drive.
    Make a note of which drive-letter the external drive has been allocated. (Look in Windows Exploer)
    Look at the file location for a song. Make sure it plays (and therefore that iTunes has found it). Highlight it and select File/Get Info/Summary>Where: and make a note of the drive letter for that song.
    Close and shut down the computer.
    The next time you turn the computer on again, connect the external drive
    Before you start iTunes - check the external drive in Windows Explorer. Is it ready, does it have the same drive-letter that it had last time? Can you go into the drive and see the files on it?
    Once you can, start iTunes. (If the drive lettter has changed, you need to work out why before going any further.)
    If iTunes fails to find your external drive, you need to check where iTunes is looking for your Library.
    Select the same song you checked before (presumably iTunes can no longer find it). Follow the procedure for locating it. You should be able to see where iTunes thinks the file is. It's the drive that counts. Which drive letter is iTunes looking at? Is it the same one that it was previously (which should also be the same one that the drive has now).
    What happens, which step do you have problems with?
    Message was edited by: the fiend

  • My iPod Touch will not play through external speakers when it is docked.  It only plays through it's internal speaker.  All the other functions on the iPod can be controlled by the external speakers (volume,track, etc).  How do I fix this?

    My iPod Touch will not play through external speakers when it is docked.  It only plays through it's internal speaker.  All the other functions on the iPod can be controlled by the external speakers (volume,track, etc).  How do I fix this?

    I would try in oreder:
    - Resetting the iPod:
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restoring the iPod via iTunes.  First from backup and if problem persists, restore to factory defaults/new iPod.

  • I there, my question is quite simple, I would like to know if the "apple remote control" can be used with a mac mini and , if so, it can be used to control also the "logic pro" functions (e.g. record, start, stop etc). Thks a lot, Danilo

    I there, my question is quite simple, I would like to know if the "apple remote control" can be used with a mac mini and , if so, it can be used to control also the "logic pro" functions (e.g. record, start, stop etc). Thks a lot, Danilo

    Good work, thanks for the report.

  • I have a 27" iMac with 16GB of factory installed SDRAM and 1T harddrive.  It is telling me the harddrive is full and is not functioning correctly.  How can I adjust so that all files are managed on the harddrive rather than the SDRAM.  (BTW - design flaw)

    Processor 3.4 GHz Intel Core i7
    Memory  16 GB 1333 MHz DDR3
    I have a 27" iMac with 16GB of factory installed SDRAM and 1T harddrive.  It is telling me the harddrive is full and is not functioning correctly.  How can I adjust so that all files are managed on the harddrive rather than the SDRAM.  (BTW - design flaw here.)
    Older Macs with a single Harddrive would simply expand OS management on the drive, and I think I understand the new Fusion Drive to do just that, but how do I get this product that I spent a great deal of money on to be more than a pretty screen?

    I was confused by this statement
    It is telling me the harddrive is full and is not functioning correctly.
    OS X manages ram and when you run out, it create swapfiles to extend your ram on the HDD (Hard Disk Drive). The OS itself, takes about 16 gig of space and that too resides on the HDD.  Your 16 gig of RAM is really a temporary space that holds things from the HDD so the processor can work on them.  There is no design flaw between your ram and HDD.  Something else is going on and there are a lot of smart people here to help you figure out what that "something else" is.
    I would do three things.  First I would create a backup, backups are important.  Second, I would reboot into recovery and repair my HDD.  Lastly while still booted in recovery I would repair permissions.
    Can you capture a screen shot of the exact error you are getting?

  • How can I compile all functions, procedures and packages with a script?

    I need to compile all functions, procedures and packages of 5 schemas (users) with a script.
    How can I do it?
    Thanks!

    you can create a script to select all invalid objects in those schemas Since Oracle 8 introduced NDS this approach has struck me as a trifle old fashioned. It's much simpler to loop round the query in PL/SQL and use EXECUTE IMMEDIATE to fire off the DDL statements. No scripts, no muss, no fuss.
    Having said that, the problem with this approach and also with using DBMS_UTILITY.COMPILE_SCHEMA is that they do not compile all the invalid objects in dependency order. This may result in programs being invalidated by the subsequent compilation of dependencies. This is due to the introduction of Java into the database.
    The UTLRP script is much better, because it (usually) avoids cyclic references. But you still may need to run it more than once.
    In general it is better to avoid sledgehammer recompilations (like DBMS_UTILITY.COMPILE_SCHEMA, which starts by invalidating all the objects). If we have twenty invalid objects, nineteen of which are dependencies of the twentieth, we actually only need to recompile the master object, as recompiling it will trigger the recompilation of all the others.
    Cheers, APC

  • Can't find DAQmx on All Function palettes

    in the LabView 7 Express manual, it says that NI-DAQmx can be located by clicking on:
    -Functions
    -All Functions
    -NI Measurements
    -DAQmx
    my question is, i don't even see All Functions and as a result cannot locate DAQmx. i've been trying to locate it on the Functions palette. i'm i looking in the wrong place?
    thanks
    -r

    I'm not sure what might be happening. The All Functions palette is the bottome right palette on the Function Palette. If that isn't showing up then I'm not sure what is going on. You might need to reinstall LV. I have attatched a screenshot of where you can find the "All Functions" palette. If it isn't there send a screenshot of your functions palette and I might be able to figure out what is going on.
    Attachments:
    functions.JPG ‏34 KB

  • Hi,i have iphone 4S, after updating ios 7, all functions are ok but i can't see my balence because when i dial to balance inquiry ( as *124

    Hi,i have iphone 4S, after updating ios 7, all functions are ok but i can't see my balence because when i dial for  balance inquiry ( as *124#) it does not respond or even say that this number is not in use. How can i sort out this problem?

    Yes lucky me . If all troubleshooting has been done in Resolve iOS update and restore errors and if you have at least taken it into a store where they could try a restore themselves then that would suggest a hardware fault with the iPhone.
    If you are out of warranty then it is correct that they would quote you an out of warranty service fee. From here it would be a matter of trying the steps above and if you have already tried then doing the service when you do have the cash.

  • Using Pro Logic X to record. I have several tracks and I'm trying to record an audio track. I have the mic connect to Avalon 737 then into apollo interface. When I record all track are being recorded into that track. I can't just get the audio to record.

    Using Pro Logic X to record. I have several tracks and I'm trying to record an audio track. I have the mic connect to Avalon 737 then into apollo interface. When I record all track are being recorded into that track. I can't just get the audio to record.

    Thanks for responding. Everything seems to work right except for the when I plug into the 737. Ok let me see if I can be more clear. I had this set up done with two representatives of Neumann, and DBox. Here it is I hope this helps. 32 Channel snake (24 Inputs 8 outputs) Channels 1-8 from snake to my Octopre for Drums. From Octropre output quarter inch lines into the Apollo 2, quarter inch input. This is so that the Apollo 2 is taking the drum tracks. Snake Channel 9-12 into Apollo 1 channels 1-4 xlr. Snake Channel 13-16 into Apollo 2 Channels 1-4 xlr. Snake Channel 17 into the 737, output of 737 into Channel 5 of the Apollo 1 quarter inch.
    Ok The Dbox. Sum output L&R into channel input 7&8 of Apollo 1. Apollo 1 output channels 1-8 into summing input channel 1-8 of Dbox. Apollo 1 main L&R going to main analog input L&R of Dbox. Spid out to DAW input of Dbox. I have both ADAT of both Apollos connected by optical wire. Also have port 2 of Apollo 1 into port 1 of Apollo 2 connected by Firewire.  Let me know. Hope I got it right. Thanks for responding.

  • When my photos were moved from iPhoto to Photos in the last system upgrade, they lost all their titles. How can I restore them?

    In the latest Yosemite upgrade, my photos were migrated from iPhotos to Photos and lost all their titles. How can I restore them?

    There is an Applescript, File Name to Title,  provided by user léonie that will put the file name of any selected photos into the Title field for that photo.  If there already is a title in that field under the thumbnail it will not replace it with the file name. 
    tell application "Photos"
      activate
      set imageSel to (get selection) -- get a list of selected images
      set counter to 1
      set currentfilename to ""
      if imageSel is {} then
      error "Please select an image."
      else
      repeat with im in imageSel
      set title to the name of im
      if not (exists (title)) then
      set currentfilename to the filename of im as text -- retrieve the filename of image "Im"
      set newname to currentfilename & "." & counter
      set counter to counter + 1 -- increment the counter
      set the name of im to newname -- write the newname to the title field
      end if
      end repeat
      end if
      return currentfilename -- return the filename of the last image
    end tell
    Copy the script above, open Applescript Editor and past it into the open window.  Compile and save as an Applescript application.  Put the app in the Applications folder and drag into the Dock. Now you can select images in Photos and launch the app from the Dock and it will do it's thing.  It is a bit slow so can take some time for a large number of images depending on the speed of your Mac.
    Just to be on the safe side create an album with a few titled and untitled photos and run it on them.

  • Select all functionality in a check box

    Hi all
    I am using forms 6i
    I have a tabular block with a check box
    i want to have the functionality wherein the user can select all the records of the form by a single click or any other
    way
    basically if the user wants to select all the records he does not have to click all the records individually same for deselect
    Please let me know if we can do this
    thanks

    Hai,
    create a button to select all, and write this code in the WHEN-BUTTON-PRESSED trigger.
    DECLARE
         Num_Total_Records NUMBER;
         Num_Loop_I                     NUMBER;
    BEGIN
         GO_BLOCK('<block_name>');
         LAST_RECORD;
         Num_Total_Records := TO_NUMBER(NAME_IN('SYSTEM.CURSOR_RECORD'));
         FIRST_RECORD;
         FOR Num_Loop_I IN 1..Num_Total_Records LOOP
              :<block_name>.<check_name> := 1;
              NEXT_RECORD;
         END LOOP;
    END;
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

Maybe you are looking for

  • Need help with basic program - I am new to this

    I need to write a very basic code to display my name on the screen as follows RR OOO R R O O R R O O RR O O R R O O R R OOO etc etc etc to spell out robert i have no idea where to begin

  • Changing the Testing Server

    I have a MySql database on my Mac and I'm using Dreamweaver CS5 to generate dynamic content in PHP. For the Site Definitions, I have Dreamweaver configured this way: - Local Site Folder: users/bronzino1/mysite - Testing Server Folder: Applications/MA

  • Tomcat 5.5 not binding to IP

    Hi, I've just installed Tomcat 5.5.12 on my Mandrake 10.2 box. After starting tomcat, I can connect to port localhost:8080, but I cant connect when spcifying the machines IP - i.e 192.168.10.1:8080 After running netstat, I can see that tomcat is list

  • Error about Template in dreamweaver mx 8

    Hello every 1 This is dinesh from S Naidu Online, i m getting problem while doing template in dreamweaver, i have done 2 part in my website 1-> top,left [ menus ], bottom , 2-> right side part for editing page or matter, my template height is 500px ,

  • IPhoto crashes my OS10.4, can I trash & reinstall!?

    Hi, Sorry to have a very basic (stupid?) question! Everytime I open iPhoto my system crashes after prolonged "thinking" while system works to open application. Can I trash iPhoto and reinstall from Apple Support? Thanks, Mary