Filling a tree with the result of calls to a document/wrapped soap1.1 webservice

Hi,
I'm having trouble with filling a tree with the result to
calls to a document/wrapped soap 1.1 webservice.
I first declared the webservice in the mxml file as it was in
the examples and tried to call it with no luck. The fault was it
wasn't finding the document type for the call's unique parameter. I
figured out the solution to this, I added a method in the
webservice declaration having a single element named the same as
the required parameter, and inside it, the "actual" parameters,
bound to variables defined elsewhere.
The reason for wanting the tree to be filled programatically,
is the potential whole contents of the tree can be about 1.000.000
nodes. Huge.
quote:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" applicationComplete="initM()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.controls.treeClasses.TreeListData;
[Bindable] public var aParentId:String = null;
[Bindable] public var aLevel:Number = 0;
]]>
</mx:Script>
<mx:WebService id="lws" wsdl="
http://myServer/myContext/myPortURI?WSDL"
useProxy="false" makeObjectsBindable="true">
<mx:operation name="getNodes" resultFormat="object">
<mx:request>
<getNodesElement>
<parentId>{aParentId}</parentId>
<level>{aLevel}</level>
</getNodesElement>
</mx:request>
</mx:operation>
</mx:WebService>
<mx:Tree x="0" y="0" width="326" height="100%"
id="layoutTree" enabled="true" labelField="nodeName">
<mx:dataProvider>{lws.getNodes.lastResult}</mx:dataProvider>
</mx:Tree>
<mx:Script>
<![CDATA[
public function initM():void {
lws.getNodes.send();
return;
]]>
</mx:Script>
</mx:Application>
So, here's the problem:
1.- In both Java2 and .NET, I've been able to produce sets of
proxy classes from the webservice wsdl, these include a proxy class
for the service port and a set of classes for both the call
parameter types and the call result types. I have not found yet a
way to do the same with flex2, so I wonder, can I produce the
required classes for dealing with such a webservice in an automatic
way with flex2?
2.- The second problem, is I haven't found a way to make a
webservice call in sychronous mode, and I can't seem to find a way
to set the parameters for the subsequent calls to the webservice.
Is there a way to make a call to such webservice programatically? I
mean, I've been able to make the first call I need programatically,
but what if I end up making 2 or more simultaneous calls? I can't
rely on setting the `variables defined elsewhere` before each call,
because of possible concurrency issues (calls will be long after
the 2nd level of the tree), so I wonder if there's a way to make a
call to such webservice (document/wrapped, soap1.1) passing it the
parameters programatically. If so, can I just put the parameters or
do I have to produce the complete enclosure? If I have to produce
also the enclosure, any hint on how to do so? I will need to pass
different parentId, level pairs probably triggered by tree events.
3.- the other problem, finally, is Tree looks quite different
to me than the Java2 one. In java2, I can easily produce a changing
model for the tree wich will even handle the calls to the
webservice as needed (triggered by the tree itself), making it a
`live model`. If there is a way to produce the same behaviour in
flex2, I haven't found it yet. Sure, I've only downloaded the trial
version yesterday, so I may have overlooked some docs or blogs.
Any hints would be appreciated, specially on programatically
modifying the tree, and making calls to the webservice changing the
parameters every time.

I would re-post to the Flex Data Services forum.

Similar Messages

  • [Help Wanted] soap1.1 webservice, filling a tree with the result of calls...

    Hi,
    I'm having trouble with filling a tree with the result to
    calls to a document/wrapped soap 1.1 webservice.
    I first declared the webservice in the mxml file as it was in
    the examples and tried to call it with no luck. The fault was it
    wasn't finding the document type for the call's unique parameter. I
    figured out the solution to this, I added a method in the
    webservice declaration having a single element named the same as
    the required parameter, and inside it, the "actual" parameters,
    bound to variables defined elsewhere.
    The reason for wanting the tree to be filled programatically,
    is the potential whole contents of the tree can be about 1.000.000
    nodes. Huge.
    quote:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" applicationComplete="initM()">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.controls.treeClasses.TreeListData;
    [Bindable] public var aParentId:String = null;
    [Bindable] public var aLevel:Number = 0;
    ]]>
    </mx:Script>
    <mx:WebService id="lws" wsdl="
    http://myServer/myContext/myPortURI?WSDL"
    useProxy="false" makeObjectsBindable="true">
    <mx:operation name="getNodes" resultFormat="object">
    <mx:request>
    <getNodesElement>
    <parentId>{aParentId}</parentId>
    <level>{aLevel}</level>
    </getNodesElement>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Tree x="0" y="0" width="326" height="100%"
    id="layoutTree" enabled="true" labelField="nodeName">
    <mx:dataProvider>{lws.getNodes.lastResult}</mx:dataProvider>
    </mx:Tree>
    <mx:Script>
    <![CDATA[
    public function initM():void {
    lws.getNodes.send();
    return;
    ]]>
    </mx:Script>
    </mx:Application>
    So, here's the problem:
    1.- In both Java2 and .NET, I've been able to produce sets of
    proxy classes from the webservice wsdl, these include a proxy class
    for the service port and a set of classes for both the call
    parameter types and the call result types. I have not found yet a
    way to do the same with flex2, so I wonder, can I produce the
    required classes for dealing with such a webservice in an automatic
    way with flex2?
    2.- The second problem, is I haven't found a way to make a
    webservice call in sychronous mode, and I can't seem to find a way
    to set the parameters for the subsequent calls to the webservice.
    Is there a way to make a call to such webservice programatically? I
    mean, I've been able to make the first call I need programatically,
    but what if I end up making 2 or more simultaneous calls? I can't
    rely on setting the `variables defined elsewhere` before each call,
    because of possible concurrency issues (calls will be long after
    the 2nd level of the tree), so I wonder if there's a way to make a
    call to such webservice (document/wrapped, soap1.1) passing it the
    parameters programatically. If so, can I just put the parameters or
    do I have to produce the complete enclosure? If I have to produce
    also the enclosure, any hint on how to do so? I will need to pass
    different parentId, level pairs probably triggered by tree events.
    3.- the other problem, finally, is Tree looks quite different
    to me than the Java2 one. In java2, I can easily produce a changing
    model for the tree wich will even handle the calls to the
    webservice as needed (triggered by the tree itself), making it a
    `live model`. If there is a way to produce the same behaviour in
    flex2, I haven't found it yet. Sure, I've only downloaded the trial
    version yesterday, so I may have overlooked some docs or blogs.
    Any hints would be appreciated, specially on programatically
    modifying the tree, and making calls to the webservice changing the
    parameters every time.

    1. Not yet, but we're looking into supporting this in an
    upcomming release.
    2. All RPC requests must be made asynchronously... this is a
    restriction of the way the Flash Player makes network requests
    (otherwise movies, which are single threaded, would hang waiting
    for results). You should be able to use the ActionScript API to
    programmatically call web services with normal parameters.
    3. If you leave makeObjectsBindable="true" (which it is by
    default) the Objects and Arrays will be wrapped in ObjectProxies
    and ArrayCollections automatically and will report change events,
    however I don't believe that we have an example that links these
    change events up to subsequent web service calls, but it would be
    possible (but not automatic). A feature that does do this sort of
    thing automatically is the Data Service, although this does not use
    WSDL/SOAP to describe/communicate with remote services and you have
    to setup a Java assembler to work with our adapters on the
    server.

  • Is it possible to recover my data from iCloud backup without working wifi? I have as many other upgraded my iPhone 4S to iOS 7.0.2 with the result that the Wi-Fi or Bluetooth no longer works. However, i can connect to iTunes via cable but there is wrong v

    Is it possible to recover my data from iCloud backup without working wifi? I have as many other upgraded my iPhone 4S to iOS 7.0.2 with the result that the Wi-Fi or Bluetooth no longer works. However, i can connect to iTunes via cable but there is wrong version of backup.

    Answer is no.
    If you want the iCloud backup you have to have n internet connection, thus WiFi.
    The not working WiFi has happened with quite a number of users.
    It is not exactly clear what is the cause but there are suggestions to clear it up:
    Some people have had success by removing an apostrophe from the iPhone name. If your iPhone is called something like “John’s iPhone” then this might work. Go to Settings > General > About > Name and change it to something with no apostrophe.
    Some people have reported success by putting the iPhone into Airplane mode and then going to Settings > General > Reset > Reset Network Settings, but the problem may return.
    You could also try going to Settings > Control Center and disable Access on Lock Screen then turn your iPhone off and on again.
    Make sure that your router firmware is up to date.
    Try backing up your iPhone and then restoring it. Check how to factory reset an iPhone for details.
    If nothing is working for you, try contacting Apple or take your iPhone into an Apple Store.
    Succes, Lex

  • Apex report result doesn't agree with the result of sql developer

    Hello guys,
    at the moment I try to create a standard report which takes his content from several spreadsheets. Because of some problems with the searchbar I'm not able to use an interactive report. The sql query contains a function, which sets some space characters into the content of a column. But there is a big problem. When I call my sql query in apex from the spreadsheets the result doesn't agree with the result which affords the sql developer.
    I know that the sql developer affords the right result.
    best regards
    wderr
    Edited by: user9072567 on 07.02.2010 12:57

    thats the query:
    select "TWORKITEM"."WORKITEMKEY",
    "TWORKITEM"."PROJCATKEY",
    "TPROJECT"."LABEL",
    "TWORKITEM"."PACKAGESYNOPSYS",
    replace(replace("TWORKITEM"."PACKAGEDESCRIPTION", chr(10), '<br>'),'<td></td>','&lt;td&gt;&lt;/td&gt;') packagedesc,
    suche_ohne_ti_be("TWORKITEM"."WORKITEMKEY") "CHANGEDESCRIPTION"
    from "TWORKITEM" "TWORKITEM", "TPROJECT" "TPROJECT", "TPROJCAT" "TPROJCAT"
    where "TWORKITEM"."PROJCATKEY" = "TPROJCAT"."PKEY"
    and "TPROJCAT"."PROJKEY" = "TPROJECT"."PKEY"
    and (instr(upper("TWORKITEM"."WORKITEMKEY"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."WORKITEMKEY"))) > 0
    or instr(upper("TPROJECT"."LABEL"), upper(nvl(:P10_SEARCHTEXT, "TPROJECT"."LABEL"))) > 0
    or instr(upper("TWORKITEM"."PACKAGESYNOPSYS"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."PACKAGESYNOPSYS"))) > 0
    or instr(upper("TWORKITEM"."PACKAGEDESCRIPTION"), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."PACKAGEDESCRIPTION"))) > 0
    or instr(upper(suche_ohne_ti_be("TWORKITEM"."WORKITEMKEY")), upper(nvl(:P10_SEARCHTEXT, "TWORKITEM"."WORKITEMKEY")))>0
    I mean with spreadsheets some tables/charts. And I take those informations from 3 of them.
    regards
    wderr

  • I just jazzed up my 2 Ghz iMac with 10.6.8, and 4 gigs of memory. I'm VERY happy with the results (fast!), but now I have a thin yellow line way over on the right side of the screen, which goes from top to bottom. This is really strange! Any input?

    I'm VERY happy with the results (fast!). However, the really strange thing is this - there is now a thin yellow line, way over on the right side of the screen, which goes from top to bottom, and stays there no matter where I go or what I do. I've never seen anything like this! It was not there before I did the upgrades. Anyone out there ever heard of such a preposterous thing ~ or have any ideas on how to get rid of it?

    Hello Mark,
    It's going to mean a lot of reading but you should study the 'More like this' legend to your post's immediate right.  >>>>>>>>   plus some of the links within each.
    The problem is well explored with much guidance on what to do and where to go.

  • App-V PowerShell: Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results

    Please Vote if you find this to be helpful!
    App-V PowerShell:  Script to Query XenApp Servers for App-V Publishing Errors and Output an Excel Document with the Results
    Just posted this to the wiki:
    http://social.technet.microsoft.com/wiki/contents/articles/25323.app-v-powershell-script-to-query-xenapp-servers-for-app-v-publishing-errors-and-output-an-excel-document-with-the-results.aspx

    Hi petro_jemes,
    Just a little claritification, you need to add the value to the variable "[string]$ou", and also change the language in the variable "$emailbody" in the function "Get-ADUserPasswordExpirationDate".
    I hope this helps.

  • When I search for something, firefox opens a new tab with the results. How can I change the settings to where it will all stay in the same tab?

    When I search something Firefox automatically opens a new tab with the results of this search. How do I change the settings to where the results will appear in the same tab as where I conducted the search?

    Whether to open search results in new window most often is a setting of the search engine you are using.

  • TS1702 Books I have purchased through iBooks have chapters missing with the comment error on line 1 document empty ... Anyonelse have this issue, any advice? And yes I have tried reinstalling, restarting etc. etc

    Books I have purchased through iBooks have chapters missing with the comment, error on line 1, document empty at line1 ... I have tried reinstalling, restarting, any other advice?

    If you're stuck within an app or you've noticed a problem, simply hold both the home button and sleep/wake button at the same time. It's important to keep your fingers on these buttons until step 3.
    After a few seconds the red ‘slide to power off' screen will appear, simply ignore this. Ensure your fingers are still holding down the home and sleep/wake switch.
    Shortly after you should see the Apple logo, it's now safe to let go of the iPad's buttons. Your iPad should now boot, beware this process can take up to 15 minutes or so.

  • What do I do with the results of EtreCheck if I am trying to be proactive? embarrassed grin Can anyone help?

    Good morning. This is my machine: 
    EtreCheck version: 1.9.12 (48)
    Report generated July 31, 2014 at 6:52:07 AM EDT
    Hardware Information:
      iMac (21.5-inch, Mid 2010) (Verified)
      iMac - model: iMac11,2
      1 3.2 GHz Intel Core i3 CPU: 2 cores
      16 GB RAM
    Video Information:
      ATI Radeon HD 5670 - VRAM: 512 MB
      iMac 1920 x 1080
    System Software:
      OS X 10.9.4 (13E28) - Uptime: 2 days 0:35:41
    Disk Information:
      APPLE HDD HUA722010CLA330 disk0 : (1 TB)
      EFI (disk0s1) <not mounted>: 209.7 MB
      Macintosh HD (disk0s2) / [Startup]: 999.35 GB (886.28 GB free)
      Recovery HD (disk0s3) <not mounted>: 650 MB
      OPTIARC DVD RW AD-5680H 
    USB Information:
      Apple Internal Memory Card Reader
      Apple Inc. BRCM2046 Hub
      Apple Inc. Bluetooth USB Host Controller
      SAMSUNG SAMSUNG_Android
      Apple Computer, Inc. IR Receiver
      Apple Inc. Built-in iSight
    FireWire Information:
      LaCie Rugged FW/USB 800mbit - 800mbit max
      disk1s1 (disk1s1) <not mounted>: 32 KB
      LaCie (disk1s3) /Volumes/LaCie: 499.97 GB (139.69 GB free)
    Gatekeeper:
      Mac App Store and identified developers
    Launch Daemons:
      [loaded] com.adobe.fpsaud.plist Support
      [not loaded] com.adobe.SwitchBoard.plist Support
      [loaded] com.google.keystone.daemon.plist Support
      [loaded] com.microsoft.office.licensing.helper.plist Support
    Launch Agents:
      [not loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.adobe.CS5ServiceManager.plist Support
      [running] com.brother.LOGINserver.plist Support
      [loaded] com.divx.dms.agent.plist Support
      [loaded] com.divx.update.agent.plist Support
      [loaded] com.google.keystone.agent.plist Support
      [loaded] com.hp.help.tocgenerator.plist Support
    User Launch Agents:
      [loaded] com.adobe.AAM.Updater-1.0.plist Support
      [loaded] com.adobe.ARM.[...].plist Support
      [failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist
      [not loaded] com.google.Chrome.framework.plist Support
    User Login Items:
      iTunesHelper
      MacLWSLauncher
      AdobeResourceSynchronizer
      EvernoteHelper
      Caffeine
      Android File Transfer Agent
      Dropbox
      VerizonUpdateCenter
      WidgetRunner
      Google Drive
      RealPlayer Downloader Agent
      EvernoteHelper
      Kodak Share Button Agent
      HP Product Research
      HPEventHandler
    Internet Plug-ins:
      o1dbrowserplugin: Version: 5.4.2.18903 Support
      OVSHelper: Version: 1.1 Support
      Default Browser: Version: 537 - SDK 10.9
      Flip4Mac WMV Plugin: Version: 2.4.4.2 Support
      RealPlayer Plugin: Version: (null) Support
      AdobePDFViewerNPAPI: Version: 11.0.07 - SDK 10.6 Support
      FlashPlayer-10.6: Version: 14.0.0.145 - SDK 10.6 Support
      DivX Web Player: Version: 3.2.1.977 - SDK 10.6 Support
      Silverlight: Version: 5.1.20513.0 - SDK 10.6 Support
      Flash Player: Version: 14.0.0.145 - SDK 10.6 Support
      iPhotoPhotocast: Version: 7.0 - SDK 10.8
      googletalkbrowserplugin: Version: 5.4.2.18903 Support
      QuickTime Plugin: Version: 7.7.3
      AdobePDFViewer: Version: 11.0.07 - SDK 10.6 Support
      CouponPrinter-FireFox_v2: Version: Version 1.1.9 - SDK 10.5 Support
      SharePointBrowserPlugin: Version: 14.4.3 - SDK 10.6 Support
      WidevineMediaOptimizer: Version: 6.0.0.12757 - SDK 10.7 Support
      JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Check version
    Safari Extensions:
      Conduit Search for Safari: Version: 1.0
    Audio Plug-ins:
      BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
      AirPlay: Version: 2.0 - SDK 10.9
      AppleAVBAudio: Version: 203.2 - SDK 10.9
      iSightAudio: Version: 7.7.3 - SDK 10.9
    iTunes Plug-ins:
      Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
    User Internet Plug-ins:
      ConduitNPAPIPlugin: Version: 1.0 - SDK 10.6 Support
      Picasa: Version: 1.0 Support
    3rd Party Preference Panes:
      Flash Player  Support
      Flip4Mac WMV  Support
      Growl  Support
    Time Machine:
      Skip System Files: NO
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 930.71 GB Disk used: 105.30 GB
      Destinations:
      LaCie [Local] (Last used)
      Total size: 465.64 GB
      Total number of backups: 210
      Oldest backup: 2011-01-02 19:28:34 +0000
      Last backup: 2014-07-31 10:04:28 +0000
      Size of backup disk: Adequate
      Backup size 465.64 GB > (Disk used 105.30 GB X 3)
      Time Machine details may not be accurate.
      All volumes being backed up may not be listed.
    Top Processes by CPU:
          2% Dropbox
          2% WindowServer
          1% RealPlayer Downloader Agent
          0% fontd
          0% launchservicesd
    Top Processes by Memory:
      262 MB Finder
      229 MB mds_stores
      213 MB com.apple.IconServicesAgent
      164 MB Evernote
      164 MB Numbers
    Virtual Memory Information:
      10.43 GB Free RAM
      3.78 GB Active RAM
      560 MB Inactive RAM
      1.24 GB Wired RAM
      8.88 GB Page-ins
      0 B Page-outs

    I stumbled upon a forum discussion of EtreCheck. It seemed like a good way to be proactive for problems
    It isn't. Below is a good way to be proactive for problems.
    How to maintain a Mac
    1. Make two or more backups of all your files, keeping at least one off site at all times in case of disaster. One backup is not enough to be safe. Don’t back up your backups; all should be made directly from the original data. Don’t rely completely on any single backup method, such as Time Machine. If you get an indication that a backup has failed, don't ignore it.
    2. Keep your software up to date. In the App Store or Software Update preference pane (depending on the OS version), you can configure automatic notifications of updates to OS X and other Mac App Store products. Some third-party applications from other sources have a similar feature, if you don’t mind letting them phone home. Otherwise you have to check yourself on a regular basis.
    Keeping up to date is especially important for complex software that modifies the operating system, such as device drivers. Before installing any Apple update, you must check that all such modifications that you use are compatible. Incompatibility with third-party software is by far the most common cause of trouble with system updates.
    3. Don't install crapware, such as “themes,” "haxies," “add-ons,” “toolbars,” “enhancers," “optimizers,” “accelerators,” "boosters," “extenders,” “cleaners,” "doctors," "tune-ups," “defragmenters,” “firewalls,” "barriers," “guardians,” “defenders,” “protectors,” most “plugins,” commercial "virus scanners,” "disk tools," or "utilities." With very few exceptions, such stuff is useless or worse than useless. Above all, avoid any software that purports to change the look and feel of the user interface.
    It's not much of an exaggeration to say that the whole "utility" software industry for the Mac is a fraud on consumers. The most extreme examples are the "CleanMyMac," "TuneUpMyMac," and “MacKeeper” scams, but there are many others.
    As a rule, you should avoid software that changes the way other software works. Plugins for Photoshop and similar programs are an obvious exception to this rule. Safari extensions, and perhaps the equivalent for other web browsers, are a partial exception. Most are safe, and they're easy to get rid of if they don't work. Some may cause the browser to crash or otherwise malfunction. Some are malicious. Use with caution, and install only well-known extensions from relatively trustworthy sources, such as the Safari Extensions Gallery.
    Only install software that is useful to you, not (as you imagine) to the computer. For example, a word processor is useful for writing. A video editor is useful for making movies. A game is useful for fun. But a "cache cleaner" isn't useful for anything. Cleaning caches is not an end in itself.
    Never install any third-party software unless you know how to uninstall it. Otherwise you may create problems that are very hard to solve. Do not rely on "utilities" such as "AppCleaner" and the like that purport to remove software.
    4. Don't install bad, conflicting, or unnecessary fonts. Whenever you install new fonts, use the validation feature of the built-in Font Book application to make sure the fonts aren't defective and don't conflict with each other or with others that you already have. See the built-in help and this support article for instructions. Deactivate or remove fonts that you don't really need to speed up application launching.
    5. Avoid malware. Malware is malicious software that circulates on the Internet. This kind of attack on OS X was once so rare that it was hardly a concern, but malware is now increasingly common, and increasingly dangerous.
    There is some built-in protection against malware, but you can’t rely on it—the attackers are always at least one day ahead of the defense. You can’t rely on third-party protection either. What you can rely on is common-sense awareness—not paranoia, which only makes you more vulnerable.
    Never install software from an untrustworthy or unknown source. If in doubt, do some research. Any website that prompts you to install a “codec” or “plugin” that comes from the same site, or an unknown site, is untrustworthy. Software with a corporate brand, such as Adobe Flash Player, must come directly from the developer's website. No intermediary is acceptable, and don’t trust links unless you know how to parse them. Any file that is automatically downloaded from the web, without your having requested it, should go straight into the Trash. A web page that tells you that your computer has a “virus,” or that anything else is wrong with it, is a scam.
    In OS X 10.7.5 or later, downloaded applications and Installer packages that have not been digitally signed by a developer registered with Apple are blocked from loading by default. The block can be overridden, but think carefully before you do so.
    Because of recurring security issues in Java, it’s best to disable it in your web browsers, if it’s installed. Few websites have Java content nowadays, so you won’t be missing much. This action is mandatory if you’re running any version of OS X older than 10.6.8 with the latest Java update. Note: Java has nothing to do with JavaScript, despite the similar names. Don't install Java unless you're sure you need it. Most people don't.
    6. Don't fill up your disk/SSD. A common mistake is adding more and more large files to your home folder until you start to get warnings that you're out of space, which may be followed in short order by a startup failure. This is more prone to happen on the newer Macs that come with an internal SSD instead of the traditional hard drive. The drive can be very nearly full before you become aware of the problem.
    While it's not true that you should or must keep any particular percentage of space free, you should monitor your storage use and make sure you're not in immediate danger of using it up. According to Apple documentation, you need at least 9 GB of free space on the startup volume for normal operation.
    If storage space is running low, use a tool such as OmniDiskSweeper to explore the volume and find out what's taking up the most space. Move seldom-used large files to secondary storage.
    7. Relax, don’t do it. Besides the above, no routine maintenance is necessary or beneficial for the vast majority of users; specifically not “cleaning caches,” “zapping the PRAM,” "resetting the SMC," “rebuilding the directory,” "defragmenting the drive," “running periodic scripts,” “dumping logs,” "deleting temp files," “scanning for viruses,” "purging memory," "checking for bad blocks," "testing the hardware," or “repairing permissions.” Such measures are either completely pointless or are useful only for solving problems, not for prevention.
    To use a Mac effectively, you have to free yourself from the Windows mindset that every computer needs regular downtime maintenance such as "defragging" and "registry cleaning." Those concepts do not apply to the Mac platform.
    A well-designed computing device is not something you should have to think about much. It should be an almost transparent medium through which you communicate, work, and play. If you want a machine that needs a lot of attention, use a PC.
    The very height of futility is running an expensive third-party application called “Disk Warrior” when nothing is wrong, or even when something is wrong and you have backups, which you must have. Disk Warrior is a data-salvage tool, not a maintenance tool, and you will never need it if your backups are adequate. Don’t waste money on it or anything like it.

  • Applescript or workflow to extract text from PDF and rename PDF with the results

    Hi Everyone,
    I get supplied hundreds of PDFs which each contain a stock code, but the PDFs themselves are not named consistantly, or they are supplied as multi-page PDFs.
    What I need to do is name each PDF with the code which is in the text on the PDF.
    It would work like this in an ideal world:
    1. Split PDF into single pages
    2. Extract text from PDF
    3. Rename PDF using the extracted text
    I'm struggling with part 3!
    I can get a textfile with just the code (using a call to BBEDIT I'm extracting the code)
    I did think about using a variable for the name, but the rename functions doesn't let me use variables.

    Hello
    You may also try the following applescript script, which is a wrapper of rubycocoa script. It will ask you choose source pdf files and destination directory. Then it will scan text of each page of pdf files for the predefined pattern and save the page as new pdf file with the name as extracted by the pattern in the destination directory. Those pages which do not contain string matching the pattern are ignored. (Ignored pages, if any, are reported in the result of script.)
    Currently the regex pattern is set to:
    /HB-.._[0-9]{6}/
    which means HB- followed by two characters and _ and 6 digits.
    Minimally tested under 10.6.8.
    Hope this may help,
    H
    _main()
    on _main()
        script o
            property aa : choose file with prompt ("Choose pdf files.") of type {"com.adobe.pdf"} ¬
                default location (path to desktop) with multiple selections allowed
            set my aa's beginning to choose folder with prompt ("Choose destination folder.") ¬
                default location (path to desktop)
            set args to ""
            repeat with a in my aa
                set args to args & a's POSIX path's quoted form & space
            end repeat
            considering numeric strings
                if (system info)'s system version < "10.9" then
                    set ruby to "/usr/bin/ruby"
                else
                    set ruby to "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby"
                end if
            end considering
            do shell script ruby & " <<'EOF' - " & args & "
    require 'osx/cocoa'
    include OSX
    require_framework 'PDFKit'
    outdir = ARGV.shift.chomp('/')
    ARGV.select {|f| f =~ /\\.pdf$/i }.each do |f|
        url = NSURL.fileURLWithPath(f)
        doc = PDFDocument.alloc.initWithURL(url)
        path = doc.documentURL.path
        pcnt = doc.pageCount
        (0 .. (pcnt - 1)).each do |i|
            page = doc.pageAtIndex(i)
            page.string.to_s =~ /HB-.._[0-9]{6}/
            name = $&
            unless name
                puts \"no matching string in page #{i + 1} of #{path}\"
                next # ignore this page
            end
            doc1 = PDFDocument.alloc.initWithData(page.dataRepresentation) # doc for this page
            unless doc1.writeToFile(\"#{outdir}/#{name}.pdf\")
                puts \"failed to save page #{i + 1} of #{path}\"
            end
        end
    end
    EOF"
        end script
        tell o to run
    end _main

  • Confirm an account and then update a view with the results of customer hist

    Hello Everyone,
    I have a question and was wondering if someone can help.
    In IC Webclient, in a B2B scenario, I change the framework so that when it tries to call BuPaIbaseSearch view, calls instead IRecHistory.
    My intention is that when we need to identify an account, we show the views BuPaSearchB2B and the IRecHistory, side-by-side. OK.
    When we confirm an acount, I need to display the last five interaction records in the IRecHistory view.
    The problem is that when I confirm an acount (at BuPaSearchB2B), this view (IRecHistory) changes his buttons layout, but doesn't fill the table with the data. When if I go to somewhere else, no matter what entry in my navigation bar, and then return, the table is now filled.
    How can I fill this table, right after the confirmation of an account? Maybe a refresh of the IRecHistory view?? How can I manage that?
    Can somebody give me hints?
    Best regards
    Bruno Garcia

    I am not sure to understand what you are explaining. As far as I understand you have two frames and when you change somehing in one and you go to the other passing a table the last one does not get the values but when you return you have the table fill.
    Well, I am also working with frames and I have had the same problems with the attributes. Sometimes it was because they were "Auto", and other it was because the page was stateless instead of statefull. I am not sure enough as to explain you what is the rigth combination so I suggest you to try.
    Good luck.
    -- Oscar --

  • Problem with the result of multiple queries in Web Intelligence (BO XI R2)

    We have a problem with Web Intelligence reports. Behavior of the results is like if we selected the function Count in Designer the properties indicators. Same queries separated one for one report give correct results and together 7 queries in one report give correct results only for the first query and for others (6 others) same results for each date (if report is monthly) or the same result for each hour (if the result is daily) for all Queues tested (other which were not tested have result 0). Even the function Sum inserted into the report structure behaves weird u2013 we have the same result as in the filed (it is a copy of that result, not a sum). We tested queries together in SQL Developer and they give correct results, while in BO big query which contains script from Query 3, Query 2  and Query 1 cannot be completely executed (it executes without end).
    We use Business Objects XI R2 SP3.
    Thanks in advance.

    Hi Peter,
    I guess it is the problem due to the merged dimension and different granurality level in the BO queries. From the document properties uncheck the option of auto-merge common dimension objects or manually unmerge all the common dimensions
    than give it a try.
    I guess this would solve your problem. If not can you provide more query details like what objects you have used in the query.

  • [b]Fill a DataGrid with the returned data of a Stored Procedure[/b]

    Hi
    I'm trying to use a stored procedure that returns data from the table tab_proc1 and a DataGrid that will display the results.
    Any help would be appreciated.
    bebop
    created the following in MS SQL Server:
    a table:
    create table tab_proc1 (col1 char(10), col2 char(10))
    a stored procedure:
    create procedure sp_test1
    as
    select * from tab_proc1
    Code I'm using:
    using System.Data;
    using System.Data.SqlClient;
    namespace spapc
         /// <summary>
         /// Summary description for WebForm1.
         /// </summary>
         public class WebForm1 : System.Web.UI.Page
              protected System.Web.UI.WebControls.DataGrid DataGrid1;
              protected System.Data.SqlClient.SqlDataAdapter sqlDataAdapter1;
              protected System.Data.SqlClient.SqlCommand sqlSelectCommand1;
              protected System.Data.SqlClient.SqlCommand sqlInsertCommand1;
              protected System.Data.SqlClient.SqlConnection sqlConnection1;
              protected sptempdbTEST.DataSet1 dataSet11;
              protected System.Web.UI.WebControls.Button Button1;
              private void Page_Load(object sender, System.EventArgs e)
         //sqlDataAdapter1.Fill(dataSet11);
              //Page.DataBind();
    private void Button1_Click(object sender, System.EventArgs e)
    SqlConnection conn = new SqlConnection("server=localhost;database=apc;uid=ty;pwd=");
    try
         conn.Open();
         SqlCommand cmd = new SqlCommand("sp_test1", conn);
         cmd.CommandType = CommandType.StoredProcedure;
         //cmd.CommandText = "sp_test1";
         SqlDataAdapter myadapter =new SqlDataAdapter();
         myadapter.SelectCommand = cmd;
         myadapter.Fill(dataSet11);
         //DataGrid1.DataSource=dataSet11.Tables("tab_proc1");
         DataGrid1.DataSource = cmd.ExecuteReader();
         DataGrid1.DataBind();
    catch (SqlException ex)
         finally
         conn.Close();

    Why are you posting to an Oracle site when you are using MS SQL Server? This is a discussion forum for ODP.NET which stand for ORACLE Data Provider for .NET. Not MS SQL Data Provider for .NET!!

  • Is there a dialing app which places icons on the screen along with the name being called?

    Does anyone know of an app which places a limited number of phone numbers along with the name of the person being called on the screen of the iPhone?  Our grandfather is 95 years old, and can not operate the small buttons on most cell phones, and has trouble navigating around the phone to make calls.  We just want 3 phone numbers displayed, along with who is being called, so he does not have to navigate to anything except the main screen.  Thanks.

    http://itunes.apple.com/us/app/icon-project-home-screen-icon/id434277910?mt=8

  • Filling a range with the same date in Numbers '09

    I know if you type a date in to a field and then drag the corner it will fill successive dates, but is there a way to fill a range of cells with the same date so I don't need to retype them each time?

    Create a pattern of what you want, then do "fill"
    Enter the same date in two or three cells, in a row or column, then drag to fill the range. Numbers should recognize the pattern you created and continue it.

Maybe you are looking for

  • HT201269 My iphone 4 wont turn on

    My iphone 4 wont turn on. It was in my pocket and then just wouldn't work or turn on. My lock buttons broke too, its also been plugged in for 2 hours

  • HT201303 Security Questions and Answers

    I forgot the answer to the security questions on my account. I tried following a link from another user but no such luck. Someone help me out i haven't even gone to sleep yet!!

  • HOW TO OPEN MULTIPLE BROWSERS?

    Hello out there, I cannot figure out how to have more than one Firefox browser open at a time. If I try to open a second browser, it only shows me the page I have open already. It will not open a second fresh home page. I hope that is clear enough.

  • Swapping .FLV files with Spry

    I'm trying to make an HTML page using Spry to play videos with the Spry element of the page pulling in a Title, Description and filename {clip} from an XML file. So when you click on the Title/Description it replaces the current .flv file with the ne

  • Pb with optoma EP752 projector since sw refresh moving from Mac OS 10.5.4 to 10.5.8

    I did a sw refresh moving from Mac OS 10.5.4 to 10.5.8 and since then my Optoma EP752 projector does not work properly. The default 1024x768 resolution is no more a choice from the monitor section. Instead I am proposed a 1024x516 one which does not