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.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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: 2127 | 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