QueryExecute and QuerySaveAsFolder not working correctly

Hi,
I have a strange problem using the Filter Tokens with QueryExecute and
QuerySaveAsFolder.
I create a filter using the following token commands.
FilterCreate(150;FALSE)
FilterGroupBegin(17833584;316)
FilterSetText(17833584;331;"DM*"; 225; "DMS nummer")
FilterGroupEnd(17833584)
EnvPrefFullName()
QueryExecute(;17833584;4;654;Libraries:"PODOM.UTR-DMS01.DMS001";;):
When running this on my development test installation of GW 7.0.1 the
result window opens and the result is displayed. When looking at the
properies of the search it tells me correctly '...where DMS nummer
contains "DM*"'.
When trying the same software on the production installation (same versie
of GW client) the result window opens and nothing is dispayed, teh
properties showing an empty search.
When using the QuerySaveAsFolder like this
QuerySaveAsFolder("Basismap van ddinformatica\Dossierkast\Zoek resultaat
(12.43.52)";"DDI document
selectie";0;1;"";17833584;4;654;;Libraries:"PODOM. UTR-DMS01.DMS001";;)
Again on the development PC everythink works like intented, on the
production PC the result is empty. But the properties of the search are
looking correct '...where DMS nummer contains "DM*"'. So ther should be a
result. When I open the advanced function of the search, change nothing
and click Ok, the result is displayed correctly.
Can someone explain to me what I'm doing wrong? As far as I understand
the token commends are correct.

Hi again,
I talked to Tommy last week at the GroupWise DevLab in Brussels, and he
ask me to upload a sample code:
Form:
object Form1: TForm1
Left = 1020
Top = 562
Width = 388
Height = 306
Caption = 'Form1'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 8
Top = 12
Width = 48
Height = 13
Caption = 'Library ID:'
end
object Label2: TLabel
Left = 8
Top = 36
Width = 22
Height = 13
Caption = 'Field'
end
object Label3: TLabel
Left = 8
Top = 60
Width = 41
Height = 13
Caption = 'Contains'
end
object Edit1: TEdit
Left = 64
Top = 8
Width = 121
Height = 21
TabOrder = 0
Text = 'domddi.poddi.CNVPost'
end
object Edit2: TEdit
Left = 64
Top = 32
Width = 121
Height = 21
TabOrder = 1
Text = 'DMS nummer'
end
object Edit3: TEdit
Left = 64
Top = 56
Width = 121
Height = 21
TabOrder = 2
Text = 'CN*'
end
object Button1: TButton
Left = 192
Top = 8
Width = 75
Height = 23
Caption = 'Search'
TabOrder = 3
OnClick = Button1Click
end
object Button2: TButton
Left = 192
Top = 40
Width = 75
Height = 23
Caption = 'QueryFolder'
TabOrder = 4
OnClick = Button2Click
end
object Memo1: TMemo
Left = 8
Top = 80
Width = 361
Height = 185
TabOrder = 5
end
object cbUseGroup: TCheckBox
Left = 280
Top = 8
Width = 89
Height = 17
Caption = 'Use Group'
Checked = True
State = cbChecked
TabOrder = 6
end
end
Source:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Forms,
ActiveX, ComObj, Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Edit1: TEdit;
Label2: TLabel;
Edit2: TEdit;
Label3: TLabel;
Edit3: TEdit;
Button1: TButton;
Button2: TButton;
Memo1: TMemo;
cbUseGroup: TCheckBox;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
procedure Search(SaveAsFolder: Boolean);
public
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Search(SaveAsFolder: Boolean);
var
ReturnString: String;
FilterHandle: String;
CommandStr: String;
user: String;
Commander: Variant;
Res: Integer;
begin
Commander := CreateOleObject('GroupWiseCommander');
Res := Commander.Execute('FilterCreate(150;FALSE)', FilterHandle);
if Res = 0 then
ShowMessage(ReturnString);
Memo1.Lines.Add('FilterHandle : ' + FilterHandle);
if cbUseGroup.Checked then begin
CommandStr := 'FilterGroupBegin(' + FilterHandle + ';316)';
Memo1.Lines.Add(CommandStr);
Res := Commander.Execute(CommandStr, ReturnString);
if Res = 0 then
ShowMessage(ReturnString);
Memo1.Lines.Add('ReturnString : ' + ReturnString);
end;
CommandStr := 'FilterSetText(' + FilterHandle + ';331;"' + Trim
(Edit3.Text) + '";225;"' + Edit2.Text + '")';
Memo1.Lines.Add(CommandStr);
Res := Commander.Execute(CommandStr, ReturnString);
if Res = 0 then
ShowMessage(ReturnString);
Memo1.Lines.Add('ReturnString : ' + ReturnString);
if cbUseGroup.Checked then begin
CommandStr := 'FilterGroupEnd(' + FilterHandle + ')';
Memo1.Lines.Add(CommandStr);
Res := Commander.Execute(CommandStr, ReturnString);
if Res = 0 then
ShowMessage(ReturnString);
Memo1.Lines.Add('ReturnString : ' + ReturnString);
end;
if SaveAsFolder then begin
Commander.Execute('EnvPrefFullName()', User);
//User := 'Basismap van ' + User + '\Dossierkast\Zoek resultaat (' +
FormatDateTime('hh.mm.ss', now) + ')'
User := User + ' Home\Cabinet\Zoek resultaat (' + FormatDateTime
('hh.mm.ss', now) + ')';
CommandStr := Format('QuerySaveAsFolder("%s";"DDI document
selectie";0;1;"";%s;4;654;;Libraries:"%s";;)', [User, FilterHandle,
Edit1.Text]);
end else
CommandStr := Format('QueryExecute(;%s;4;654;Libraries:"%s";;)',
[FilterHandle, Edit1.Text]);
Memo1.Lines.Add(CommandStr);
Res := Commander.Execute(CommandStr, ReturnString);
if Res = 0 then
ShowMessage(ReturnString);
Memo1.Lines.Add('ReturnString : ' + ReturnString);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
Search(False);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
Search(True);
end;
end.

