How to query for specific filename
I'm using a modified folder_action script to ftp files up to a server once they're finished being created.
Is there a way to query for a specific filename to be present in the folder prior to passing it to the actual ftp function? The catch is that the filename will always be in the format of <mmddyy>.mp4. During the process that is creating the actual file to be ftp'd, various temp files are created prior. I'd like to ensure that only the final version of the mp4 is acted upon, which is the one with the mmddyy as the filename.
The folder action already has the folder and the item paths passed to it, so you can get the individual file name by using something like:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFDDFF;
overflow: auto;"
title="this text can be pasted into the Script Editor">
on adding folder items to this_folder after receiving added_items
repeat with AnItem in added_items
if text (count (this_folder as text)) thru -1 of (AnItem as text) is "<mmddyy>.mp4" then
-- whatever
end if
end repeat
end adding folder items to
</pre>
There are also temporary folders that the system provides, so you shouldn't have to use the folder with the attached action at all:
get path to temporary items
get path to temporary items from user domain
Similar Messages
-
JPQL Query for specific usecase, help needed
Does anyone knows how to write the JPQL query for this specific use case.
Take 3 tables,
Table 1 contains bids for many auctions (Bid table)
Table 2 Contains many auctions (Auction Table)
Table 3 contains many users (User Table)
I need a query to retrieve all the highest bids per auction for a particular user.
For example if the user has bidded on 10 auctions., but for each auctions has placed 3 bids each. Following the query, I would expect to get 10 bids back, each being the highest per auction.
A Bid has a bid value that can be used for filtering.
Thanks
PeterIt would be something like the JPQL version of 'select * from bids join auctions using (auction_id) where bids.userid = ? group by auctions.auction_id order by bids.amount desc'. But this is primarily an SQL question, and only secondarily a question as to how to translate that into JPQL, which should be straightforward.
-
Create POWL query for specific user (not self)
Hello All,
was wondering if anyone had an idea on how to create a POWL query for a specific user. Even the low level method in class CL_POWL_QUERY_ACCESSOR seem to assume that you either are creating an administrator query for any/everyone or just for yourself.
One option is to create multiple queries (for each selection criteria that I want) and assign these directly to user (rather than the role) in the config - but that's config that I'd need to transport up - for what is essentially user level personalisation.
My strong favourite at the moment is to throw a breakpoint in CL_POWL_QUERY_ACCESSOR and manually change the user name as I save new queries in directly in production - but that's not exactly the cleanest solution.
Surely someone has had a need to actually create queries for users, not just delete them as per program POWL_D01?
Many thanks for any hints and tips
Cheers,
ChrisWell - I should point out that you don't have to transport those user assignment of queries - tables are production maintainable. However, you do have to transport up the query itself - so not ideal.
Oh well - don't think this one has an answer => closing it to open another question.
Cheers,
Chris -
Hi,
I have this problem, How can query a two table?
Table A -> Table B
id table-a_id
name table_b_name
the relationship is one-to-many
How can I get the result?
Hope my question make sense
cheers.
thanks a lot.I bet you have more luck looking for an answer in a SQL forum.
-
How to query for messages on JMS Queue?
Hi All,
What is the best way to query on a JMS Queue? I would like to query for messages based on values entered on a screen. Can this be achieved using the JMS Adapter or any other adapter?
JDev : 11.1.1.4
Thanks and Regards.Hi,
I am not 100% clear on your requirement and what selection criteria you need. I would be surprised if you need the DB adapter. If you just want to query how much message are in the queue or other related queries for example related to header information then DB adapter can be used. This only works when JMS queue is stored in the database. Personally I have never come across this requirement.
I suggest to look in more detail of the JMS adapter. The JMS adapter can be used to select (subscribe) to certain messages. Please read the below for more information:
http://docs.oracle.com/cd/E17904_01/integration.1111/e10231/adptr_jms.htm#CJACBCHJ
The message is automatically removed from the queue (implicit delete) the moment it is picked-up. I would not recommend deleting a message directly from the queue using DB adapter. What is the point of publishing the message in the first place?
Thanks
Sander -
Query for specific registry key
hi all,
could someone,help me on how to query sms DB about specific registry key.
i need to create collection based on this query:
all machines that have on the HKLM\software\microsoft\sms\mobile client\software distribution\execution history\system
path a specific package ID entry.Look at Program Rerun behavior setting on an advertisement
http://technet.microsoft.com/en-ca/library/bb694016.aspx
Program rerun behavior
Specifies whether the advertised program will be rerun on the client computer if it has previously been run before the scheduled mandatory time.
Always rerun program: The program will always be rerun on the client when the advertisement is scheduled, even if the program has already
been successfully run. This is particularly useful when using recurring advertisements in which the program is routinely updated, as with some virus detection software.
http://www.enhansoft.com/ -
How to query for foreign encoded text via REST service
I am using APEX 4.2.1.00.08 to publish RESTful web services that query a table of place names. The place names include foreign encoded alternates. My search field has type of NVARCHAR2 and the db has NLS_CHARACTERSET of AL32UTF8. Querying for foreign encoded names works fine from other applications (e.g. TOAD, ArcGIS).
In APEX under 'SQL Workshop | RESTful Services' I have created a module, resource template, and resource handler. When I use 'Set Bind Variables' to test the service, it works for 'English' names with no problem (e.g. 'London').
However, when I query for a foreign equivalents like 'ロンドン', the Japanese version of 'London', I get the following error:
400 - Bad Request
The request path contains illegal characters
How do I get foreign encoded place names to work as the bind variable value of a REST service?Does this query help?
select /*+ parallel(4) */
pk.table_name parent_table_name, pk.constraint_name pkey_constraint,
fk.table_name child_table_name, fk.constraint_name fkey_constraint, fk.r_constraint_name
from
user_constraints pk,
user_constraints fk
where
pk.constraint_name = fk.r_constraint_name
and pk.constraint_type='P'
and fk.constraint_type='R' -
How to query for XML-attribute with XPATH
Hi,
Isn't there somebody, who can tell me how to query an Attribut of an XML-element correctly ?
All my trials lead to empty rows. What's worng in my XPATH-expresion ?
XML-file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xmlexport>
<itsystem guid="e51b91d1-ab0f-11db-2cd7-001641105333">
<field fieldidentifier="currentVersion" />
<field fieldidentifier="marketdatacosts">0</field>
I can query fine the elements and sub-elements, but not attribute 'guid' of /xmlexport/itsystem. Here some trials, all lead
SELECT t.* FROM CORIA."xmlexport156_TAB", xmltable ('/xmlexport/itsystem ' passing object_value COLUMNS
GUID VARCHAR2(1000) path '[@guid=*]') t
various versions for Xpath:
path '[@guid="*"]'
path '/[@guid=*]'
path '[@guid=*]'
xmltable ('/xmlexport' ...
path '/itsystem/[@guid=*]'
... combinations of part 1 and 2
thanks for any hint, LaoDeYou can either get them directly, or fetch the attribute in your xquery and put them in returning xml fragment, then get them like normal element.
Method #1:
path '@guid'
Method #2:
xmltable(
let $is := /xmlexport/itsystem
return <r><guid>{$is/@guid}</guid></r>
passing object_value
columns guid varchar2(1000) path '/r/guid') -
How to query for unacceptable characters
Hi there. I can query for acceptable characters but would like to query for unacceptable characters. Please see the below thread. thanks in advance!
How to find Special Characters in a table ?
~DarbySorry, missed it in the other post (already saturday here). So without using regular expressions. I'm a little confused now I must say.
You want to search for unacceptable characters (I assume those characters are known this time):
length(the_column) - length(replace(translate(the_column,'UNACEPTBL','*'),'*','')) > 0
Regards
Etbin -
How to query for a NULL value?
Hi all,
how can I query for a NULL value in a ViewObject. I tried to set null as where-clause param [setWhereClauseParam(0, null)]. But the created statement looks like this:
SELECT ...
FROM ...
WHERE param = null
I would expect it to create something like WHERE param IS NULL. I hope anybody has a solution for this.
Thanks,
AxelI think you should use setWhereClause("COL_NAME IS NULL")
You could use setWhereClauseParam(0, "NULL"), but only if you have a predefined query similar to: "SELECT X, Y, Z FROM A WHERE X IS :0" (which is a pretty useless query, as you can ONLY set "NULL" as the value for ":0"). -
Hello -
I have a large number of E-mail addresses that were corrupted with hidden characters. I have a bunch of question marks, squares, etc. mixed in with the E-mail addresses. Is there a way to query for these values?
Thanks in advance for guidance.Assuming you can identify the numeric range of the invalid characters (i.e. ASCII 0-31) and the numeric range of the valid characters, you have some options. There is an example of replacing all the invalid characters in a string using the TRANSLATE command here
http://www.ddbcinc.com/askDDBC/topic.asp?TOPIC_ID=216
(note that you have to be able to define functions that return the invalid characters and the valid characters). You can find out where there are invalid characters by comparing the length of the raw column to the length of the translated column
SELECT *
FROM <<table>>
WHERE LENGTH(email) != LENGTH( TRANSLATE( email, safeCharacters || nonPrintingCharacters, safeCharacters ) )Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
How to get the specific filename
Hi..
I want to get the specific file where the filename contains current date like "asd.11.20051226.03.dat". Then, i want to write the filename to a text file.
Now, i only know how to get the list of file in a specific directory& write the whole list to a text file. How to filter the list of filename because they have "dot" in their name?To determine if a string contains a dot:I have a feeling that about 10 seconds after he figures out whether the filename contains a dot he's going to need to look a little deeper to determine whether he found wakka.wrongfile.txt or 11.20.1980.the.file.hes.looking.for.data. Maybe?
-
Group Policy Item level targeting LDAP Query for specific AD Sites
Hi Everyone,
I'm looking to try and take advantage of Group Policy Preference Item Level Targeting to publish user Proxy settings based on what AD Site a user is located in.
The company I work for has multiple proxies (for multiple regions). We have hundreds of AD Sites listed within our AD S and S setup. I know that I could potentially list every AD Site that requires a particular proxy, but this would generate additional admin
overhead each time a new site is commissioned, as well as each time a site is decommissioned (this is a construction company, so may "sites" can fluctuate rapidly).
Due to this, I would like to know if it is possible to filter by LDAP query, and filter for each proxy, based on a portion of the text/name of the AD Sites (as we use a specific naming convention for our sites, this could be dynamic enough for us to not
have to add or remove additional AD sites).
Is this possible, and, if so, how would I write the LDAP Filter/Query??
Right now I would assume I would do it in the following manner:
(&(objectCategory=site)(objectClass=site)(cn=AU-*)
Any assistance would be greatly appreciated.
Cheers,
Simon> Right now I would assume I would do it in the following manner:
>
> (&(objectCategory=site)(objectClass=site)(cn=AU-*)
Sites do NOT reside in the domain partition, but in the configuration
partition... You can verify your LDAP filter with
dsquery * -filter "(your filter here)"
This query will return all matching objects' distinguished names (DN).
But why don't you use the "Sites" ILT instead? This ILT supports ? and *
as wildcards, so it might be sufficient.
Martin
Mal ein
GUTES Buch über GPOs lesen?
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
And if IT bothers me - coke bottle design refreshment :)) -
How to query for a firmware version?
Hi,
My customer requires to report all firmware versions for all components. How do I acquire a firmware version for a PXI card? I have a number fo card (PXI-5421, PXI-4072, PXI-6653).
Thanks
CTHey Cimteker,
Firmware is handled differently accross various cards. Unfortuantely because of this, there's no one easy way to get firmware versions for everycard since it isn't all handled in the same way. I'm curious what the overall application is and why all of the firmware versions for the cards are needed. The driver version updates all the firmware that's necessary. Because of this, alot of time firmware is driver dependant.
Do you by any chance have an open service request with this same issue? We're currently looking into the firmware versions for these cards, and I'm wondering if the two issues are tied together.
The PXI-5421 is an arbitrary waveform generator FGEN device. with FGen, there's a VI inside of the driver that will actually return the firmware. It's called niFGEN Revision Query VI. You can get there by going to NI-FGEN » Utility >» niFgen Revision Query.vi. I also believe niSCOPE has the same situation.
Lea D.
Applications Engineering
National Instruments -
How prepare Query for time series algorithm?
Hi every one,
i want next 6 month prediction, how prepare the Query ,
I have Date column,Crime column,Incidents Column,I going with next 6 month so how we get date columns month wise or date wise,
if month wise means,How split the Year and month from date colum??
Please i need some help.....waiting for reply.....
pandiyanHi Leo,
Thanks a lot for replay.
but using help of this blog also this problem not solve.
is this problem can we solve using "Seasonal Decomposition of Time Series by Loess".
Regards,
Manish
Maybe you are looking for
-
Setting up Contacts "groups" or "distribution lists" on Treo Pro??
Is there any way to set up a "group" or "distribution list" on Treo Pro w/ Windows Mobile so that I can send a text message to a group rather than have to put in each phone number individually??? Post relates to: Treo Pro T850U (Unlocked)
-
Adobe flash player and run swf
I creat a swf file with software demo builder version 9. but when run it with flash player version 11.8.800.94, flash player dosen't have any toolbar in below for move forward and move back video.but other swf file that creat with version 8 demo buil
-
Control Break appearance in Interactive Report
Hi guys, I'm using a control break on 3 columns in my report, but when doing this Apex shows the columns comma-separated, like: Column A: value, Column B: value, Column C: value But I would like it to look like: Column A: value Column B: value Column
-
How to replace a rowman letter a filed with space
Hi All, please let me know. how can i repalce a rowman letter in a field. In one of the HR field ( for job descriptiuon ) i have to replace the rowman letter with space. example: Sr Develoiper I. i have to replace I with space. Regards, kishan
-
I have just upgraded to Acrobat Pro 11 and am experiencing problems with the appearance of table borders when I convert my Word document to pdf. The top border does not appear at all, and there are small gaps in each of the column borders. Is there a