Can we change parameter descriptions in Selection Criteria. YES we can!

Dear All,
I have been struggling some time on some way to change the parameter descriptions in the Query - Selection Criteria screen.
While doing numerous tests on trial-and-error, I accidentally hit upon a solution which appears to work!
To change a parameter description, we simply have to reverse the order in which the WHERE clause is written.
Please refer to the Query below:
I used Customization Tools to create a UDT called @SCANNING
and a UDF called U_ourref
          Title   : ourref
          Description : Our Reference
If I use WHERE clause the conventional way, ie
WHERE
T1.[ImportLog] = @ourref
I get the following Selection Criteria screen:
Query - Selection Criteria Screen
Import Log         .........................
[OK]   [Cancel]
If I write WHERE clause by interchanging the 2 sides of the equality, i.e
WHERE
@ourref = T1.[ImportLog]
I get this screen:
Query - Selection Criteria Screen
Our Reference         .........................
[OK]   [Cancel]
Well! Is this not a way of changing the parameter description?
And it works!
My Problem
The solution is nice. However, I wanted to use LIKE instead of EQUAL TO
in order to allow Query to search for similar items.
With the conventional clause, I can use '%[%1]%' in declaration and LIKE in the WHERE clause.
With the reverse clause, I cannot figure out how to do it.
Could anybody help?
Thanks
Leon Lai
declare @ourref nvarchar (30)
set @ourref =
/*select T2.U_ourref FROM [dbo].[@SCANNING] T2 where T2.U_ourref*/ '[%1]'
SELECT
T0.[TaxDate] AS 'Doc Dt',
T0.[DocNum] AS 'SAP Ref.',
T0.[CardName]  AS 'Supplier Name',
T0.[DocTotal]  AS 'Amount',
T1.[ImportLog] AS 'Our Ref',
T1.[BlockNum]  AS 'Reqn No.'
FROM [dbo].[OPCH] T0
INNER JOIN [dbo].[PCH1] T1 ON T0.[DocEntry] = T1.[DocEntry]
INNER JOIN [dbo].[OJDT] T2 ON T0.[TransID] = T2.[TransID]
WHERE
@ourref = T1.[ImportLog]

Dear István Korös  ,
My main concern was modifying the Parameter Description in the Selection Criteria Screen.
I certainly tried your suggestion, and it works, but unless I modified the WHERE Clause
from :
T1.[ImportLog].@ourref
to:
@ourref = T1.[ImportLog]
the Selection Criteria screen shows:
Query - Selection Criteria Screen
Import Log         .........................
[OK]   [Cancel]
It is only after I have 'primed' the system by using:
WHERE
@ourref = T1.[ImportLog]
that the Parameter Description changes to:
Query - Selection Criteria Screen
Our Reference         .........................
[OK]   [Cancel]
I can then use your line:
WHERE T1.[ImportLog] like '%'@ourref'%'
without any problem. The amended Parameter Description remains!
I noticed something strange:
Once I have 'primed' the system, it always shows the amended description on the Selection screen!
Before priming, it always showed the system description.
Don't know why?
Anyway, I found a trick to 'prime' the system in all my queries to make sure the amended name appears
on the Selection screen. I write:
WHERE
(@ourref    = T1.[ImportLog] OR
T1.[ImportLog] like '%'@ourref'%')
The first line is just for priming to ensure the Parameter Name will be changed.
The 2nd line is the correct code to use.
With this trick, we can change the Parameter Descriptions to whatever name we want.
The only problem is that you lose the function List of available values.
Thanks a lot,
Leon Lai

