Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

New TIBCO Community Coming Soon
In early summer, TIBCO plans to launch a new community—with a new user experience, enhanced search, and expanded capabilities for member engagement with answers and discussions! In advance of that, the current myibi community will be retired on April 30. We will continue to provide updates here on both the retirement of myibi and the new community launch.

What You Need to Know about Our New Community
We value the wealth of knowledge and engagement shared by community members and hope the new community will continue cultivating networking, knowledge sharing, and discussion.

During the transition period, from April 20th until the new community is launched this summer, myibi users should access the TIBCO WebFOCUS page to engage.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Cursor in Edit Box

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Cursor in Edit Box
 Login/Join
 
Gold member
posted
I'm working on an html page in my 8206 environment. I have an html page where a value comes into the page using !IBI.AMP. to fill in the value. There are times that this value is missing so I have a default value of '' if the value is missing (I have also tried actually making it MISSING). When the value is missing or '', as I'm tabbing/clicking through the fields, it sets the cursor to the right of the edit/text boxes instead of all the way to the left. I know it's !IBI.AMP because if I don't have this value populating a field, the cursor goes to the left as expected. Does anyone know what property I need to set to put the cursor to the left? I'm an html GUI guy, so somehow to do this via GUI would be preferable. Thanks!

This message has been edited. Last edited by: FP Mod Chuck,


WF 8.0.08 (Prod); WF 8.2.06 (Dev)
 
Posts: 83 | Location: OK | Registered: November 19, 2015Report This Post
Virtuoso
posted Hide Post
Evan

If this is still an issue then please open a case with techsupport.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2128 | Location: Customer Support | Registered: April 12, 2005Report This Post
Guru
posted Hide Post
Evan, What I would do is take a look at the HTML that is being generated with !IBI.AMP versus without. Then look into javascript/jquery to see if you can add/remove the difference.

Fernando


Prod WF 8.1.04, QA WF 8.2.03, Dev WF 8.2.03
 
Posts: 278 | Registered: October 10, 2006Report This Post
Guru
posted Hide Post
I ran a quick test and this seems to work
you can set the caret position to whatever (0 is the beginning)
  
function onInitialUpdate(){

    setCaretPosition('edit1',3);

}

function setCaretPosition(elemId, caretPos) {

    var elem = document.getElementById(elemId);

    //var elem = document.getElementById(elemId);

   elem.setSelectionRange(caretPos, caretPos);

}

 


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Gold member
posted Hide Post
quote:
function onInitialUpdate(){

setCaretPosition('edit1',3);

}

function setCaretPosition(elemId, caretPos) {

var elem = document.getElementById(elemId);

//var elem = document.getElementById(elemId);

elem.setSelectionRange(caretPos, caretPos);

}


Thank you for the reply. I will give this a look.


WF 8.0.08 (Prod); WF 8.2.06 (Dev)
 
Posts: 83 | Location: OK | Registered: November 19, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Cursor in Edit Box

Copyright © 1996-2020 Information Builders