Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, November 25, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Client (Pre-7.2)
Forum to discuss using & developing the legacy SalesLogix Web Client (For versions 7.0 and earlier). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Client (Pre-7.2) | New ThreadView:  Search:  
 Author  Thread: Re: newbie needs help disabling controls
Jeff Ballard
Posts: 326
 
Re: newbie needs help disabling controlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 01 May 08 1:15 PM
Tom,

I don't have a version 7.0 db handy, so i'm going from the 6.2.6 action "csraddticket".

Look at the line that says:

thandle = CreateRecord("INSERT TICKET")


You'll see a bunch of lines below that say:

RecordAdd thandle, "AliasName", value


Based on that, you can probably see where I'm going. Create an alias (if you haven't already) that points to your field(s) on the ticket table. If you're adding to a 1:1 extension table from TICKET, create an alias that STARTS at the ticket table and joins to your 1:1 table and selects your field. Then, lets say you have a field named "MyField", with an alias that points to that field called "MyFieldAlias" and the HTML form control name is "MyHTMLControl", you'd add this:

RecordAdd tHandle, "MyFieldAlias", PostedGetValue("MyHTMLField")


Do that for each of you fields, and you should be set. Let me know if it doesn't work.

Jeff
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: newbie needs help disabling controlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 May 08 11:18 AM
Tom,

Any luck? Did you get it finished? Inquiring minds want to know!

Jeff
[Reply][Quote]
Tom Foster
Posts: 22
 
Re: newbie needs help disabling controlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 05 May 08 1:00 PM
Jeff,

I haven't tried it yet. I was pulled away on another project. Just quickly searching for CreateRecord or RecordAdd, I wasn;'sn't able to fine either statement so I wonder if is a version thing. I will spend some time on it later this afternoon and I will keep you posted.

Thanks,
Tom
[Reply][Quote]
Tom Foster
Posts: 22
 
Re: newbie needs help disabling controlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 08 5:20 PM
Jeff,

No luck here! I understand your suggestion but I am unable to find any code that references CreateRecord or RecordAdd. I've been reading through the code and it looks like csraddticket is what I need to be modifying but I can't find that file. Very puzzling. I'm have no idea where to go next but I am going to continue reading through the code searching for hints. If you have any thoughts I'd be happy to hear them. One more thing that was presented to me today is that they want to default the "Subject" for a new ticket to "Some Text Here" so that the subject line is never blank. Any thoughts?

Thanks again,

Tom
[Reply][Quote]
Tom Foster
Posts: 22
 
Re: newbie needs help disabling controlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 08 5:20 PM
Jeff,

No luck here! I understand your suggestion but I am unable to find any code that references CreateRecord or RecordAdd. I've been reading through the code and it looks like csraddticket is what I need to be modifying but I can't find that file. Very puzzling. I'm have no idea where to go next but I am going to continue reading through the code searching for hints. If you have any thoughts I'd be happy to hear them. One more thing that was presented to me today is that they want to default the "Subject" for a new ticket to "Some Text Here" so that the subject line is never blank. Any thoughts?

Thanks again,

Tom
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: newbie needs help disabling controlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 May 08 12:00 PM
Tom,

What template are you modifying? I think the thread started out on the account details, but you're mentioning tickets, so I'm not quite sure. The action csraddticket is in the base package in version 7.0, and you have the templates, so it should be there.

If you look in the form tag on the template in question, it should have and action property that says something along the lines of
<#SYS name=swcpath>/action?name=ActionName

The action that's specified there is the one that is called when the form is submitted. That's the action you should be modifiying.

Jeff
[Reply][Quote]
Tom Foster
Posts: 22
 
Re: newbie needs help disabling controlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 May 08 12:16 PM
Jeff,

Sorry about that. The thread did start out on account details. I resolved all of those issues and moved on to tickets. Anyway, I think I'm set now. I was looking for csraddticket as a file. It never occured to me that it was an "Action". I think I can get it from here. Hopefully I have one last quiestion. How do I default the Ticket Subject?

Thanks once again for all the help. I would not have even come close without it. I hope someday I can return the favor.

Tom
[Reply][Quote]
Jeff Ballard
Posts: 326
 
Re: newbie needs help disabling controlsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 May 08 12:41 PM
No worries for jumping to tickets from account - I figured you'd moved on to other things.

As far as the ticket subject, somewhere before the ticket record is inserted/updated in the action, you can do something along the lines of:
RecordAdd tHandle, cticksubject, "This is my subject"

cticksubject is the alias for the subject field in the DB. That should put in whatever you want. You can use any posted values from the form, or if you want to get data from the DB, you could use a "DoSQL" or DBOpenSQL commands (they're in the web dev ref guide).

No problem on the help. As I've said before, I've posted more than my fair share of questions around the web and gotten lots of good help. Return the favor by answering someone else's question someday.

Jeff
[Reply][Quote]
 Page 2 of 2<< < Previous 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/25/2024 8:06:43 PM