Getting form to scroll as user tabs
Greetings,
I have just completed a migration from Forms 6i to Forms 10g. A user has noted the fact that when she was using the 6i version a form that she was using would scroll the window as she tabbed through the fields but this behavior does not occur in 10g. Is there any way to provide this functionality to 10g?
Regards,
Bill Chadbourne
according to https://bbs.archlinux.org/viewtopic.php?id=55279, you'll either need to change the default location of the files created by the daemon or change the permissions on the ones already created. Check out the linked page if you have any more problems, seems pretty extensive.
Similar Messages
-
Long vertical forms that scroll with the tabbing to keep cursor on screen
I have a tall vertical form that is roughly 2000px in height.
If the user tabs through the fields they will 'fall off' the bottom
of the screen. Meaning, the cursor will move to a field out of view
but the scrollbar will not nudge down automatically to compensate
and keep the cursor in view. Ideally the scrollbars would move with
the cursor as they do when tabbing through a traditional html form.
Any help is appreciated. Thanks.
--LokeshI have had to do this very thing myself. Kinda wish it were
part of the normal framework...
anyway, here is an example application that does what you are
trying to do:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
private function checkPos(target:Object=null):void {
var yPos:Number = target.y+target.height;
debug.text = "";
var shiftAmt:Number = 0;
if (yPos>cont.verticalScrollPosition+cont.height) {
shiftAmt = yPos-(cont.verticalScrollPosition+cont.height);
debug.text+="move down: "+shiftAmt+"\n";
} else if (yPos<=cont.verticalScrollPosition) {
shiftAmt = yPos-(cont.verticalScrollPosition+target.height);
debug.text+="move up: "+shiftAmt+"\n";
cont.verticalScrollPosition+=shiftAmt;
debug.text+="yPos: "+yPos+" view space:
"+cont.verticalScrollPosition+" -
"+(cont.verticalScrollPosition+cont.height);
]]>
</mx:Script>
<mx:Text id="debug" width="200" height="200" />
<mx:Canvas id="cont" width="200" height="200">
<mx:Button label="blorch1" y="0"
focusIn="checkPos(event.currentTarget)" height="20" />
<mx:TextInput focusIn="checkPos(event.currentTarget)"
y="100" height="20" />
<mx:Button label="blorch2" y="200"
focusIn="checkPos(event.currentTarget)" height="20" />
<mx:TextInput focusIn="checkPos(event.currentTarget)"
y="300" height="20" />
<mx:Button label="blorch3" y="400"
focusIn="checkPos(event.currentTarget)" height="20" />
</mx:Canvas>
</mx:Application>
If your form has a TON of controls, then you might want to
just make a function to automatically attach the listener in
actionscript... dunno which is easier. Writing onFocus="blahblah"
for each component is a drag but it's simple...
If there is an easier way to do this, I hope someone will say
so because this is how I have to do it and it's not very
fun. -
Getting Active Directory Users in UCM User Admin - Users Tab
Hello All
We have integrated WLS with our Active Directory. And we are getting all the active directory users under Security Realms >myrealm >Users and Groups tab in WLS Console.
We are also able to login to webcenter spaces and Content server using those userid and credentials. But our problem is in UCM under Admin Applets - User Admin - Users tab all the active directory users are not listed. So we are not able to assign particular roles to the users.
When a particular Active Directory user logins in UCM (First Time) after that the admisistrator (weblogic) is able to get that user under Admin Applets - User Admin - Users tab. And also it comes as an External user so we are not able to assign role.
So basically UCM requires a login to get all the users listed in users tab.
Our requirement is we want all the Active Directory users to get listed in UCM without the condition that the users has to login in content server once.
ThanksHi Navin ,
First and foremost the requirement that you have posted is not possible and the reason for that is :
Users are created on AD which is outside the realm of UCM hence there is no way that the users created on AD will be shown up under Users tab without they login atleast once . UCM does not know which all users are part of the realm until and unless the AD users login in atleast once .
Secondly external users cannot be assigned roles from UCM because when the Auth type is set to External UCM sees it as external entity hence not giving it any way to relate roles / groups from UCM . As a workaround you can change the AuthType for the External users to Global from User Admin applet after the users login for the first time . This will enable you to assign roles / groups for the AD users .
Hope this helps .
Thanks
Srinath -
Query to get Forms User Session
Can any one suggest what is the SQL query to get the detail of the user session(Forms) in 10G Application Server Rel 2?
How EM takes the IP address of user in the user_session of forms?
Is there any table that it takes from?
Thanx -
My carrier is Straight Talk (using ATT network) and they require the user to enter the APN settings in order to access their data network. My Iphone 4s is factory unlocked but I can not get to the Cellular Data Network tab to enter the settings?
Yes ATT hides the APN settings so when you try to use a st sim it automatically reads on AT&T network so the APN settings are hidden and cannot be accessed however you can go to apn.straighttalk.com on you'r phone and select APN/data settings then select AT&T then iPhone and a screen will pop up asking if you would like to install the profile for whatever reason it's not verified but works fine. You can also go to www.unlockit.co.nz and set up a straight talk APN profile that is verified not sure exactly what that means but both work to get the data working on the phone for straight talk but it does not make the MMS work. There are a couple other methods I have read about one is on howardforums using ibackupbot to manually change the files on the phone I haven't been able to get mine to stick using that method but other people have and there is a sim swap method to trick the phone to reveal APN settings using a tmobile sim I have not tried this but other people have with success. The last two methods mentioned will make both data and MMS work
-
How can I get a list of active users on an AS Java platform on a cluster?
Hello Experts,
I have an AS Java NetWeaver CE v7.1 EhP1 SP3 system and it's running in a cluster. Do you know how I can get a list of all users that are currently logged in or whom have active sessions on each application server instance?
Thanks,
Sam> I don't know how to get classes used by VA for this tab.
I wouldn't make any development investments based on classes for the VA anymore...
Considering that not only Salvatore himself, but also the JControl might decide for itself that the system needs a hard shutdown and restart.. a possibly better solution would be to use a redirect. If the message server does does not respond or does not find any DIs or not the one which your previous session state was for, then redirect to a page with a meaningfulll message (and apology on it.
Just a thought,
Cheers,
Julius -
How to get the list of IDM users in a workflow.
Hi,
I wanted to get the list of IDM users in a workflow into a list.Now I tried to use getObjects Method,I do not have the display session here,I passed the workflow context or WF_Context.But it is giving exception like context null .
I used the same method in a form and it worked.How can I get the list of users in a workflow.It is for customizing reports.
Thanks and Regards,
Pandu
Any Idea on how to customize reports including attributes from resources and auditing attributes etc.Any help would be really great.
Thank you.Hi John,
I get this exception WorkItemForm: no id.
This comes when I click on the other column.I generate the data needed in a report and display it as a sorting table when I get the data.
I want to give the user ability to sort data by different columns.But when I click any column I get the exception
WorkItemForm: no id
How can I save a workitem on a manual form before invoking it from a manual action.
Here is the code snippet
<Field name='tblUsers'>
<Display class='SortingTable'>
<Property name='selectEnable' value='false'/>
<Property name='align' value='left'/>
<Property name='linkEnable' value='false'/>
<Property name='sortEnable' value='true'/>
<Property name='width' value='400'/>
<Property name='columns'>
<List>
<String>Account id</String>
<String>First Name</String>
</List>
</Property>
</Display>
<FieldLoop for='row' in='_searchList[*]'>
<Field name='enduserId'>
<Display class='Label'>
<Property name='value'>
<block trace='true'>
<invoke name='getAccountId'>
<ref>row</ref>
</invoke>
</block>
</Property>
</Display>
</Field>
<Field name='lblfirstname'>
<Display class='Label'>
<Property name='value'>
<invoke name='getAttribute'>
<ref>row</ref>
<s>firstname</s>
</invoke>
</Property>
</Display>
</Field>
<FieldLoop> I think I may need to save some workItem,That is why this may be giving the error.How can I correct this.
Thanks,
pandu -
How to get Current Log in BO user name in data access driver
In universe, to get the current log in user is via @Variable('BOUSER').
Right now, I need to be able to get the user name in the data access driver. I am writing a customized data access driver because we need to patch some where clause on the the query generated by the universe based on the logged-in user info. I only think of using end_sql parameter or adding an universe level filter to patch the @Variable('BOUSER') to the query, which would not work if user want to use customized query.
Can anyone tell me how to get currentBO user name from connection server ? or how @Variable('BOUSER') is translated into the logged-in user name in the universe?Shweta,
The link you provided was the Auditor guide for BO 6.x, I'm not sure it that is going to help Karen or not.
Karen,
There is function called connection
(usage: =connection([Query Name]), where [Query Name]
denotes the name of the tab for the query under Edit Query)
Here is some of the output from connection:
4;ODBC18;MS SQL Server 2000166; VERSION=7; USER=xxxxx;
PASSWORD=; DBTYPE=Relational; DATABASE=xxx_xxxx;
ODBC_USER=xxxxxx; ODBC_PASSWORD=; BO_DSN=xxxx_xxxx;
BO_DRV_CONNECT_MODE=0; 224; VERSION=6; Name=xxxxx; Shared=4;
LoginTimeout=600; Timeout=600; Pool Time=60; Array Fetch Size=10;
Array Bind Size=5; RecommendedLenTransfert=1000; Password_Encryption=x;
AliasTable=; MeasureDimension=; Hint=; ConnectInit=; ArrayFetch=1;
I'm not sure if this info helps out either, being that connection provides info on a post-processing basis and it sounds like you need to get out ahead of the SQL generation. The @variable('bouser') would seem like the place to be, however, in allowing custom SQL to take place you loose the bouser due to an individual could customize the SQL to the point that it gets unwantingly yanked out. The end_sql might be your answer...
Thanks,
John -
Private WithEvents SBO_Application As SAPbouiCOM.Application
Private Form As SAPbouiCOM.Form
'// Get the added form object by using the form's UID
Form = SBO_Application.Forms.Item("manager")
I have created a frmEmployee.srf file using screen painter.I converted this file in xml format and executed LoadFromXML("frmEmployee.xml") function.
But I can not get form's uid.What is this forms user id ? What value should be given insted of manager ?Hi Dilip,
SAPbouiCOM.Form is an interface that represents any SBO form that exists or live in application. Since its not a class you cannot instantiate it but you can access any existing form opened by SBO or LoadForm() function and assign it to this. Each live form will be having a unique id to manipulate with it and get access of the form.
For example you can open 2 Item master data forms. Each form will be having a unique id to identify for manipulation but these two forms will have a unique code. Using that unique code you can get that form instance and assign it to SAPbouiCOM.Form variable.
But both forms are of same type 'Item Master Data'. In SBO it uses an number for each form type. For example 150 is an Item master data form type. This form type will be displayed on bottom left corner if System Information selected. Unique id is different and it will be unique across SBO application.
LoadForm() will return Form object
Try something like
Dim objForm as SAPbouiCOM.Form
objForm = .LoadFromXML(xmlstring)
//I think you used File Name. You should try with xmlstring
HTH
B Ravi Shankar -
How to get the list of all users
Hi,
Is there a way in Grid Control for getting the list of all users on all target databases? I need to count how many Oracle db users in our company.
Thanks a lot.One way to do it might be...
Assuming you have preferred credentials set up for all of your databases, you could run a 'select username from dba_users or all_users;' against all of your databases through grid control.
Click on Targets tab, click Databases, then the 'Execute SQL' link at the bottom of the page. Click 'Add' and 'Select All'. Then run it. It's just running the same sql across all of your databases and the output will be at the bottom for all of them. -
hi I am using to web browser control to get height,width,scroll height and scroll width in wpf c#.
Could You please tell me how to achive this information if .pages contain this css on body.
style="-webkit-column-width:800px; margin-right:800px; -moz-column-width: 800px; column-width: 800px; -webkit-column-gap: 0px; -moz-column-gap: 0px; column-gap: 0px; -webkit-column-rule: 0px solid #000;-moz-column-rule: 0px solid #000;column-rule:
0px solid #000; height:800px; overflow:visible !important; ; margin:0px; -moz-margin:0px;-webkit-margin:0px;display:block;"
I have to get height,width,scroll height and scroll width on on complete event.
this is MainWindow.xaml page
<Window x:Class="WPFWebBrowserInvokeScript.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="820" Width="820" Loaded="Window_Loaded">
<Grid>
<WebBrowser HorizontalAlignment="Left"
Height="800"
Margin="10,10,0,0"
VerticalAlignment="Top"
Width="800"
Name="MainBrowser"/>
<!--<Grid x:Name="grid1"></Grid>-->
</Grid>
</Window>
this MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;
namespace WPFWebBrowserInvokeScript
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
public MainWindow()
InitializeComponent();
private void Window_Loaded(object sender, RoutedEventArgs e)
string strHtml = "";
using (StreamReader sr = new StreamReader("D:/epubunzip/ePub2_Sample03a_USgovernment_SE_Gr9-12_EN_U1/OPS/9780547451381_c01.html"))
strHtml = sr.ReadToEnd();
strHtml = strHtml.Replace("<body>", "<body style=\"-webkit-column-width:800px; overflow:visible !important; -moz-column-width: 800px; column-width: 800px; -webkit-column-gap:
0px; -moz-column-gap: 0px; column-gap: 0px; -webkit-column-rule: 0px solid #000;-moz-column-rule: 0px solid #000;column-rule: 0px solid #000; height:800px; ; margin:0px; -moz-margin:0px;-webkit-margin:0px;display:block;\">");
string str = "<script> function execScript(){return document.body.scrollWidth;}</script></head>";
strHtml = strHtml.Replace("</head>", str);
byte[] bytes = Encoding.UTF8.GetBytes(strHtml);
MemoryStream ms = new MemoryStream();
ms.Write(bytes, 0, bytes.Length);
ms.Position = 0;
MainBrowser.NavigateToStream(ms);
//MainBrowser.NavigateToString(strHtml);
MainBrowser.LoadCompleted += new LoadCompletedEventHandler(MainBrowser_LoadCompleted);
void MainBrowser_LoadCompleted(object sender, NavigationEventArgs e)
//here I am trying to get height,width,scroll height and scroll width
//It's gtting wrong info
WebBrowser webBrowser = (WebBrowser)sender;
//mshtml.htmld webDocument = (mshtml.HTMLDDElement)webBrowser.Document;
//mshtml.HTMLBody webBody = (mshtml.HTMLBody)webDocument;
// var dd = webDocument.InvokeScript("execScript");
// // string script = "document.body.style.overflow ='hidden'";
// // var dd = webDocument.InvokeScript("execScript", new Object[] { script, "JavaScript" });
// var elems = webBrowser.Document.GetElementsByTagName("body");
// System.Windows.Forms.HtmlElement webBody = (System.Windows.Forms.HtmlElement)webDocument.Body;
>>if i am rendering html from MemoryStreamor string in webbrowser control in wpf It's not applying this css
Yes it does. If you for example add background-color: yellow; to the stlyle you will see that the page turn yellow:
strHtml = strHtml.Replace("<body>", "<body style=\"-webkit-column-width:800px; background-color: yellow; overflow:visible !important; -moz-column-width: 800px; column-width: 800px; -webkit-column-gap: 0px; -moz-column-gap: 0px; column-gap: 0px; -webkit-column-rule: 0px solid #000;-moz-column-rule: 0px solid #000;column-rule: 0px solid #000; height:800px; ; margin:0px; -moz-margin:0px;-webkit-margin:0px;display:block;\">");
If the styles doen't get applied as expected it is a browser issue. The WebBrowser control emulates Internet Explorer in IE7 rendering mode by default. You will have to change some registry settings to change this behaviour. Please refer to the following
links for more information:
http://weblog.west-wind.com/posts/2011/May/21/Web-Browser-Control-Specifying-the-IE-Version
https://social.msdn.microsoft.com/Forums/vstudio/en-US/cf66e0cd-ab6f-45b8-b230-1d78f26670d2/opening-links-from-wpf-webbrowser-control-in-default-browser-instead-of-ie?forum=wpf
-moz-column-width only works in FireFox for example.
You may also navigate to an actual page and inject some javascript function that for example adds the styles to the body element dynamically or set the style properties of the body element directly:
private void Window_Loaded(object sender, RoutedEventArgs e)
MainBrowser.Navigate(@"E:/Epubs/ePub2_Sample05_Biology_SampleChapter_EN/OPS/ch01.xhtml");
MainBrowser.LoadCompleted += new LoadCompletedEventHandler(webb_DocumentCompleted);
private void webb_DocumentCompleted(object sender, NavigationEventArgs e)
WebBrowser webBrowser = (WebBrowser)sender;
dynamic doc = webBrowser.Document;
//int _scrollWidth = (int)webBrowser.InvokeScript("execScript");
//mshtml.HTMLDocument webDocument = (mshtml.HTMLDocument)webBrowser.Document;
mshtml.HTMLScriptElement script = (mshtml.HTMLScriptElement)doc.createElement("script");
script.setAttribute("type", "text/javascript");
script.innerHTML = "function doSomething(){ /* do something here... */ }";
//add script to the head
dynamic head = doc.getElementsByTagName("head")[0];
head.appendChild(script);
mshtml.HTMLBody body = (mshtml.HTMLBody)doc.getElementsByTagName("body")[0];
body.style.background = "yellow";
//set any body.style property here...
webBrowser.InvokeScript("doSomething");
That's about it as far as WPF is concerned.
Please remember to mark helpful posts as answer and/or helpful. -
How to enable scroll bars in a tab canvas in order to scroll through the tab canvas using forms 6i
kamal MukhtarThanks!
I found the setting for "Show Scroll Bars." However, I can't find the setting for the scroll-bar width. How do I adjust scroll-bar width? -
When I sign off on yahoo email. I get a blank page on every tab if any are opened. I have to exit out & restart firefox . It does not happen w/any other browser. I have no malware or viruses. Please advise.
Actually, it's not obvious & common sense would dictate that users' bookmarks would not be left stuck to random computers even once they've logged out of the account. No one wants that if it's a public work computer or if they're traveling & use an Internet cafe. As I am not the only one who has noticed this issue or had bookmarks disappear/be deleted, in addition, common sense would indicate it's not really a very good system. And carrying around a flashdrive to run Firefox off of it is a good solution? Really? Just curious why a useful feature such as being able to login & use your preferences & bookmarks & then logging out removes your preferences when you're gone hasn't been developed. Yahoo keeps my preferences when I logout (it's called My Yahoo!). Maybe a My Firefox or My Chrome solution could be developed.
-
Query regarding the fields details in particular form for all the users in
Dear All,
I have one query regarding the fields details in particular form for all the users in company.
Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce 4.Total 5. Location.
While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including above 4 fieds .
Now my question is how to set the User choice fiels for the particular form that are common to all users.
Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
This is a manual job and you have do do it with every user login.
Alternately, you can try out this link that explains
[How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html] -
Get the role of a user in portal 6.0
Hello,
I need to get the role of a user in portal 6.0. I want to do this in one of the templates to dynamiclly size our tabs due to the fact some roles have more tabs then others.
travisYou have to use the Identity Server SDK's to do this ..
create SSOToken and AMStore Connection object. Using that you can get the AMUser object and do getRolesDNs to the roles the user is assigned to or from AMStoreConnection you can do a getTopLevelContainers to get the orgs, roles etc assigned for the signed in user ..
take a look at the identity server samples it should be in
/install_dir/SUNWam/samples/sdk
HTH ..
Maybe you are looking for
-
How to get User Id in every window title bar at runtime
Hi people How can i get Userid in the window title bar at runtime prasanth a.s.
-
What are the different metadata fields for in the Metadata presets?
The metadata preset box has a comprehensive array of metadata sections and fields. I just don't know what a lot of them should be used for. Some of them appear to duplicate headings in other fields, albeit with different names. Can someone tell me wh
-
Excel 2008 creating Log.xlsx folders for every spreadsheet
Hi - I realize that I should be posting this question on the MacTopia site, but that gets me nowhere. I have Office 2008 Teacher & Student Edition, I applied all the Service Packs to version 12.1.2. Now every time I save an Excel spreadsheet it creat
-
I have a mini-election going on on my report. I'm making a report with the Report Generator. I'm calling references to place two waveform charts from the calling VI on the report using "Append Control Image to Report.VI". I want the 2nd chart to appe
-
My printer hooked itself up to someone else computer now I can wireless scan things to mine
My friend came over the other day and connected herself to my wireless internet. She has and HP I have a Mac. Since then any times she tries to print something I get it and anytime I try to scan something it goes to her email. I want to have it back