|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Rewriting stobj values in edit modeI am trying to set the stobj.status value to a custom value once the content item is edited. In edit.cfm i have: <cfif stobj.status eq "ongelezen"> <cfset stobj.status = "gelezen"> </cfif> Although the value is present in stobj, the value isn't overwritten by above cfif set value. Why not? And how can i achieve this? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Rewriting stobj values in edit modeI don't know if custom "status" values are supported in Farcry...
Anyway you'll find that the status field is probably being overwritten by various methods in versions.cfc. If you are aiming for some workflow modification I would recommend creating a new field, e.g. "substatus" and manage this field whilst the object is in draft "status" mode. If you're providing some sort of translation look at using the i18n functionality... Joel On Thu, Oct 29, 2009 at 2:00 PM, Marco van den Oever <marcovandenoever@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Rewriting stobj values in edit modeHi Joel, i changed the field to substatus, indeed have to remember that status is a common used field by farcry. You say: "If you are aiming for some workflow modification I would recommend creating a new field, e.g. "substatus" and manage this field whilst the object is in draft "status" mode." This custom type is for handling emails, when a email is inserted or get from the email server the default value is unread, then when a user goes to the edit page i want the status set to read, i am not sure how to do that with the usage of draft status mode, do you have an example of doing so? On Oct 29, 4:26 am, Joel Cass <joel.a.c...@...> wrote: > I don't know if custom "status" values are supported in Farcry... > > Anyway you'll find that the status field is probably being overwritten by > various methods in versions.cfc. > > If you are aiming for some workflow modification I would recommend creating > a new field, e.g. "substatus" and manage this field whilst the object is in > draft "status" mode. > > If you're providing some sort of translation look at using the i18n > functionality... > > Joel > > On Thu, Oct 29, 2009 at 2:00 PM, Marco van den Oever < > > marcovandenoe...@...> wrote: > > > I am trying to set the stobj.status value to a custom value once the > > content item is edited. > > In edit.cfm i have: > > > <cfif stobj.status eq "ongelezen"> > > <cfset stobj.status = "gelezen"> > > </cfif> > > > Although the value is present in stobj, the value isn't overwritten by > > above cfif set value. > > Why not? And how can i achieve this? > > > Thanks. You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Rewriting stobj values in edit modeThe idea is that whilst an item is in draft status it is editable. In this stage you could set the substatus to whatever you wish. However you could just do away with the versioning system altogether and just use the substatus field for all your workflow stuff, as you are doing.
I think I just provided too much information. On Thu, Oct 29, 2009 at 11:52 PM, Marco van den Oever <marcovandenoever@...> wrote:
--~--~---------~--~----~------------~-------~--~----~ You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: Rewriting stobj values in edit modeI don't understand why this is so difficult to set up, simply setting a custom value, a substatus field for all workflow just as i was doing like showed above isn't working, so i have to to use versioning... I can't grasp a clue on how to check for draft mode etc, also don't understand why i have to check on that as my logic says that an edit page is draft mode. How would you set this up, i can't see it... On Oct 30, 12:22 am, Joel Cass <joel.a.c...@...> wrote: > The idea is that whilst an item is in draft status it is editable. In this > stage you could set the substatus to whatever you wish. However you could > just do away with the versioning system altogether and just use the > substatus field for all your workflow stuff, as you are doing. > > I think I just provided too much information. > > On Thu, Oct 29, 2009 at 11:52 PM, Marco van den Oever < > > marcovandenoe...@...> wrote: > > > Hi Joel, i changed the field to substatus, indeed have to remember > > that status is a common used field by farcry. > > > You say: > > > "If you are aiming for some workflow modification I would recommend > > creating > > a new field, e.g. "substatus" and manage this field whilst the object > > is in > > draft "status" mode." > > > This custom type is for handling emails, when a email is inserted or > > get from the email server the default value is unread, then when a > > user goes to the edit page i want the status set to read, i am not > > sure how to do that with the usage of draft status mode, do you have > > an example of doing so? > > > On Oct 29, 4:26 am, Joel Cass <joel.a.c...@...> wrote: > > > I don't know if custom "status" values are supported in Farcry... > > > > Anyway you'll find that the status field is probably being overwritten by > > > various methods in versions.cfc. > > > > If you are aiming for some workflow modification I would recommend > > creating > > > a new field, e.g. "substatus" and manage this field whilst the object is > > in > > > draft "status" mode. > > > > If you're providing some sort of translation look at using the i18n > > > functionality... > > > > Joel > > > > On Thu, Oct 29, 2009 at 2:00 PM, Marco van den Oever < > > > > marcovandenoe...@...> wrote: > > > > > I am trying to set the stobj.status value to a custom value once the > > > > content item is edited. > > > > In edit.cfm i have: > > > > > <cfif stobj.status eq "ongelezen"> > > > > <cfset stobj.status = "gelezen"> > > > > </cfif> > > > > > Although the value is present in stobj, the value isn't overwritten by > > > > above cfif set value. > > > > Why not? And how can i achieve this? > > > > > Thanks. You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: farcry-dev@... To unsubscribe, email: farcry-dev+unsubscribe@... For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |