Announcement

Collapse
No announcement yet.

How to avoid Container?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to avoid Container?

    Is it possible to put eg. two grid apps in one (someting like nested grid)?
    More or less like in Container but without iFrames?

    Why I want it?

    There is few reasons:
    - my apps depending on dataset have different width/hight - and there is no way (as far as I know) to set the hight of the iFrame up dynamically.
    - it is very stiff as many of you mentiond, no Events etc.
    Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
    We need: good and complete documentation written in proper English

  • #2
    Actually I've just fount a solution to iFrame height which allows you to set its height when the app is loading.
    Honestly I really don't like it, but is there any other way?

    First you have to define a global which will keep your iFrame height eg. [if1_height].
    After app deployment you need to edit index.php of the app and find this part:

    Code:
     
    <li class="scContainerWidget widget" id="widget1">
        <div class="widget-head scContainerTitle">
         <img src="<?php echo $this->Ini->path_icones . '/' . $this->Widget_max; ?>" style="border: 0; float: left; margin-top: 3px" class="sc-widget-maximize" alt="widget1" />
         <h3 id="id-title-widget1">Widget1</h3>
        </div>
        <div class="widget-content" style="height: <?php echo $_SESSION['if1_height']; ?>px; padding: 0px">
         <iframe id="id-iframe-widget1" class="sc-iframe-widget" style="height: 100%; width: 100%; border: 0px" src="<?php echo $this->Ini->path_link . SC_dir_app_name('test_control_1'); ?>/?script_case_session=<?php echo session_id(); ?>"></iframe>
        </div>
       </li>
    and put <?php echo $_SESSION['if1_height']; ?> in the place you see it the example.

    It's very dirty hack.
    But this is all about ScriptCase - dirty hack after dirty hack.
    I hope Brazilian planes are made different way...
    Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
    We need: good and complete documentation written in proper English

    Comment


    • #3
      If you continuously need 'dirty hacks' then I wonder why you use SC at all. It's a case tool. It has it's pro's and it's cons. But in general you should judge a tool on what it can achieve, not what it can't. If you continuously are looking for functionality which is not in SC then I think you should consider not using it.... or accept the way it is and stay at what it can do...
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        If we used to accept everything around we almoust certainly still be living in caves. Don't you think?

        I know what I have bought.
        I just want to squize more and I can't see any reason why I shouldn't be looking for a way to make SC work for me. Even it's a case tool.
        And I wrote here not because I wanted to insult someone but because I thought I can share my doubts, ask (maybe sometimes stupid) questions with hope for advice from more experienced collegues. And I do it only when I can't find the answer by myself.
        And I don't think that the right answer is: go somwhere else buy other tool.

        I can say that as much I love SC I hate it.
        SC is a great tool but it's very very far from perfection. But it could be much much better if Netmake tried harder.
        That's why I sometimes complain (and you also as I could see on this forum).

        And getting back to diry hacks - there is actuallually one example made by NetMake itself as a tutorial.
        It's quite similiar to my trick - see by yourself: http://www.scriptcase.net/scriptcase...iner_param.php
        So even Netmake needs them to make their product work...

        All the best wishes for new 2014 and happy New Year.
        Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
        We need: good and complete documentation written in proper English

        Comment


        • #5
          Sorry that I missed your intentions I did not read in your first post. Yes I too am complaining, but never around missing functionality but lack of support and bugfixing. I think that SC should first attend to the bugs and make a rock solid product before going further in functionality. So I welcome that John is currently somewhere here on the forum and that they are finally solving issues. I don't see why you shouldn't be on the edge of possibilities, but if your only tool is a hammer then every screw becomes a nail as we say...

          Hope the best for you in 2014 too. And that SC will make major progress in stability and functionality. (makes us both happy).
          Albert Drent
          aducom software netherlands
          scriptcase partner, reseller, support and (turn-key) development
          www.scriptcase.eu / www.scriptcase.nl

          Comment


          • #6
            I think that SC should first attend to the bugs and make a rock solid product before going further in functionality.
            I agree 100%.
            Using Ubuntu Linux 13.04 and SC Professional MySQL 7.1.last
            We need: good and complete documentation written in proper English

            Comment

            Working...
            X