Similar Messages

  • I have an iPhone 4 on contract and its not working correctly , what should I do ?

    I have an iPhone 4 on contract , I only have this 5 and a half months and the iPhone is not working correctly and i do not have insurance .. What should I do ??

    It sounds like you did not purchase it at the Apple store? That doesn't matter - you can still take it to Apple to troubleshoot it.
    You can also try to troubleshoot it with the help of the folks here - if you want to do that, let me know and I'll ask that your post be moved to the iPhone forum where you're more likely to get knowledgeable answers, ok.

  • T42p vista fn + f3 and fn + f4 functions (turn off screen and sleep) not working correctly

    Hi -- I recently installed windows vista on my T42p.  It works fine except that the fn+f3 and fn+f4 functions do not work as expected.  Before installing the hotkeys driver, the fn+f4 function worked correctly while f3 did not (going to sleep worked, turning the monitor off did not).  I then installed the recommended hotkeys driver.  Now fn+f4 makes the monitor turn off while f3 does nothing ... fn+f4 is supposed to put the laptop to sleep.  On top of this, if i select "sleep" from the start menu, the computer turns the monitor off instead of going to sleep.
    Presumably, the sleep button could still be telling the computer to go to sleep, but the actual operation of going to sleep is now broken?  Just a guess.  Anyways -- anyone know how to resolve this so that fn+f3 turns my monitor off and fn+f4 puts my computer to sleep?

    I've too this problem, but more, my sound mute wasn't worked (for deblock, but it can block it few second before...) 5 days in 5-6 instalation of three version of winxp: winxp ru x64 sp2, winxp es/ru sp3 x32.
    eventually I've found and ran "TPOSDSVC.exe" in instalation directory and it give an opportunity  deblocking the sound volume!!!!!!!!!!!! and I don't need more functions 
    volume levels and brightness adjustment worked well without OSD (before I ran TPOSDSVC.exe) and with OSD.
    and now I don't know worked this bustered sound driver in winxp x64.
    ThinkPad T61 7664

  • Time change for daylight savings and Alarms not working correctly

    we have 3 iPhones in our house. 2 were set to auto time change for daylight saving and one wasn't. 1 did the auto time change with out an issue and all alarms worked ok. The other 2 have had issues with not been able to set the alarms ie set alarm for 0630 and it goes off at 0530 even though the time is set correctly. The 1 that was set to autotime worked fine until I switch auto time off, now the alarms on this one wont work either. well they work but just at the wrong time. The 3rd phone will allow alarms to be set, but the alarm will go off an hour earlier and this phone will not allow the alarm to be set for 0630 at all.
    Has anyone had this issue and resolved it. It makes getting up for shift work a right pain..

    Read here:
    http://www.appleinsider.com/articles/10/10/11/applesays_ios_software_update_to_fix_pesky_alarm_clockbug.html

  • Clientless VPN and Java not working correctly

    In a recent discovery we found that the newest version of java will not work with our Cisco SSLVPN setup
    We are using an ASA5510 with 8.0.4 IOS version and 6.1.3 ADSM version and most users use an mstsc.exe smart tunnel to rdp into our terminal server farm.
    Our laptops are being imaged with Java 6 update 3 (this works fine) then upgraded to Java 6 update 11, after which the smart tunnel appears to launch but a connection cannot be established. Reinstalling the older version of Java resolves the problem.
    I was wondering if anyone else has encountered a similar problem and found a workaround. Currently, company equipment is not being upgraded to the latest version of Java but personal equipment is a different story.

    To get the old downloader back follow the directions below.
    # In the [[Location bar autocomplete|Location bar]], type '''about:config''' and press '''Enter'''. The about:config "''This might void your warranty!''" warning page may appear.
    # Click '''I'll be careful, I promise!''', to continue to the about:config page.
    # Filter '''browser.download.useToolkitIT'''.
    # Double click and '''make sure it says true.'''
    # You now have the classic downloader back! Yay!
    Any issues or confused?
    * http://kb.mozillazine.org/About:config

  • PSE 11 - MacOX 10.7.5  Printing Wide Format Printer and Profiles Not Working Correctly

    Macosx 10.7.5
    When I start up PSE11  and go to print I set up the paper size then select a Printer Profile.  When print the image it is a mess and seem to be black and white it is as if I printed on the wrong side of the paper.
    I then go and try to print it again.   Now it all works as it should beutiful colours and spot on.  all other print following this works.
    Then I shut down PSE11.   Start it up again.  Guess what  first print is a mess again.   all others after are fine.
    I uninstalled PSE11, deleted prefs.  and reinstalled PSE11.    Same thing..   first print a mess all others ok.
    the issue can be replicated consistantly......
    no problems with PSE10 or PSE9
    any suggestions?????
    cheers elo

    Thank You for your suggestions.
    I have been printing using PSE for over  14 years going back before the term PSE came up.  I have done this professionally using profiles from others and those I generate myself..
    All the things you  mentioned have been done.
    The main  point missing in your suggestions is   It is only the first print every time I open up PSE11 that does not work...
    at completion of print I immediately go back to the file command and say print and then bypass all settings and print again.   this time and every other print aafter are perfect...      I did not change one single setting...
    I know about printer and adobe settings etc.     but thanks for going through the list it was a good reminder of how to remember everything sometimes we rush and forget something...
    Finally    It works PSE6, PSE9, PSE10, CS5, Lightroom 4.   I think I have the settings right......
    Any suggestions for how to get PSE11 to force the settings for the first print would be appreciated..
    Only thing I have not done is upgrade to the latest version of the epson driver.  Released less than a month ago to provide support for mountain lion.(iam only on lion)  Maybe just maybe???   you never know.   Will try this when I finish by next batch of prints.
    I will back up as I do weekly...    Still have the old driver from way back in release 10.5.8   will try to fire up to 10.5.8 and see what happens....
    cheers elo
    Message was edited by: Elo Laugesen

  • Keyboard and mouse not working correctly after installing Windows 8.1

    I was forced to upgrade my computer to Windows 8.1. My keyboard worked fine until the sytem did a reboot. Numbers on keypad stopped typing and letters were being capitalized when the caps lock was off and the numbers across the top will only type the symbol above the numbers. 
    I looked up this problem and it seems I need to enter UEFI settings and disable Intel XHCI mode. When I get into the UEFI settings I cannot make any selection from the startup menu. Both my keyboard and mouse stop working. 
    Any suggestions?
    This question was solved.
    View Solution.

    Thank you for posting a response. Fortunately, I didn't have to try your solution because the computer resolved itself. 

  • Email counter and connection not working correctly after updates

    How do I fix the email counter on my dock bar it shows that I have 214 unread and they have all been read?
    Also, my email is constantly asking me to enter my password to establish connection this is after I have been working in email and sending and receiving emails fine.  Does anyone have a fix for this?

    I did find the problem with the counter.  It had to do with my Gmail account not my other email account.  I still haven't found the answer to the question of my connections to my email accounts are dropping and need me to enter my password though.  I have made sure that the passwords is correct that is entered.

  • HFR Range from and to - Not working correctly for hierarchies?

    Hi All,
    Can anyone help me with my below issue relating to ranges in Oracle’s Hyperion Financial Reporting Studio tool.
    The issue I’m experiencing is that when I create a report and use the ‘Add Relationship’ -> ‘Range’ option for my month dimension, the correct months are returned as long as the start month and end month are not the same.
    In our setup we have 2 month hierarchies, one for the fiscal year (July to June) and another for the calendar year (January to December). The problem that I’m noticing in the report, is that when I enter a range from July to July, that instead of returning July, it returns July, August, September, October, November, December, January, February, March, April, May, June, July. My though it that it is looping through both the fiscal and the calendar hierarchies to return the range, instead of only the fiscal hierarchy. Both these hierarchies have the same members, however ordered differently.
    Does anyone know of a way to resolve this within HFR?
    I noticed that when creating the range, there is an option to ‘select a hierarchy’. At the moment there is only 1 choice ‘ Period’, however I’m curious if I could create and link a hierarchy to the fiscal hierarchy, that this might resolve the problem?
    Any ideas?
    Thanks,
    Lance

    Hi Lance,
    IIRC Range uses the first (main) hierarchy - so you'll need to move the Fiscal year one to be first in the outline.
    Cheers, Iain

  • Dreamweaver and Fireworks not working correctly

    I am taking a DW8 class. I have MANY photos I want to use
    fireworks for. Installed free 30 trial of DW8 and Fireworks from my
    books CD. Did what DW8 said in creating web photo. Used Fireworks
    BUT when I clicked on the photo to enlarge I got the black box
    around it saying I could enlarge it NOT view it like a picture
    show. What I want is to have all photos per event show up and then
    let people click on the photo to see either that ONE OR ALL but
    full screen. What do I need to do? Should I try downloading the 30
    trial from this site for both programs instead of the CD from the
    DW8 instruction book?

    Hi
    The software crashes or freezes.  Fireworks will only let me save an item twice, after that, I get an error message that tells me I do not have permission to save that item because it is locked, so then have to save into a different folder or directory, crazy.
    When trying to uninstall in control panel, will not open the uninstall, think some kind of permission problem.
    I may just do a system restore back to how the computer was purchased, then install all programs again.............  See if that works first.  None of the other programs are doing this; however, just Adobe, so not sure what happened, just started working like this out of the blue.............?
    I am going into a long meeting this morning, so can only work on it in the afternoon.
    Thanks for replying...........
    Tracey
    Sent from Samsung tablet

  • RAM previewing and rendering not working correctly

    Hi,
    Today I was just about finished editing a video on CS6 and then when I'm about to add the last effect and render it it stuffs up on me:(. What happens is that while RAM previewing at some point during the loading of the preview it will stop loading, It will then proceed to play the ram preview on loop and when I press a button to stop it a small box pops up in the centre of my screen and the ram preview bar to show what has loaded (the one which shows green for parts that are loaded and blue for cached) turns black and sometimes other parts of after effects turn black. This has happened before and I fixed it by uninstalling and reinstalling After Effects about 6 times. I would do that this time though I would like to know the cause of it and any possible fixes as it is quite irritating. Another thing that may be happening is the RAM usage is slowly filling as I render. This has happened before on my laptop and I did not manage to fix it though it was not related to the first issue that time. The last time when it happened on my laptop the RAM usage eventually filled up to 100% and it would no longer render. I am not sure if it is happening this time as it is still currently rendering though I will update the thread if it does. Finally my render is going very slowly, I am not sure if this issue is realted to any of the above or if it is just the effects I am using though. My memory and multiprocessing settings are using 6 cores of 7 with 2 GB of ram allocated to each with multiprocessing on. My ram allocated for other programs is 6GB. To fix these Issues so far I have tried clearing the cache, purging the memory and image cache, restarting  my computer and reinstalling after effects. My specs are:
    i7 4770k non overclocked
    GTX 780
    G.Skill Ripjaws Z 2133mhz 32GB
    Samsung 840 pro
    Seagate Barracuda
    MSI Z87-G45
    H100i cooler
    Any reply is appreciated
    Thanks in advance
    Sam

    How much experience do you have with AE? Ram preview can be lengthened by adjusting the resolution of the composition window, different parts of the project can be previewed using the work area, and preview length and render time are both a function of composition frame size. Complex, memory intensive effects like particle systems will reduce the render time and the length of a ram preview. Without knowing the details of your composition it's hard to say if you are running into a bug, running out of resources, or experiencing normal behavior.

  • Update --PSE 11 - MacOX 10.7.5  -MORE-Printer and Profiles Not Working Correctly for first print

    Adobe seem to have implemented the CS5 print screen format.
    PSE11 
    1.  page setup the entire OSX print screen comes up where you then set all your settings including paper type, paper size and all other things including paper format, colorsync or epson etc.     you then save it       and finally go to print.    completely different.
    2.  options  select profile
    3. print
    it also seems everytime you go to print the actual paper size is not remembered you must go in select page set up again   do nothing then go out and it adjusst itself again.  Yes, my osx preference file is set recognize this printer as my primary printer.
    More as the story unfolds.    I have yet to hear if anyone have this problem.
    cheers elo

      It does seem like strange behavior but thanks for sharing the work around.

  • PSE 11 - MacOX 10.7.5  -MORE-Printer and Profiles Not Working Correctly for first print

    As suggested by adobe support contacted Epson.   What I expected no help.  Since it works ok with PSE10, PSE 9, CS5 it could not be their problem. 
    However PSE 11 have changed something in the sequence of events.
    I then downloaded a trial version of Lightroom 4.   no problem everything works.
    I have been offered a refund for PSE11.     That is not encourageing.  Does that mean wait for PSE12?????
    I developed a bypass - every time I start up PSE11  I just print a dummy image thumb nail size.   then go on to regular printing and all works.
    original discussion
    Macosx 10.7.5
    When I start up PSE11  and go to print I set up the paper size then select a Printer Profile.  When print the image it is a mess and seem to be black and white it is as if I printed on the wrong side of the paper.
    I then go and try to print it again.   Now it all works as it should beutiful colours and spot on.  all other print following this works.
    Then I shut down PSE11.   Start it up again.  Guess what  first print is a mess again.   all others after are fine.
    I uninstalled PSE11, deleted prefs.  and reinstalled PSE11.    Same thing..   first print a mess all others ok.
    the issue can be replicated consistantly......
    no problems with PSE10 or PSE9
    any suggestions?????
    cheers elo

      It does seem like strange behavior but thanks for sharing the work around.

  • Vim issues...meta keys and colorscheme not working correctly

    The first issue isn't really a vim problem, but it's related.  When running Vim in a terminal, my meta key bindings don't work.  I've tracked it down to a problem with Xfce's Terminal as noted here: http://vimdoc.sourceforge.net/htmldoc/m … p-alt-keys
    ...but I'm not sure exactly how to fix it.  I suppose I could always switch to another terminal, but I'd like to stick with Xfce's version if possible.
    The second issue is that my color scheme isn't being set when I first load up gVim.  As soon as I open a file, it properly displays, but the "splash" page doesn't show it.  I'm using desert (who doesn't) and this is what it looks like when I first load up gVim:
    I did stop using a separate <code>.gvimrc</code> in favor of putting everything in my <code>.vimrc</code> file under a conditional, and all the other settings work just fine.  Here's what that conditional looks like:
    if has( "gui_running" )
    set columns=84 " Set the window's width
    set lines=43 " Set the window's height
    set guioptions-=T " Remove the toolbar from the window
    set guifont=Terminus 12 " Use a clean monospaced font
    colorscheme desert
    else
    set background=dark
    colorscheme desert
    endif
    In case you're curious, here's my entire <code>.vimrc</code> file.

    phrakture wrote:IIRC this happens for because gvim does not find a ~/.gvimrc and reads /etc/gvimrc after ~/.vimrc (I think).
    Try symlinking ~/.vimrc to ~/.gvimrc
    That solved the problem for me. Thanks 

  • Yahoo thumbs up (and down) not working correctly, but do on Safari

    Yahoo news sites offer a thumbs up or down to support or not a comment from a posting. In many cases this feature is locked out with Firefox but it works with safari at the same moment on the same comment. I am on a intel macbook pro running 10.6.8. Thanks

    My problem is that comments I did not thumb show that I did thumb them. These "fake" thumbs may be up or down and stop me from thumbing that comment. Is this only a yahoo glitch or something worse?
    In the snip image the colored thumbs you see I did not do. They are only supposed to be colored if I thumbed them.

