samarthmkt Posted December 22, 2014 Posted December 22, 2014 What script or function used to move active portel row up and down position by keyboard.At present after sorting portel records the active row goes to first row and for further selection record it does not move up and down only page windows scroll as well as we can only select by mouse. Thanks
MikeKD Posted December 22, 2014 Posted December 22, 2014 Hi there, this is the script I use to navigate up and down portal rows using the up and down keys. Is it what you had in mind? Set Variable [ $key; Value:Code ( Get ( TriggerKeystroke ) ) ] # If [ $key = 31 ] Go to Portal Row [ Select; Next ] Else If [ $key = 29 ] Go to Portal Row [ Previous ] Else Exit Script [ ] End If Go to Field [ Pupil_Class_Assess_Join::Score ] # Exit Script [ Result: False ]
samarthmkt Posted December 23, 2014 Author Posted December 23, 2014 Hi there, this is the script I use to navigate up and down portal rows using the up and down keys. Is it what you had in mind? Set Variable [ $key; Value:Code ( Get ( TriggerKeystroke ) ) ] # If [ $key = 31 ] Go to Portal Row [ Select; Next ] Else If [ $key = 29 ] Go to Portal Row [ Previous ] Else Exit Script [ ] End If Go to Field [ Pupil_Class_Assess_Join::Score ] # Exit Script [ Result: False ] Thanks For your Reply, Though I have tried by above script but still the same portal row not moving by up and down keys. I am sending small example file using this for office products layout and applied there in script trigger.
samarthmkt Posted December 24, 2014 Author Posted December 24, 2014 <p>Oh might not has been attached. New attachment file link is here</p> https://dl.dropboxusercontent.com/u/15453414/Pos%20Invoices%20%20-%20Copy.fmp12 https://dl.dropboxusercontent.com/u/15453414/Pos%20Invoices%20%20-%20Copy.fmp12
Lee Smith Posted December 24, 2014 Posted December 24, 2014 Please Attach your files here. If you don’t know how to do this, just follow the steps you will see here. ATTACH FILE
samarthmkt Posted December 25, 2014 Author Posted December 25, 2014 (edited) Yes here is attached file. I want to move keys up and down of sort list items in office products as well as in go down products layouts. Thanks Edited December 25, 2014 by Lee Smith deleted the duplicate statement
Lee Smith Posted December 25, 2014 Posted December 25, 2014 Did you have a problem with the file? The file must be Zipped. The link ATTACH FILE above gives you a step by step process. Let me know if you are unable to follow it. Lee
bruceR Posted December 27, 2014 Posted December 27, 2014 No changes except for reorg of the graph. POS Invoice Graph.pdf
eos Posted December 27, 2014 Posted December 27, 2014 If you want to move a row to a different position in the portal, the position of that related record within the sort order must be changed; that also means you will want to have (and use) a sort order field that allows arbitrary sorting, since you do NOT want to change your real data. Have a look at the attached file. MovePortalRow_eos.fmp12.zip
samarthmkt Posted December 27, 2014 Author Posted December 27, 2014 Thanks for your reply Actually I want to move the default curser row to next or previous or what ever row I want to go by keyboard up and down keys. When I sort records it shows several related records (When put the item in search field) and I have to select one of them. At present the default curser row goes to very first row and then I have to go to that desired row by mouse click only. My query is to go to that desired row by keyboard up and down keys. Thanks.
MikeKD Posted December 29, 2014 Posted December 29, 2014 That's exactly what the script I posted does - obviously you'll need to change the field name. The two keys used are the up and down arrows. It will only work on the one field it's triggered from - I have 3 different ones for different fields on the portal.
eos Posted December 29, 2014 Posted December 29, 2014 It will only work on the one field it's triggered from - I have 3 different ones for different fields on the portal. To switch the row, but keep the active field, you only need a single “field-agnostic” script if you de-select the “Entire Contents“ option: Set Variable [ $key; Value:Code ( Get ( TriggerKeystroke ) ) ] If [ $key = 31 or $key = 29 ] Go to Portal Row [ No dialog; Get ( ActivePortalRowNumber ) + Case ( $key = 31 ; 1 ; -1 ) ] End If
samarthmkt Posted December 30, 2014 Author Posted December 30, 2014 Dear Friend Eos, Thanks for your query answer comments. Though I have put the script as per your comments as "Navigation Portal Rows" in script trigger of office products (Where to I have to move active portal row down side in show all records)but still the same issue its only scrolling active row is not moving downside. It will helpful for me if you go through the attachment file where I am going wrong. Thanks Pos Invoices.zip
eos Posted December 30, 2014 Posted December 30, 2014 You're not using that script as script trigger for a portal or a field in a portal, but in two layouts in list view; also, it doesn't make sense to tie it to a graphic object. Next time, please a ) kindly indicate the exact name of the layout place you're using an object in question (so people don't have to create and peruse the DDR to find it), and b ) study the terminology so you know the difference between a portal and a list layout! You could an OnLayoutKeystroke trigger with … Set Variable [ $key; Value:Code ( Get ( TriggerKeystroke ) ) ] If [ $key = 31 or $key = 29 ] Go to Record/Request [ No dialog; Get ( RecordNumber ) + Case ( $key = 31 ; 1 ; -1 ) ] Exit Script [ False ] // so keystroke doesn't “bubble up” End If … to navigate in a found set (not only in list view); but note that there exists a built-in, simple shortcut ctrl-Down/Up Arrow to go to the previous / next record in a found set.
samarthmkt Posted December 31, 2014 Author Posted December 31, 2014 Thanks Friend Eos Issue has been resolved what I need. Mistake happened for assuming wrong object contents.
samarthmkt Posted January 1, 2015 Author Posted January 1, 2015 Dear Forum Friends A "Very Happy New Year" to all the friends. Apart from my above issue one thing more also I am not getting proper result from above attachment file while when I transfer a field record from one table to another by variable and set the field record in another table field (The field name is search) and by script perform find that item name in that layout table. The script is working and finding the search records and by perform quick find it sorts the related records whatever any words or phrase contains in search item fields. The active rows goes to first row by default. According to my search result Active row should be on search item sort records. Thanks
Recommended Posts
This topic is 3881 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now