Creating new Profile Attribute

29
Apr/07
1

For some applets in our application it was implemented that only a user with a certain position could create new records. To do this, I used scripting to enable/disable the invoke of the method if the user had the correct position. Since this was done with the position name hardcoded in the script, this was not the best method because the position name could change or an extra position could be added which also needed this function.

Therefor we wanted to search for position type, but there is no method in Siebel eScript to return the position type. Then a colleague remebered that there is a way to create new profile attributes which contains user info (such as the postion type we needed). After searching on Supportweb we found out that it was very easy to do this.

To create a new profile attribute, to the following:

Browse for the business component Personalization Profile and create a new field called “Position Type” (or copy the field Position) with following values:

  • Mulitvalue Link: Position
  • Dest Field: Position Type

After compiling the Business Component, you can get this profile attribute in a script with TheApplication().GetProfileAttr(“Position Type”)

VN:F [1.8.2_1042]
Rating: 4.3/5 (7 votes cast)
VN:F [1.8.2_1042]
Rating: +1 (from 1 vote)
Filed under: Configuration
3,871 views

Disable Print Preview menu item

25
Apr/07
0

We received the requirement to disable the Print Preview functionality in the entire application.

After searching a while, my colleague asked for help because he didn’t found anything on Supportweb about this and all his tries to disable it failed. Inactivating the Menu Item ‘File – Print Preview’ didn’t result in greying out the option from the menu. Even after deleting the cache of Internet Explorer, we could still do a Print Preview.

Searching Supportweb with the query “disable print preview” didn’t help us at all. Not a single SR was created with this problem. In the end I searched for “print preview” and finally I stumbled upon a piece of code that works. The code is actually very simple and is used on the PrintListService Business Service.

If you want to disable the Print Preview, use the following code in Server Script (eScript)

function Service_PreCanInvokeMethod (MethodName, &CanInvoke)
{
if(MethodName == “QuickPrintPreviewCustomAppletMenu”){
return(CancelOperation);
}
return (ContinueOperation);
}

This will disable the functionality in the entire application. It does not remove the menu item from the menu but just disables it (it becomes greyed out).

VN:F [1.8.2_1042]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.2_1042]
Rating: 0 (from 0 votes)
Filed under: eScript
1,247 views

Using Supportweb without logging in

24
Apr/07
6

Everybody who works with Siebel and therefor uses Supportweb will probably know about this trick but I mention it anyway (for those who should not know it yet).

When you want to search Supportweb for something you must need a login. If you just want to search, you can use a read-only login. If you want to create a SR, you need read/write access.

But with a little workaround, you can use Supportweb for searching without having a login. How? It’s very easy. Just go to the homepage of Supportweb (which will redirect you to https://ebusiness.Siebel.com/Supportweb/index.asp) and at the loginscreen just press the “Login” button without filling in the fields.

As expected nothing happens and you stay on the login page. Now, type in the address bar http://Supportweb.Siebel.com and you will be able to login and search.

I don’t know if Siebel/Oracle is aware of this ‘bug’ or not but it seems logical that they do, since so many people know about it. And if the didn’t know it, they might know it now. Although I doubt that someone from Oracle reads this blog.

VN:F [1.8.2_1042]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.2_1042]
Rating: -2 (from 2 votes)
Filed under: General
2,160 views

Development environment down

12
Apr/07
0

Today, the most unbelievable thing happened. We are in a very critical stage of the project since we are trying to make a release without issues in order to go live next week. Therefor we are working very long days.

Today around 5 o’clock I wanted to checkout a project from the server when I received an error that the connection with the Oracle database could not be established. I thought I was maybe related to the fact that my tools had been open for several days so I exited from tools and restarted it. But the same error occurred.

Then I tried to connect via Toad to the dev database and got the same error. When asking my colleague about it, he told me he got the same problem. After complaining to somebody internal, she called to the DBA who told her that several UNIX machines were being patched and that he was only informed about this 5 minutes before. He had no idea how long this would take.

So we spent there 3 more hours working on projects that were already checked out and did some investigation for the development work for tomorrow. When I left the building at 8h30, the database was still down. I sincerely hope that everything will be up and running because otherwise we will have a very big problem.

VN:F [1.8.2_1042]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.2_1042]
Rating: 0 (from 0 votes)
Filed under: Projects
459 views

13

12
Apr/07
0

Yesterday I was telling that is was a slow day with nothing much to do and that I did not like it. Well, today was the complete oposite. It started as a slow day, but then completely changed.

The day started with retesting all bugs reported by our team, because the testers did not know how to test those bugs. Nothing too difficult so I seemed that it would be a slow day.

But during a meeting some other issues came up and we had to go through the list to see if we could reproduce them and assign a priorty to them. We also had some performance issues which required some time to look at.

Around 17h30 we got a call that all issues that could be resolved should be in the new release before going live. So after al, it ended up being a very long day. But I’m not complaining. The reason that I quited my previous job was that I had nothing to do – I was giving support on a Siebel application. So for me, working from 7 in the morning untill 8 at night it not a problem at all. I’m happy to do it.

VN:F [1.8.2_1042]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.2_1042]
Rating: 0 (from 0 votes)
Filed under: Projects
465 views

Slow day

10
Apr/07
0

Last Friday we’ve made the (hopefully) last compile before going live next week. All major bugs and some small change request reported by the testers are included in this compile so we had a busy week last week.

Today was rather slow. I only had to do two minor issues and look into a problem with data quality (which was set up by my colleague, so I don’t have experience whit that).

Bottom line, it was a slow day today. And I don’t like it. Ok, it was more relax that the previous weeks, but I like it when there is some pressure. You always know what to do and that was not the case today.

I hope I can soon start on developing on release 1.1 but first I hope off course that we go live on the planned date. That would be a great achievement since we did this entire project in a very small timeframe.

VN:F [1.8.2_1042]
Rating: 0.0/5 (0 votes cast)
VN:F [1.8.2_1042]
Rating: 0 (from 0 votes)
Filed under: Projects
413 views