Showing posts with label design. Show all posts
Showing posts with label design. Show all posts

Monday, March 12, 2012

How to receive files in FTP task

Hi everyone,

I want to design a FTP task to download all the xml files from a FTP site. And I don't know what the file's name is.

How can I design this task?

Thank you for your helps!

Tony

Hi, you can use wildcards for the remote path property. For example "/testfiles/*.*"

Hope this helps

|||

Hi Graig,

Thank you for your reply. The wildcards doesn't work. The error is

"File represented by "/users/*.*" does not exist"

It seems I have to pick a specific file name, but I need to download the whole folder's files.

Tony

|||

Sorry Craig, I made a small mistake:-P. It works! Thank you so much!

Tony

|||Can you share what mistake you made? I have the same problem and would like to learn too.

How to receive files in FTP task

Hi everyone,

I want to design a FTP task to download all the xml files from a FTP site. And I don't know what the file's name is.

How can I design this task?

Thank you for your helps!

Tony

Hi, you can use wildcards for the remote path property. For example "/testfiles/*.*"

Hope this helps

|||

Hi Graig,

Thank you for your reply. The wildcards doesn't work. The error is

"File represented by "/users/*.*" does not exist"

It seems I have to pick a specific file name, but I need to download the whole folder's files.

Tony

|||

Sorry Craig, I made a small mistake:-P. It works! Thank you so much!

Tony

|||Can you share what mistake you made? I have the same problem and would like to learn too.

Sunday, February 19, 2012

How to query data by various amount of filter value ??

Generally, on any screen, we design filter screen by allowing user to identify range or one value to search.

But sometime in some screen, It will be more convenient for user if user can identify No matter how value to search.

For example

On screen which have information of people in any province.

So user would like to search it by identify no matter how value to search.

There are check box of any province on filter part which enable users choose it.

Hence, if sometime user choose (by clicking on checkbox) 3 provinces : LA, Michigan, WachingtonDC to see description only 3 chosen province.

and sometime user choose (by clicking on checkbox) 2 provinces : LA, Michigan to see description only 2 chosen provinces.

Please give me any idea for create Stored Procedure or any tecnique to complete my idea...

Help me Pleaseeeee

CryingCryingCrying

If you want to use a stored procedure, the problem is a little more complicated, because you must use dynamic SQL. If you are using SQL 2005, see sp_executesql. If you just want to build an SQL string in your ASP page, you can set the checkboxes to postback, and handle the CheckChanged event. Build up a Comma seperated list of the values that are checked, and add a where clause to the SQL statement that looks like "WHERE province IN (" + ListOfProvinces + ")". Of course, if there is nothing checked, perhaps you want to show all the records, so you should drop the where clause, or maybe you don't want to show any, so you could just set the ListOfProvinces to an empty string.