Re: attachment filename when using mid-tier

2007-04-15 Thread Roney Samuel Varghese

Dear Vinson,
  We were facing a simlar problem and we wrote a SQL
function to strip off the leading path.

Here's that function code:

SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

CREATE FUNCTION fnFindFileName (@InputString as varchar(255))
RETURNS varchar(128)
AS
BEGIN
DECLARE @EvalString varchar(255),
   @EvalCharacter char(1),
   @OutputString varchar(128),
   @counter int
SET @counter = len(@InputString)
SET @EvalString = @InputString
SET @EvalCharacter = RIGHT(@EvalString,1)
SET @OutputString = ''
WHILE @counter>0 AND @EvalCharacter<>'\'
BEGIN
   SET @OutputString = @EvalCharacter + @OutputString
   SET @EvalString = LEFT(@EvalString,LEN(@EvalString)-1)
   SET @EvalCharacter = RIGHT(@EvalString,1)
END
RETURN @OutputString
END

GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

We wrote that function result to a temp field, then We used the following
RUN PROCESS command:  PERFORM-ACTION-SAVE-ATTACHMENT to save the attachment.

Hope this helps.

Regards,

Roney Samuel Varghese


On 4/6/07, Vinson <[EMAIL PROTECTED]> wrote:


Hi,

My system is remedy v7.01. I'm using a display-only form to push an
attachment to backend data form. I build a filter for this backend
form for 'subit' and 'modify' to notify my user that file is updated.

But I found the filename is like '12345;78901;filename' when I set the
attachment to a character field. But with Windows user client, it will
be different and like  '12345;78901;pathname\filename'.

Did you also have the same problem and how to address it?


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where
the Answers Are"



___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers 
Are"


Re: attachment filename when using mid-tier

2007-04-13 Thread Vyom Labs - ITSM Support

Hi,

Create set field actions .Use workflow which searches for the “\” and 
displays the remaining part of the string. Use the goto action.


Thanks,
Neha

--
[EMAIL PROTECTED]

www.vyomlabs.com
Consulting | Oursourcing | Training || BMC Remedy BSM | ITIL | IT Governance



Vinson wrote:

Hi,

My system is remedy v7.01. I'm using a display-only form to push an
attachment to backend data form. I build a filter for this backend
form for 'subit' and 'modify' to notify my user that file is updated.

But I found the filename is like '12345;78901;filename' when I set the
attachment to a character field. But with Windows user client, it will
be different and like  '12345;78901;pathname\filename'.

Did you also have the same problem and how to address it?

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers 
Are"
  


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the Answers 
Are"


attachment filename when using mid-tier

2007-04-06 Thread Vinson
Hi,

My system is remedy v7.01. I'm using a display-only form to push an
attachment to backend data form. I build a filter for this backend
form for 'subit' and 'modify' to notify my user that file is updated.

But I found the filename is like '12345;78901;filename' when I set the
attachment to a character field. But with Windows user client, it will
be different and like  '12345;78901;pathname\filename'.

Did you also have the same problem and how to address it?

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"