Similar Messages

  • How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

    How can you change your line access selection?  I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?

        DIVAB71,
    Great question. The line access fees for the account are a set amount and can not be changed unless you are going from a basic to a smartphone or vice versa. If you are wondering about adding the month to month discount if you are out of contract Ann154 has provided great information on how to access and add the feature.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Can you change the description in contacts from iCloud\

    In contact can you change the description from "icloud" to a differant name?? I have several accounts and want them to have a unique name. Any Help?

    You mean in the Music App .... And you can't. You can only view songs in a list.

  • I have two iphone 4's with the same name on one computer.  Can I change the name of one so that I can sync each phone separately

    I have two iphone 4's with the same name on one computer.  Can I change the name of one so that I can sync contacts separately?

    How to rename your device in iTunes

  • I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I understand, as that was the place I would change it before 8.3 but now that option of Mail Days to Sync is not available?  Any idea why that would be?

  • How can I change my apple ID email address when I can't access old email (It's an old work address I can't access anymore)

    How can I change my apple ID email address when I can't access old email (It's an old work address I can't access anymore)? Whenever I try it always wants to send things to my email address to confirm. I have a new apple ID and a new email address, I want to use this now for my iphone and my macbook air but I can't and I'v

    Thanks Lawrence. I've spent over 3 hours on the phone/chatting to online support and none of it seemed to help as it all revolved around resetting emails etc but can't do any of it without my access to my old email. Now my phone won't take cloud because they advised to set up new apple ID and use that, but can't sign out of old one completely. Also doesn't help because my phone and laptop are set up on the old one. Thanks for the help.

  • I want to play video on my computer to make some analysis to frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program

    HI All
    I want to play video on my computer to make some analysis to it's frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program .
    I used IMAQ AVI Read Frame VI
    for example I have avi video It's frame rate is 25 fbs ,my image processing code is very fast that can process more 25 fbs,so I want to accelerate video acquisition

    Hi abdelhady,
    I looked into this further, and reading an AVI file into LabVIEW faster than its frames per second won't be possible. LabVIEW could read in frames faster than 25fps, but because it will be pulling the available frame at that point in time this would just give you duplicate frames. If you want to be able to read in frames at faster than 25fps, you would need to speed up your AVI file before reading into LabVIEW.
    There's a good shipping example to show how to read in from an AVI file, "Read AVI File.vi". You'll notice that they add timing to make sure that the while loop runs at the right speed to match up with the frames per second of the file being read. This is to make sure you're not reading duplicate frames.
    Thank you,
    Emily C
    Applications Engineer
    National Instruments

  • HT204023 si slive in a house with 2 IPhone's and both have hotspots. My question is can we change the name of the network so we can identify them?

    si slive in a house with 2 IPhone's and both have hotspots. My question is can we change the name of the network so we can identify them?

    change iPhone name in your iTunes. click device on the left tab, and hold enter to change iPhone name

  • HT1918 I can't change my country/region with iTune and therefore can't change my method of payment. Help.

    I can't change my country/region on iTunes and therefore can't change my payment information. I've moved from Canada to Australia and am now using an Australian credit card.
    On my device I've gone into settings>iTunes &app store> Apple ID > view Apple ID > country/ region > change country/region. When I try tapping on this last icon, nothing happens. It doesn't give an option to change.
    I've also updated my address with apple.

    Hey there Sheava,
    It sounds like you are trying to change your country in the iPhone settings but when you get to the last step, nothing happens. I would start by closing all the running apps on the phone:
    iOS: Force an app to close
    http://support.apple.com/kb/ht5137
    Double-click the Home button.
    Swipe left or right until you have located the app you wish to close.
    Swipe the app up to close it.
    When you have done that and restart the phone and try changing the country again:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    If the issue persists, try signing out of your account in settings, then restart one more time, sign back in and try to change the country again.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • How can i change the print layout in i cal, how can i change the print layout in i cal

    Im a franklin planner user and would like to convert to ical.  How can I change the print layout in ical so I can print task on the left side and calendar events on the right side.

    Hi Mike3232,
    I'm afraid that it's not possible to adjust the print layout in iCal. Maybe you should think about changing to another program (BusyCal, etc.) that has the option to print the layout you want?
    Good luck!
    Michaël Duwyn

  • I can't resize pictures with my selection tool anymore how can i reset it?

    i can't resize pictures with the selection tool anymore, i can only move them please help.

    Most likely, you inadvertently triggered Hide Bounding Box. To rectify, choose View > Show Bounding Box.
    (Cmd/Ctrl+Shift+B toggles this.)

  • I can't make purchases on my iPhone without answering security questions and I don't know my rescue email how can I change or add a rescue email so I can change my security answers and make purchases

    I can't make purchases on my iPhone without answering security questions and I don't know my rescue email how can I change or add a rescue email so I can change my security answers and make purchases

    Without a rescue email you will have to call Apple to change your security questions:
    See http://support.apple.com/kb/HT5699

  • When I connected my iPhone 6 to my iMac to download new photographs they were downloaded in .aae format. How can I change them back to jpg? And how can I get jpg in future?

    When I connected my iPhone 6 to my iMac to download new photographs they were downloaded in .aae format. How can I change them back to jpg? And how can I get jpg in future?

    Sync the apps to the iPod via iTunes. Make sure that the apps are chaec to syc and the proler boxes checked in the Apps pane for the iPod in iTunes.

  • Description change in query report selection criteria

    I created a query report with certain criteria but in that i suppose to change the description .
    for example
    Posting date   greater than
    Posting date   lesser than
    but i need this selection criteria
    as
    Posting date  from
    Posting date  to
    regards
    kavitha

    Hi Kavitha,
    Unfortunately, it is not possible to change the system field description.
    Refer to this thread
    Re: Parameter Display Name Reg.
    Regards,
    Vijay Kumar
    SAP Business One Forums Team

  • Change LO Cockpit Initialization Selection Criteria

    We would like to use the 2LIS_12_VCITM DataSource at our organization to report on delivery information.  I am encountering a problem because I would only like to Initialize data pertaining to specific shipping points. 
    The statistical setup does not contain shipping point or any other field I can use to exclude the data I do not want.  If I am forced to do the setup for all data and filter in the update rules my volume & runtime will be unnecessarily large.
    Is there any way to add additional fields to the selection screen ( OLI8BW ) ?
    Thank you!

    Unfortunately none of the delivered selection criteria for the Statistical Setup will eliminate the documents we don't want to include.
    The delivered options are:
    Archiving Session (N/A)
    Sales Org (Doesn't Differentiate as needed)
    Company Code (Doesn't Differentiate as needed)
    Sales Doc # (No specific range that matches requirements)
    Any other suggestions that would allow me to add another field to the selection options?

Maybe you are looking for

  • Changing the artist name

    I am probably missing something easy, but I would appreciate any help you can give. I have downloaded many songs from the internet that were in compilation albums and the artist name on I-tunes shows up as "various artists." I know the correct artist

  • How do I access photo files from Aperture Vault for Lightroom?

    I am considering switching from Aperture to Lightroom on the Mac. Aperture uses Vaults to store its photo files. What is the proper procedure to access these files so that Lightroom can use them? If I switch, the files can be completely removed from

  • Multple workspaces in sys-jazn-data, attn: Frank

    Frank: If one has multiple applications linked from the same page, is it possible to define different workspaces within the same system-jazn-data.xml. I rememeber you mentioned that app is always "current-workspace-app". However, each link starts a s

  • Quality to Quality Movement in Qm

    Hi, Is it possible to do quality to quality stock transfer in Usage Desicion? How? Thanks, Raymond

  • Safari: How to follow a link that looks like a phone number?

    When I try to log in to GrandCentral Mobile, it presents me with my phone number as a link after the log in page. If I touch the link to confirm and follow it, the iPhone recognizes the number format and offers to dial it for me. If I hit "cancel" it