Playing with hyperlinkParameter and List Control indexes (1 Viewer)

Rob Hexenmeister

MP Donator
  • Premium Supporter
  • May 12, 2011
    153
    35
    Slaithwaite
    United Kingdom United Kingdom
    Country flag
    Evening all!

    Here's a challenge.

    I would like a button on Basic Home, or wherever, to take me to a specific item in a listcontrol on another page.

    I was wondering if this is even possible and whether hyperlinkParameter could be used. On jumping to the hyperlink, the newly loaded screen I think would have to:

    1. Set the listcontrol to ascending date order
    2. Set #selectedindex to the parameter passed by hyperlinkParameter

    eg: BasicHome(35)

    <control>
    <description>Jump to list button #3</description>
    <type>button</type>
    <id>103</id>
    <posX>300</posX>
    <posY>200</posY>
    <width>190</width>
    <height>32</height>
    <textureFocus>buttonfocus.png</textureFocus>
    <textureNoFocus>buttonnofocus.png</textureNoFocus>
    <label>#latestMediaHandler.tvrecordings.scheduled3.title</label>
    <hyperlinkParameter>3</hyperlinkParameter>
    <hyperlink>601</hyperlink>
    </control>


    >>>>TVSchedulerServer(601)
    How to ....

    Set the listcontrol to ascending date order
    Set the #selectedindex to the hyperlink parameter (in the example '3')
    Set the focus to the listcontrol


    This would open up all sorts of possibilities for my skin theme if it can be done

    Kind regards to all
    RH
     

    CyberSimian

    Test Group
  • Team MediaPortal
  • June 10, 2013
    2,016
    1,248
    Southampton
    United Kingdom United Kingdom
    Country flag
    Set #selectedindex to the parameter passed by hyperlinkParameter
    The skin engine sets #selectedindex to the item in the list that has the focus (usually the first one), and the user can move the focus by using the UP and DOWN keys on the remote control or keyboard.

    If I have understood you correctly, you want to do the reverse -- you want to set #selectedindex to a specific value, and have the skin engine use that to set the focus. I don't think that that is possible :(, but I am happy to be corrected.

    -- from CyberSimian in the UK
     

    Rob Hexenmeister

    MP Donator
  • Premium Supporter
  • May 12, 2011
    153
    35
    Slaithwaite
    United Kingdom United Kingdom
    Country flag
    The skin engine sets #selectedindex to the item in the list that has the focus (usually the first one), and the user can move the focus by using the UP and DOWN keys on the remote control or keyboard.

    If I have understood you correctly, you want to do the reverse -- you want to set #selectedindex to a specific value, and have the skin engine use that to set the focus. I don't think that that is possible :(, but I am happy to be corrected.

    -- from CyberSimian in the UK
    Yes that's more or less correct. I would like to set the #selectedindex to a value passed by hyperlinkParameter and set the focus.

    Of course we would know the control ID of what we want to focus, that should be the easy part by setting the default control on the screen we are jumping to but it is jumping to the correct item in the listcontrol that is the challenge.

    I wonder if anyone will think of a solution or way round! It would create all sorts of possibilities if it could be done.

    :cool: :cautious: :unsure:
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    M [solved] WTV Files does not play on client, MPEG files works well General 1
    A [solved] How to Play All Videos in a List watch/edit Videos 3
    horned_reaper [solved] When playing music Fanart does not shuffle Fanart Handler 20
    horned_reaper [solved] No Fanart when playing Fanart Handler 115
    horned_reaper [solved] When playing music Fanart does not appear immediately after downloading Fanart Handler 272
    B MP 2.2.3 Error playing videos from NAS Submit: Bug Reports 2
    N Play a TV recording needs a double selection - twice ok on remote Television (MyTV frontend and TV-Server) 2
    M MP 2.2.3 Unable to play .ts recordings and MediaPortal stops working for TV viewing General 31
    Z Error when attempting to play Blu Ray General 1
    C Problem playing videos created on IPhone X and Samsung S9 General Support 2
    2BitSculptor MP 1.23.. music stops playing General Support 6
    C Attempt to play DVD locks up MediaPortal watch/edit Videos 0
    H Unable to play stream - again... Television (MyTV frontend and TV-Server) 2
    B Suddenly MP is unable to play anything Watch / Listen Media 6
    Edwardfc [solved] Mp 2.2.1 Configuration Issues - Goes to Sleep while playing Music General 6
    M After a while Live TV or Recorded TV doesn't play first time General Support 9
    L [solved] MP2 doesnt play anything - player missing? General 1
    badboyxx MP 1.22 final is crashing when jumping forward while playing DVD-Iso watch/edit Videos 26
    S [solved] Live TV playing stopped General 13
    Ralph Holmes [solved] MP2.2.1 can't play TV General 10
    T [solved] "Unable To Play" (Videos) rears it's head again. Logs not possible... WatchDog error attached!! :( General Support 1
    Terra Videos do not start playing on first attempt, always have to press play twice General Support 9
    G [fixed] [MP2-786] Party Music Player can only play playlists with less than 1000 items 2.2 Archive 7
    P [solved] TV server no longer saving to NAS - (can still play from NAS) General Support 2
    N [Finished] [MP2-806] Playing a recorded radio program does not show screen to allow skipping forward, etc MediaPortal 2 141
    Similar threads

























    Top Bottom