dynamic

excel indirect function to read dates and return dynamic values

眉间皱痕 提交于 2019-12-17 14:31:24
问题 looking through the forum and can't find what I need. I have 100+ sheets with unique sheet names and data in column B. Column B will contain various END DATES. some sheets will have 1 or 2 end dates, others have upwards of 30 end dates. . I would like to create a summary page containing a table that will update itself to show all sheet names that have END dates in column B expiring within the next 30 days. is this something that requires coding? or use of the excel indirect formula with maybe

Adding / Removing components on the fly

被刻印的时光 ゝ 提交于 2019-12-17 11:03:13
问题 I need to be able to add & remove Angular components on the fly. To do so, I'm using loadIntoLocation and dispose methods, like it: Adding a component (from a layout manager): this.m_loader.loadIntoLocation(MyComponent, this.m_element, 'content').then(_componentRef => { // Create the window and set its title: var component: MyComponent = (_componentRef.instance); component.ref = _componentRef; // init the component content }); Removing a component (from the component): this.ref.dispose(); It

Adding / Removing components on the fly

爱⌒轻易说出口 提交于 2019-12-17 11:01:51
问题 I need to be able to add & remove Angular components on the fly. To do so, I'm using loadIntoLocation and dispose methods, like it: Adding a component (from a layout manager): this.m_loader.loadIntoLocation(MyComponent, this.m_element, 'content').then(_componentRef => { // Create the window and set its title: var component: MyComponent = (_componentRef.instance); component.ref = _componentRef; // init the component content }); Removing a component (from the component): this.ref.dispose(); It

Adding / Removing components on the fly

て烟熏妆下的殇ゞ 提交于 2019-12-17 11:01:46
问题 I need to be able to add & remove Angular components on the fly. To do so, I'm using loadIntoLocation and dispose methods, like it: Adding a component (from a layout manager): this.m_loader.loadIntoLocation(MyComponent, this.m_element, 'content').then(_componentRef => { // Create the window and set its title: var component: MyComponent = (_componentRef.instance); component.ref = _componentRef; // init the component content }); Removing a component (from the component): this.ref.dispose(); It

How can I load jQuery if it is not already loaded?

我的梦境 提交于 2019-12-17 10:47:31
问题 I have a initializor.js that contains the following: if(typeof jQuery=='undefined') { var headTag = document.getElementsByTagName("head")[0]; var jqTag = document.createElement('script'); jqTag.type = 'text/javascript'; jqTag.src = 'jquery.js'; headTag.appendChild(jqTag); } I am then including that file somewhere on another page. The code checks if jQuery is loaded, and if it isnt, add it to the Head tag. However, jQuery is not initializing, because in my main document, I have a few events

Dynamically create checkbox with JQuery from text input

大城市里の小女人 提交于 2019-12-17 10:27:12
问题 In my cms I have a checkbox group for categories. I would like to have a text input below that where the user can input the name of a new category and it will dynamically add a new checkbox with the provided name used for both the value and the label. How can I do this? 回答1: <div id="cblist"> <input type="checkbox" value="first checkbox" id="cb1" /> <label for="cb1">first checkbox</label> </div> <input type="text" id="txtName" /> <input type="button" value="ok" id="btnSave" /> <script type=

How to add radio button dynamically as per the given number of counts?

痴心易碎 提交于 2019-12-17 10:26:37
问题 I have tried this code..It will display three radio buttons in a single row when the emulator starts. But I need a button event for this. i.e; if I click the button, it should ask for number of radio buttons. then If I give the count, it must display the radio buttons based on the count given. For example, If I give the count as 3, it must display the three radio buttons in a single row. Your help is highly appreciated. Thanks in advance. public class MyActivity extends Activity { /** *

How can I convert a DataTable into a Dynamic object?

◇◆丶佛笑我妖孽 提交于 2019-12-17 10:19:01
问题 How can I convert a DataTable in IEnumerable<dynamicObject> ? For example, I want to convert any DataTable ID | Name DI | emaN --------- or --------- 1 | x 2 | x 2 | y 1 | y In a list of objects // list 1 (ex 1) // list 2 (ex 2) { { { ID = 1, Name = "x" } { DI = 2, emaN = "x" } { ID = 2, Name = "y" } { DI = 1, emaN = "y" } } } So list1.First().ID // 1 list2.First().emaN // "x" How can I do it? 回答1: How about with DynamicObject: public static class DataTableX { public static IEnumerable

javascript - dynamic variables

萝らか妹 提交于 2019-12-17 10:03:32
问题 Hi I am trying to make dynamic variables but it is saying `variable v0 (through to v5) is not defined. td.each(function(i){ eval('var v' + i + ' = \'' + $(this).html() + '\';' ); }); any help would be muchly appreciated. 回答1: That sounds like a bad idea. Is there any reason you can't do this? var tdHtml = td.map(function() { return $(this).html(); }).get(); 回答2: Oh my. If you want to create a global "dynamic variable" you should not use var . In this context it creates a variable that is

Jquery click function is not working for dynamic elements

无人久伴 提交于 2019-12-17 10:01:39
问题 I am using $.each to create the button with each array object. I also tried to give each button a specific id, so I can do click event for further coding, but now I don't know why all the buttons are not functioning. Did I miss some code? var questlist = [{ "startdate": "2015-01-08", "questitem": [ { "questid": "1", "gifttype": "stars", "quantity": 10, "questname": "One", "queststatus": "done" }, { "questid": "2", "gifttype": "stars", "quantity": 50, "questname": "Two", "queststatus": "ready"