小编Gur*_*ran的帖子

如何在sharepoint中的查找字段中添加值?

嗨我在sharepoint 2007中有两个列表.我在列表中有一个查找列,它看起来是另一个字段.我想使用sharepoint对象模型将项添加到第二个列表.如何设置查找字段值.(该值已在另一个列表中).

SPListItem Employee = web.Lists["Employee"].Items.Add();
Employee["Name"] = account.Name;
Employee["Department"] = <lookup value must come here>
Employee.Update();                 
Run Code Online (Sandbox Code Playgroud)

c# sharepoint moss sharepoint-2007

5
推荐指数
1
解决办法
3万
查看次数

如何在React-Native中将子视图向左对齐并留有均匀的空间?

我正在尝试为我的应用程序在React-Native中创建一个菜单,该菜单应通过以下方式具有多个图标 在此处输入图片说明

图标应在同一行并包装,这样,如果屏幕更大,则更多图标将在同一行。

我当前的代码如下

import React from 'react';
import { StyleSheet, View } from 'react-native';

export default class App extends React.Component {
  render() {
    return (
      <View style={styles.container}>
        <View style={styles.box}></View>
        <View style={styles.box}></View>
        <View style={styles.box}></View>
        <View style={styles.box}></View>
        <View style={styles.box}></View>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'space-evenly',
    flexDirection: 'row',
    flexWrap: 'wrap',
    paddingTop: 40
  },
  box: {
    width: 100,
    height: 100,
    backgroundColor: 'aqua',
    margin: 10,
  }
});
Run Code Online (Sandbox Code Playgroud)

当前输出如下

在此处输入图片说明

将来孩子的数量可能会发生变化,但我需要在两侧留出一定的间距,使用flex-start会给出以下输出,这是错误的。我也希望在两侧也留出一定的间距。

在此处输入图片说明

我如何将其向左对齐,并使物品周围的空间与上面的图像一样均匀?

javascript react-native

5
推荐指数
1
解决办法
239
查看次数

嵌套List的合并元素在唯一列表c#中

我有一个嵌套的List,例如:

List<List<int>> myList = new List<List<int>>();
myList.Add(new List<int> { 2, 7, 3 });
myList.Add(new List<int> { 4, 6});
myList.Add(new List<int> { 2, 5, 1 });
myList.Add(new List<int> { 7, 0, 2 });
myList.Add(new List<int> { 4, 9 });
Run Code Online (Sandbox Code Playgroud)

我想合并至少有一个共同元素的所有列表,以便输出将是一个List<List<int>>元素:

List<int> 2, 7, 3, 5, 1, 0
List<int> 4,6,9
Run Code Online (Sandbox Code Playgroud)

谢谢

c# list

4
推荐指数
1
解决办法
72
查看次数

标签 统计

c# ×2

javascript ×1

list ×1

moss ×1

react-native ×1

sharepoint ×1

sharepoint-2007 ×1