Maybe you are looking for

  • Reinstall of OS: iTunes Library on external drive not recognized

    I've always had my iTunes library on my external drive. Now that I reinstalled my OS iTunes will not open the library. I've navigated to the correct library using the advanced preferences but that's not doing it. I've tried discarding the existing li

  • How to deactivate a checkbox

    In a dynpro, i have a checkbox and a subscreen. The subscreen has 3 or 4 checkboxes. The requirement is that, if the checkbox in the main screen is not checked. Then all the checkboxes in subscreen should be made INACTIVE .( they should be visible )

  • DI Access to AS400 data type error

    Running DI 11.7.3.  We are pulling data from an AS400 and are erroring out on the table read.  The field we are erroring out on is a numeric (7,0), yet the data is '?0?0?0?'.  If I remove the field in the data flow, it runs fine.  Is DI capable of pu

  • About how to code  for below mentioned requirement

    Hi, i need code for this....      GPC Data (logic to get GPC code is as follows:) •     Read AMPL with BMATN = material number and sy-datum GE datuv and sy-datum LE datub If record found, set GPC Code = ampl-ematn Else.       Select mara where bmatn

  • Console management problem

    Hi Friends,   I have been installed ECC6 IDES. Now i run the console management it asks password for SAP\Administrator. What is pass password? My system password is blank. How to get the forgot password. Thanks & Regards, Vallamuthu